feat: add Zcash (shielded) network support#1990
Open
Zk-nd3r wants to merge 1 commit intox402-foundation:mainfrom
Open
feat: add Zcash (shielded) network support#1990Zk-nd3r wants to merge 1 commit intox402-foundation:mainfrom
Zk-nd3r wants to merge 1 commit intox402-foundation:mainfrom
Conversation
adds zcash mechanism module with network config and payment proof type. full facilitator at @frontiercompute/zcash-402 (npm). zcash is the first shielded settlement option for x402.
|
@Zk-nd3r is attempting to deploy a commit to the Coinbase Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Zcash as the first shielded settlement option for x402. Includes a mechanism module stub at
typescript/packages/mechanisms/zcash/with network configuration and payment proof types.Why
x402 currently supports 8 chains, all with transparent ledgers. Zcash adds shielded settlement: agents can pay for HTTP resources without revealing transaction amounts or addresses on-chain. Relevant for agent treasury flows, privacy compliance, and selective disclosure.
What this PR adds
typescript/packages/mechanisms/zcash/src/index.ts— network config (CAIP-2:zcash:mainnet), asset definition (ZEC, 8 decimals), payment proof typetypescript/packages/mechanisms/zcash/README.md— architecture overview and integration pathFull facilitator
The complete Zcash x402 facilitator is available as a standalone package: @frontiercompute/zcash-402 (MCP server with 4 tools: pay_resource, check_balance, verify_receipt, list_payments).
Payment verification uses the Zcash encrypted memo field for payment ID matching, unlike EVM/SVM which use on-chain event logs.
Network details
zcash:mainnet