/ap2-agentic-payments:ap2-cryptographic-signingfrom ap2-agentic-payments
Implements AP2 cryptographic signing with hardware-backed user signatures, merchant entity signatures, VDC integrity, key management, and attestation flows. Covers SD-JWT with Key Binding, ECDSA algorithms (ES256/ES384/ES512), JCS canonicalization, and merchant authorization envelopes.
Ships in ap2-agentic-payments. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
https://ap2-protocol.org/ap2/specification/ for cryptographic signing requirementshttps://ap2-protocol.org/ap2/security_and_privacy_considerations/ for security architecturesite:github.com google-agentic-commerce AP2 signature mandate for signing implementationsap2 protocol VDC signing cryptographic hardware-backed for community guidesAP2's core innovation is verifiable intent — cryptographic proof that:
AP2 VDCs use the SD-JWT with Key Binding (+kb) format, enabling selective disclosure and cryptographic holder binding.
AP2 supports ECDSA with the following algorithm/curve combinations:
Before signing, JSON payloads are canonicalized using JCS (RFC 8785) to produce a deterministic byte representation. This ensures that logically equivalent JSON objects produce the same signature regardless of key ordering or whitespace.
Version-sensitive. The exact envelope for the merchant's signature has changed across AP2 releases — earlier releases used a detached JWS over canonicalized cart contents; current releases carry a merchant-signed checkout JWT plus a checkout hash inside the mandate. Fetch
https://ap2-protocol.org/ap2/checkout_mandate/and implement what it says. Everything below is the durable shape, not a schema.
The durable pattern, whatever the envelope:
Header claims must carry, at minimum:
Payload claims typically carry issuer, audience, issued-at, expiry, a unique identifier, and the checkout hash. Confirm the exact claim names and the permitted algorithms against the live spec before implementing verification.
| Mandate | Signed by | What's covered |
|---|---|---|
| Checkout Mandate (closed) | Merchant + User | Exact items, prices, totals, payment methods |
| Checkout Mandate (open) | User, then Agent on binding | Shopping constraints (allowed merchants, line items), expiry |
| Payment Mandate | User | Payment method selection, transaction amount |
The open form is where the former "Intent Mandate" lives — the user signs the constraints, the agent later signs the binding to a real transaction, and both signatures are retained as the authorization chain.
The user signing step (especially for Cart and Payment Mandates) involves:
This is a load-bearing security step — the agent cannot bypass it.
Verifiers check:
Signed mandates provide non-repudiation for disputes:
VDC signatures prevent MITM attacks:
Fetch the specification for exact signature formats, supported algorithms, attestation requirements, and verification procedures before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ap2, cryptographic-signing, vdc, sd-jwt, ecdsa, key-management
19 skills in this plugin
/ap2-a2a-extensionImplement AP2 as an A2A extension — mandate DataParts in A2A messages, Agent Card AP2 capabilities, payment-specific task flows, and inter-agent payment communication. Use when integrating AP2 payment capabilities into A2A multi-agent systems./ap2-agent-authorizationImplement the AP2 Agent Authorization Framework — open vs closed mandates, the two-phase delegation/authorization process, the cryptographic authorization chain, Key Binding JWTs, and human-present vs human-not-present signing. Use when designing how a user authorizes an agent to act, before touching any specific mandate type./ap2-challenge-stepupImplement AP2 challenge and step-up flows — 3DS2, OTP verification, redirect challenges, and trusted surface interactions. Use when building additional authentication steps during agentic payment processing./ap2-checkout-mandateImplement the AP2 Checkout Mandate — the credential authorizing completion of a checkout, in its open (constrained) and closed (merchant-verified) forms, with merchant-signed checkout payloads, checkout hashes, and user confirmation on a trusted surface. Formerly called the Cart Mandate. Use when building cart/checkout authorization, signing, and verification./ap2-credentials-providerBuild an AP2 Credentials Provider — the agent that manages payment credentials, provides payment methods to users, handles tokenization (DPAN), and facilitates secure payment between Shopping Agent and Payment Processor. Use when implementing the Credentials Provider role./ap2-dev-patternsApply AP2 cross-cutting development patterns — multi-agent payment architecture, UCP integration, x402 crypto payments, testing with mock providers, and production deployment. Use when architecting agentic payment systems or solving cross-cutting payment concerns.npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin ap2-agentic-paymentsOther plugins' skills for the same job