twzrd-receipt-verifier 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -4
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -75,21 +75,27 @@ The receipt object looks like:
|
|
|
75
75
|
## Python
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
|
-
pip install
|
|
78
|
+
pip install twzrd-receipt-verifier # PyPI; or: pip install pynacl pycryptodome for script-only use
|
|
79
79
|
|
|
80
80
|
# fetch the published key and verify:
|
|
81
|
-
|
|
81
|
+
twzrd-verify-receipt receipt.json
|
|
82
|
+
# or: python verify_twzrd_receipt.py receipt.json
|
|
82
83
|
|
|
83
84
|
# pin the key out-of-band (recommended):
|
|
84
85
|
python verify_twzrd_receipt.py receipt.json --pubkey 9V6Pn19kiUA5Rn6JpQfNduanvGt2aXGwsarosNfa2Ldf
|
|
85
86
|
|
|
86
87
|
# also confirm a tampered copy FAILS:
|
|
87
|
-
|
|
88
|
+
twzrd-verify-receipt receipt.json --self-test
|
|
89
|
+
|
|
90
|
+
# replay-resistance (opt-in; same semantics as the npm CLI --max-age):
|
|
91
|
+
twzrd-verify-receipt receipt.json --max-age 300
|
|
88
92
|
|
|
89
93
|
# from stdin:
|
|
90
|
-
cat receipt.json |
|
|
94
|
+
cat receipt.json | twzrd-verify-receipt -
|
|
91
95
|
```
|
|
92
96
|
|
|
97
|
+
Source: [packages/twzrd-agent-intel/verifier](https://github.com/twzrd-sol/wzrd-final/tree/main/packages/twzrd-agent-intel/verifier)
|
|
98
|
+
|
|
93
99
|
## Node
|
|
94
100
|
|
|
95
101
|
```bash
|
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twzrd-receipt-verifier",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Standalone offline verifier for TWZRD AO-Receipt V5 (Ed25519-signed keccak256 leaf). No trust in TWZRD servers or code.",
|
|
5
5
|
"keywords": ["twzrd", "x402", "solana", "ed25519", "keccak256", "receipt", "verifier", "agent", "attestation"],
|
|
6
6
|
"homepage": "https://intel.twzrd.xyz",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/twzrd-sol/wzrd-final/issues"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/twzrd-sol/wzrd-final.git",
|
|
13
|
+
"directory": "packages/twzrd-agent-intel/verifier"
|
|
14
|
+
},
|
|
7
15
|
"license": "MIT",
|
|
8
16
|
"author": "TWZRD",
|
|
9
17
|
"bin": {
|