Visa TAP
Visa TAP secures agent-initiated payment requests with HTTP Message Signatures and registry-verifiable agent keys.RFC 9421 Signatures
Registry-Based Trust
Agent Registry API
GET https://api.useanima.sh/api/agents/:idPOST https://api.useanima.sh/api/agents/:id/keysPOST https://api.useanima.sh/api/agents/:id/revoke
Replay Protection (Nonce + Freshness)
Replay protection relies on a unique nonce, a tight freshness window, and a short-lived nonce cache to reject captured requests before they can be reused.| Field | Requirement | Purpose |
|---|---|---|
| Nonce | 64-byte base64 value | Prevent duplicate request replay. |
| Freshness window | 8 minutes max skew | Reject stale captured requests. |
| Nonce cache | TTL ≥ 8 minutes | Guarantee one-time use within validity window. |
Supported Algorithms
- Ed25519
- rsa-pss-sha256
Signing Example
visa-tap-sign.ts
Note: Persist nonce + signature input hashes for short-term forensic replay analysis.
Tip: Validate signature, timestamp, nonce uniqueness, and key status in a single atomic verification transaction.
