Fix docs link and clarify server-side fingerprint hashing in README

This commit is contained in:
Keysat
2026-06-17 15:24:55 -05:00
parent 94a39b7064
commit 5d6adb6192
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ ISSUER_PUBKEY_PEM = open("assets/issuer.pub").read() # bake this into your app
verifier = Verifier(PublicKey.from_pem(ISSUER_PUBKEY_PEM)) verifier = Verifier(PublicKey.from_pem(ISSUER_PUBKEY_PEM))
ok = verifier.verify(key_from_user) # raises LicensingError on bad sig ok = verifier.verify(key_from_user) # raises LicensingError on bad sig
# ok.expires_at is a unix timestamp; 0 = perpetual
print(f"licensed for product {ok.product_id}, expires {ok.expires_at}") print(f"licensed for product {ok.product_id}, expires {ok.expires_at}")
``` ```
@@ -93,7 +94,7 @@ replayed against someone else's licensing server:
```python ```python
fp_input = f"{APP_NAME}|{machine_id}" fp_input = f"{APP_NAME}|{machine_id}"
# The SDK SHA-256s this for you when you pass it to validate(...). # Pass this raw string to validate(...); the server SHA-256s it before storing.
``` ```
## License ## License
+1 -1
View File
@@ -38,7 +38,7 @@ dev = [
[project.urls] [project.urls]
Homepage = "https://keysat.xyz" Homepage = "https://keysat.xyz"
Repository = "https://github.com/keysat-xyz/keysat" Repository = "https://github.com/keysat-xyz/keysat"
Documentation = "https://github.com/keysat-xyz/keysat/blob/main/docs/INTEGRATION.md" Documentation = "https://github.com/keysat-xyz/keysat/blob/main/KEYSAT_INTEGRATION.md"
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
where = ["src"] where = ["src"]