chit402-verify 0.1.0 → 0.2.0
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 +1 -1
- package/cli.js +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ curl -s https://api.chit402.com/receipt/task-123?format=json | npx chit402-verif
|
|
|
48
48
|
| Check | Requires Network? | Description |
|
|
49
49
|
|-------|-------------------|-------------|
|
|
50
50
|
| Payment binding | No | Recompute commitment from receipt fields |
|
|
51
|
-
| Issuer signature | No | ES256
|
|
51
|
+
| Issuer signature | No, unless `--fetch-jwks` | ES256. Trusted via JWKS (by kid) or the pinned production kid. Embedded `issuer_jwk` alone is not enough. |
|
|
52
52
|
| Output hash | No | Hash is on the receipt |
|
|
53
53
|
| On-chain settlement | Yes | Query Base RPC for tx |
|
|
54
54
|
| Nullifier anchor | Yes | Query ZKVerifierSP1 contract |
|
package/cli.js
CHANGED
|
@@ -8,6 +8,8 @@ import { createRequire } from 'node:module';
|
|
|
8
8
|
import { spawn } from 'node:child_process';
|
|
9
9
|
|
|
10
10
|
const require = createRequire(import.meta.url);
|
|
11
|
+
// Resolve via the package exports map. Deep imports of dist/cli.js throw
|
|
12
|
+
// ERR_PACKAGE_PATH_NOT_EXPORTED unless @xfuel/verify lists that subpath.
|
|
11
13
|
const verifyCliPath = require.resolve('@xfuel/verify/dist/cli.js');
|
|
12
14
|
|
|
13
15
|
const child = spawn(process.execPath, [verifyCliPath, ...process.argv.slice(2)], {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chit402-verify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Chit402 receipt verification — verify payment binding and output commitment offline.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"directory": "packages/aliases/chit402-verify"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@xfuel/verify": "^0.
|
|
57
|
+
"@xfuel/verify": "^0.2.0"
|
|
58
58
|
}
|
|
59
59
|
}
|