feat(tools): add Insumer Model tools for on-chain attestation#549
Conversation
|
Hi Mason Daugherty (@mdrxy) — friendly bump on this PR. It adds 6 tools + a wrapper for the InsumerAPI (privacy-preserving on-chain token/NFT verification across 31 blockchains). The standalone package is already live on PyPI ( |
a097858 to
0d060ae
Compare
|
Quick update: we just shipped Happy to rebase or adjust anything to help get this over the line. The package is seeing production use via the MCP server ( |
Add 19 tools + API wrapper for InsumerAPI — privacy-preserving on-chain verification across 31 blockchains. ECDSA-signed booleans, wallet trust profiles, batch trust, merchant onboarding, and credit management. Tools: attest, wallet_trust, batch_wallet_trust, jwks, verify, confirm_payment, check_discount, list_merchants, get_merchant, list_tokens, credits, buy_credits, buy_merchant_credits, create_merchant, merchant_status, configure_tokens, configure_nfts, configure_settings, publish_directory. Also available as: MCP server (npm), OpenAI GPT (GPT Store), standalone PyPI package (langchain-insumer). In production use by DJD Agent Score (Coinbase x402 ecosystem). Generated with assistance from Claude Code (claude.ai/claude-code).
0d060ae to
dd10636
Compare
|
Rebased on latest main and expanded from 6 tools to 19 tools — full API parity with the MCP server. New in this update:
The standalone package ( Generated with assistance from Claude Code. |
- Add InsumerComplianceTemplates tool (GET /v1/compliance/templates) - Update InsumerAttest to support eas_attestation type with templates - Add get_compliance_templates() to wrapper - 19 → 20 tools, full parity with MCP server v1.2.0 and langchain-insumer v0.5.0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Rebased on latest main and added the 20th tool: InsumerComplianceTemplates — lists available EAS compliance templates for attestation verification (e.g. Coinbase Verifications KYC on Base). Changes in this update:
Now at 20 tools, full parity with MCP server v1.2.0 and standalone |
Summary
proof="merkle"parameter onInsumerAttestfor EIP-1186 Merkle storage proofs, enabling trustless verification against public block headers (2 credits)InsumerAttest,InsumerCheckDiscount,InsumerVerify,InsumerListMerchants,InsumerListTokens,InsumerCreditsInsumerAPIWrapperin utilities, supportsINSUMER_API_KEYenv varFiles added
libs/community/langchain_community/tools/insumer/— 6 tool modules +__init__.pylibs/community/langchain_community/utilities/insumer.py— API wrappertools/__init__.pyandutilities/__init__.pywith lazy-loading registrationsTamper-evident attestations
Every attestation result includes:
evaluatedCondition: The exact condition logic that was evaluated (type, chainId, contractAddress, operator, threshold, decimals). Callers can confirm the API checked the right contract with the right parameters.conditionHash: SHA-256 of the canonical (sorted-key) JSON ofevaluatedCondition, prefixed with0x. Callers can recompute this to verify integrity.blockNumberandblockTimestamp(RPC chains only): The block at which the condition was evaluated, for freshness verification.All fields are inside the ECDSA-signed
resultsarray, so the signature covers the evaluation logic itself. Third parties can independently verify attestations using the reference library:insumer-verify(Node.js/browser, zero dependencies).Two levels of trust
The attestation endpoint supports two modes:
evaluatedConditionandconditionHashfor tamper-evidence. Proves who verified what condition. 1 credit.proof="merkle"to receive EIP-1186 Merkle storage proofs alongside boolean results. Callers can verify the result independently against the blockchain's state root. Available on 10 RPC chains fortoken_balanceconditions. 2 credits.Usage
Links
AI disclosure
This PR was developed with assistance from AI agents (Claude Code).
🤖 Generated with Claude Code