Fix docs link and clarify server-side fingerprint hashing in README
This commit is contained in:
@@ -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
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user