ERC-8010 Demo

Walk through the complete pre-delegation signature verification flow.

1. Sign Message
2. Wrap with ERC-8010
3. Verify Off-Chain
4. Delegate On-Chain
5. Verify Post-Delegate
Step 1: Sign a Message
Pending
Sign a message with the preset account. This signature will later be verified by the delegated contract.
Step 2: Wrap with ERC-8010
Pending
Sign an EIP-7702 authorization with the preset account and build the ERC-8010 wrapped signature: inner_sig || context || context_len || MAGIC.
Step 3: Verify Off-Chain (Pre-delegation)
Pending
Verify the wrapped signature using viem's verifyHash. It auto-detects the MAGIC marker and simulates delegation via eth_call.
Step 4: Execute Delegation On-Chain
Pending
Send a type-4 transaction with the EIP-7702 authorization list. This sets the EOA's code to 0xef0100 || delegate.
Step 5: Verify Post-Delegation
Pending
Verify the same wrapped signature again. Now that delegation is on-chain, viem detects the delegation code and uses ERC-1271 directly — no simulation needed.