Overview
ERC-6492 enables signature verification for smart contract wallets that haven’t been deployed yet. This is critical for Crossmint Agentic Finance because:- Wallet creation is free - Users get an address immediately via API
- No deployment costs upfront - Wallets deploy only when first transacting
- Signatures work pre-deployment - ERC-6492 wraps signatures with deployment data
How ERC-6492 Works
Standard Wallet Lifecycle
Signature Format Comparison
| Wallet State | Signature Format | Verification Method | Signature Length |
|---|---|---|---|
| Pre-Deployed | ERC-6492 wrapped | Simulate deployment, verify signature | Variable (>132 chars) |
| Deployed | Standard ECDSA or EIP-1271 | Call isValidSignature() on contract | 132 chars (65 bytes) |
ERC-6492 Signature Structure
An ERC-6492 signature wraps the standard signature with deployment information:Magic Bytes Identifier
ERC-6492 signatures end with a 32-byte magic suffix:x402Adapter.ts
Signature Processing
The x402 adapter detects and handles different signature formats:x402Adapter.ts
Verification Process
The x402 facilitator verifies ERC-6492 signatures in two steps:Step 1: Check Wallet Deployment
Step 2: Verify Signature
If wallet is deployed (code exists):Crossmint Wallet Deployment
Crossmint wallets deploy automatically on first transaction. However, for x402 payments, you may need to deploy manually before settlement:x402Adapter.ts
- Minimal gas cost (just deployment, no meaningful transfer)
- Simple transaction (no complex logic)
- Guaranteed to succeed (wallet sends to itself)
Payment Flow with Pre-Deployed Wallet
Guest Agent Implementation
Fromsrc/agents/guest.ts:384-431:
When to Deploy vs Use ERC-6492
Use ERC-6492
Best for: First-time payments, testing, low gas environments
- No upfront deployment cost
- Signature works immediately
- Facilitator handles deployment during settlement
Deploy First
Best for: Production, high-value payments, known repeat usage
- Faster payment settlement
- Standard EIP-1271 verification
- Avoid deployment delay in critical flows
Error Handling
Insufficient Balance for Deployment
Insufficient Balance for Deployment
Invalid ERC-6492 Signature
Invalid ERC-6492 Signature
Deployment Simulation Failed
Deployment Simulation Failed
Testing Pre-Deployment Signatures
Implementation Checklist
Related Topics
EIP-712 Signatures
Human-readable typed data signing
x402 Facilitator
Payment verification and settlement
References
- ERC-6492 Specification
- EIP-1271 Contract Signatures
- Source:
events-concierge/src/x402Adapter.ts:78-154