Skip to content

spec: authCapture for SVM (pilot)#45

Open
A1igator wants to merge 1 commit intomainfrom
aliabdoli/authcapture-svm-spec
Open

spec: authCapture for SVM (pilot)#45
A1igator wants to merge 1 commit intomainfrom
aliabdoli/authcapture-svm-spec

Conversation

@A1igator
Copy link
Copy Markdown
Contributor

@A1igator A1igator commented May 9, 2026

Summary

Adds specs/schemes/authCapture/scheme_authCapture_svm.md — a faithful SVM port of base/commerce-payments's authCapture primitives.

  • Two on-chain primitives: auth-capture-escrow (analog of AuthCaptureEscrow) and spl-token-collector (analog of EIP3009TokenCollector / Permit2TokenCollector).
  • Auth model: partial-tx + facilitator-cosign, same pattern as scheme_exact_svm.md. ERC-3009 / Permit2 don't exist on SVM and aren't needed — runtime signature checks ARE the authorization.
  • Doc style mirrors scheme_exact_svm.md: title format, single numbered Protocol Flow, JSON examples + bullet-list extra fields, MUST list verification rules.
  • Higher-level patterns (operator factories, multisig, plugin slots) sit in front of this scheme as separate x402r extensions and are out of scope.

Pilot status; unaudited. Mainnet usage is at users' own risk — flagged at the top of the doc.

Test plan

  • Spec doc renders correctly on GitHub
  • No broken intra-spec links (scheme_authCapture.md, scheme_authCapture_evm.md, ../exact/scheme_exact_svm.md)
  • Field bullet list matches what the SDK PR will encode/decode

🤖 Generated with Claude Code

Direct port of base/commerce-payments authCapture primitives to Solana.
Mirrors scheme_exact_svm.md style: partial-tx + facilitator-cosign auth
model, single numbered protocol flow, bullet-list extra fields, MUST list
verification rules.

Two on-chain primitives:
- auth-capture-escrow: AuthCaptureEscrow analog
- spl-token-collector: ITokenCollector impl for SPL Token

Higher-level patterns (operator factories, multisig, plugin slots) are
out-of-scope x402r extensions.

Pilot status: unaudited; mainnet usage at users' own risk.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant