insumer-verify 1.4.0 → 1.4.2
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 +14 -13
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# insumer-verify
|
|
2
2
|
|
|
3
|
-
Client-side verifier for [InsumerAPI](https://insumermodel.com/developers/) attestations. Validates ECDSA P-256 signatures, condition hashes, block freshness, and attestation expiry. Zero runtime dependencies. Web Crypto API. Node.js 18+ and modern browsers.
|
|
3
|
+
Client-side verifier for [InsumerAPI](https://insumermodel.com/developers/) wallet auth attestations. Validates ECDSA P-256 signatures, condition hashes, block freshness, and attestation expiry. Zero runtime dependencies. Web Crypto API. Node.js 18+ and modern browsers.
|
|
4
4
|
|
|
5
5
|
**In production:** [DJD Agent Score](https://github.com/jacobsd32-cpu/djdagentscore) (Coinbase x402 ecosystem) uses insumer-verify for client-side cryptographic verification in their AI agent wallet trust scoring pipeline. [Case study](https://insumermodel.com/blog/djd-agent-score-insumer-api-integration.html).
|
|
6
6
|
|
|
7
|
-
Part of the InsumerAPI ecosystem: [REST API](https://insumermodel.com/developers/) (26 endpoints,
|
|
7
|
+
Part of the InsumerAPI ecosystem: [REST API](https://insumermodel.com/developers/) (26 endpoints, 33 chains) | [MCP server](https://www.npmjs.com/package/mcp-server-insumer) (npm) | [LangChain](https://pypi.org/project/langchain-insumer/) (PyPI) | [ElizaOS](https://www.npmjs.com/package/eliza-plugin-insumer) (10 actions, npm) | [OpenAI GPT](https://chatgpt.com/g/g-699c5e43ce2481918b3f1e7f144c8a49-insumerapi-verify) (GPT Store)
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -22,7 +22,7 @@ curl -s -X POST https://api.insumermodel.com/v1/keys/create \
|
|
|
22
22
|
-d '{"email": "you@example.com", "appName": "insumer-verify", "tier": "free"}' | jq .
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Returns an `insr_live_...` key with
|
|
25
|
+
Returns an `insr_live_...` key with 100 reads/day and 10 verification credits. One free key per email.
|
|
26
26
|
|
|
27
27
|
Or get one at [insumermodel.com/developers](https://insumermodel.com/developers/).
|
|
28
28
|
|
|
@@ -100,7 +100,7 @@ The attestation response you're verifying looks like this:
|
|
|
100
100
|
"threshold": 1000,
|
|
101
101
|
"type": "token_balance"
|
|
102
102
|
},
|
|
103
|
-
"conditionHash": "
|
|
103
|
+
"conditionHash": "0x554251734232c8b43062f1cf2bb51b76650d13268104d74c645f4893e67ef69c",
|
|
104
104
|
"blockNumber": "0x129e3f7",
|
|
105
105
|
"blockTimestamp": "2026-02-28T12:34:56.000Z"
|
|
106
106
|
}
|
|
@@ -110,10 +110,10 @@ The attestation response you're verifying looks like this:
|
|
|
110
110
|
"attestedAt": "2026-02-28T12:34:57.000Z",
|
|
111
111
|
"expiresAt": "2026-02-28T13:04:57.000Z"
|
|
112
112
|
},
|
|
113
|
-
"sig": "
|
|
113
|
+
"sig": "dmNJKqnGZ9f47qpWax9gxgw1DhUKHKHrbLspTop8NWzYhv2fNpVAt1gAuhUfU4xPsgXTCdrmTXI4vEE50dcfEA==",
|
|
114
114
|
"kid": "insumer-attest-v1"
|
|
115
115
|
},
|
|
116
|
-
"meta": { "version": "1.0", "timestamp": "2026-
|
|
116
|
+
"meta": { "version": "1.0", "timestamp": "2026-03-26T20:04:34.153Z", "creditsRemaining": 99, "creditsCharged": 1 }
|
|
117
117
|
}
|
|
118
118
|
```
|
|
119
119
|
|
|
@@ -164,7 +164,7 @@ If the API cannot reach one or more upstream data sources after retries, it retu
|
|
|
164
164
|
"code": "rpc_failure",
|
|
165
165
|
"message": "Unable to verify all conditions — data source unavailable after retries",
|
|
166
166
|
"failedConditions": [
|
|
167
|
-
{ "chainId": "43114", "message": "Timeout" }
|
|
167
|
+
{ "source": "rpc", "chainId": "43114", "message": "Timeout" }
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
170
|
"meta": { "version": "1.0", "timestamp": "..." }
|
|
@@ -292,15 +292,16 @@ The attestation format is an open standard — `verify-manual.mjs` demonstrates
|
|
|
292
292
|
|
|
293
293
|
## Pricing
|
|
294
294
|
|
|
295
|
-
**Tiers:** Free (10 credits) | Pro $9/mo (10,000/day) | Enterprise $29/mo (100,000/day)
|
|
295
|
+
**Tiers:** Free (100 reads/day, 10 credits) | Pro $9/mo (10,000/day) | Enterprise $29/mo (100,000/day)
|
|
296
296
|
|
|
297
|
-
**
|
|
297
|
+
**Volume discounts:** $5–$99 = $0.04/call (25 credits/$1) · $100–$499 = $0.03 (33/$1, 25% off) · $500+ = $0.02 (50/$1, 50% off)
|
|
298
298
|
|
|
299
|
-
**Platform wallets
|
|
300
|
-
- **EVM:** `0xAd982CB19aCCa2923Df8F687C0614a7700255a23`
|
|
301
|
-
- **Solana:** `6a1mLjefhvSJX1sEX8PTnionbE9DqoYjU6F6bNkT4Ydr`
|
|
299
|
+
**Platform wallets:**
|
|
300
|
+
- **EVM (USDC/USDT):** `0xAd982CB19aCCa2923Df8F687C0614a7700255a23`
|
|
301
|
+
- **Solana (USDC/USDT):** `6a1mLjefhvSJX1sEX8PTnionbE9DqoYjU6F6bNkT4Ydr`
|
|
302
|
+
- **Bitcoin:** `bc1qg7qnerdhlmdn899zemtez5tcx2a2snc0dt9dt0`
|
|
302
303
|
|
|
303
|
-
**Supported
|
|
304
|
+
**Supported payment chains:** Ethereum, Base, Polygon, Arbitrum, Optimism, BNB Chain, Avalanche, Solana, Bitcoin. Tokens sent on unsupported chains cannot be recovered. All purchases are final and non-refundable. [Full pricing →](https://insumermodel.com/pricing/)
|
|
304
305
|
|
|
305
306
|
## License
|
|
306
307
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "insumer-verify",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"description": "Client-side verifier for InsumerAPI attestations. ECDSA P-256 signatures, condition hashes, block freshness, expiry. Zero dependencies. Used by DJD Agent Score (Coinbase x402).",
|
|
3
|
+
"version": "1.4.2",
|
|
4
|
+
"description": "Client-side verifier for InsumerAPI condition-based access attestations. ECDSA P-256 signatures, condition hashes, block freshness, expiry. Zero dependencies. Used by DJD Agent Score (Coinbase x402).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"types": "build/index.d.ts",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"prepublishOnly": "npm run build"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
|
+
"condition-based-access",
|
|
24
25
|
"insumer",
|
|
25
26
|
"attestation",
|
|
26
27
|
"ecdsa",
|