Before the freeze, owners can migrate to quantum-resistant wallet code at the same address through EIP-8298. The freeze rejects transactions carrying protocol-validated secp256k1 signatures and removes the ecRecover precompile. An owner who missed migration can install successor code at the same address with a hash-based zero-knowledge proof of the wallet seed.
Motivation
A practical quantum break of secp256k1 could expose unmigrated accounts. Specifying a response in advance lets clients and wallets implement, test and audit it before an emergency, reducing coordination under time pressure. Whether to activate this response, when to do so, or whether to choose another course remains a separate decision.
Specification
Parameters
Parameter
Value
Meaning
QUANTUM_FREEZE_TIME
TBD
Activation timestamp (Unix seconds)
RECOVER
0x07
Recovery frame mode
SEED_PROOF_GAS
2000000
Execution gas per proof verification attempt
The network may schedule the timestamp in advance or coordinate an earlier one in an emergency. Nodes must agree on it before activation.
Freeze
For blocks with block.timestamp >= QUANTUM_FREEZE_TIME, reject before execution any transaction containing a protocol-validated secp256k1 ECDSA signature. This applies to transactions with a secp256k1 sender signature (including EIP-7702 transactions) and to EIP-8141 transactions whose signatures list contains a SECP256K1 entry. Existing delegations remain callable.
Remove the ecRecover precompile at 0x0000000000000000000000000000000000000001 and its automatic EIP-2929 prewarming. Preserve the account state. Ordinary account and gas rules apply to all call types. Successful calls to the empty code return empty data. A successful CALL transfers forwarded value, and a revert rolls back that transfer.
Seed recovery
Use the wallet’s original 16- to 64-byte BIP-32 seed and the full derivation path it used for the target account. For a BIP-39 wallet, locally derive its 64-byte seed using PBKDF2-HMAC-SHA512 (2048 iterations). Use the mnemonic as the password and "mnemonic" + passphrase as the salt, normalizing each string to NFKD before encoding it in UTF-8. The default passphrase is empty. A backup of the seed bytes grants the same authority.
Submission and execution
From the freeze timestamp, an EIP-8141 transaction may include RECOVER only as its last frame, outside any atomic batch, with an explicit 20-byte target, zero flags and zero value. Its data is exactly 222,760 bytes, comprising a 92-byte header with a big-endian uint64 nonce followed by the proof.
be8(nonce) || source || code_hash || tag || proof
Violating these constraints invalidates the transaction. A sponsor may approve payment in an earlier frame and pays ordinary frame-data charges. The target needs neither a signature nor ETH.
Charge and warm the target at frame entry under EIP-8141. Record each charged target or source access in the block-level access list even if the frame later reverts. Dispatch directly even for a delegated target. Use live account state after any earlier frame or batch rollback.
Use EIP-8298’s definition of a system contract and its SETCODEFROM rules for source eligibility, adoption costs and code-hash recording.
Require prior payment approval and the target’s current nonce to equal nonce. Its own code must be empty or exactly 0xef0100 followed by a 20-byte address. An absent target has nonce zero and empty code. Reject precompiles, system contracts and targets created by contract creation in this transaction.
Charge for source access and validation, then warm the source. Require an eligible source whose current codeHash equals code_hash.
Charge SEED_PROOF_GAS before decoding the proof or reconstructing the journal. Verify the proof against the expected journal.
Charge the remaining current-account and write costs. Charge EIP-8141 account-creation state gas if the target has zero nonce, zero balance and empty code. Install the authorized code hash and record the change. Preserve target nonce, balance and storage. Return success with empty logs, without executing wallet code.
A failed execution check reverts the frame. Insufficient gas causes an exceptional halt. EIP-8141 frame charging and rollback apply, including rollback of address warmth.
Proof statement
Generate the BIP-32 master extended private key from the exact seed bytes. Starting at m, apply CKDpriv in order to each of the depth unsigned 32-bit child indices. A set high bit selects hardened derivation. Use compressed SEC1 public keys for non-hardened steps. Depth zero uses the master key itself. Reject an invalid master key or an invalid child at the supplied index. A wallet that skipped an invalid child supplies the index it actually used. For the final secp256k1 public key (x, y), derive account = keccak256(be32(x) || be32(y))[12:].
beN encodes an unsigned integer in exactly N big-endian bytes. Addresses are 20 bytes, hashes are 32 bytes, and the domain string is ASCII. The private witness contains exactly seed_len seed bytes (16 through 64) and depth child indices. depth counts derivation steps from m and must be between 0 and 255 inclusive. Reject truncated input or trailing bytes.
path = concatenation of be4(child) for each child index from root to leaf
witness = be1(seed_len) || be1(depth) || seed || path || be32(chain_id) || be8(nonce) || source || code_hash
intent = "EIP-8425/recover/v1" || be32(chain_id) || account || be8(nonce) || source || code_hash
tag = HMAC-SHA-256(key=seed, message=intent)
public_input_hash = keccak256(intent || tag)
journal = account || tag || public_input_hash
Only the 84-byte journal is public output. The verifier reconstructs it using the current chain ID, the frame target as account, and the header fields, including the supplied tag.
Proof system
The frame carries a native RISC Zero zkVM 3.1.0 succinct STARK for the recovery guest. The verifier with its locked dependencies defines transcript verification for these parameters.
Decode exactly 55,667 little-endian uint32 words (222,668 bytes). Require every word to be below p and raw word 32 to equal 18 (zero-based).
Compute the receipt claim digest below for a successful halt with no unresolved assumptions. Convert words 0–31 from Montgomery form. Words 0–15 must match the inner root’s eight little-endian uint32 words, each followed by zero. Words 16–31 must match the claim digest’s sixteen little-endian uint16 limbs.
Verify the complete STARK transcript with the pinned recursion circuit and hash suite. Require its reconstructed code Merkle root to be an allowed outer control ID. Reject any failure or trailing data.
For ReceiptClaim::ok(image_id, journal), let H be SHA-256 and Z be 32 zero bytes. To compute T(label, children, words), hash the concatenation of H(ASCII(label)), the 32-byte child digests in order, the words as little-endian uint32s and the child count as a little-endian uint16. Use raw digest bytes throughout.
post = T("risc0.SystemState", [Z], [0])
output = T("risc0.Output", [H(journal), Z], [])
claim = T("risc0.ReceiptClaim", [Z, image_id, post, output], [0, 0])
The list contains one 32-byte outer control ID per line. Hex-decode the 27 lines and concatenate them in file order. The SHA-256 digest of these 864 bytes is c4f876ad6fbc09316f20dee62e51b33bb98097489b2194738987dd50cc1a5c56.
Rationale
The freeze covers EIP-8141 signers because wallets and sponsors can authorize actions from SIGPARAM independently of the transaction sender.
Starting from the seed supports all BIP-39 word lists and passphrases with one circuit. The journal binds the request. Authorizing a new request under the same seed requires a fresh HMAC even after the first proof becomes public.
BIP-44 defines one layout for a BIP-32 key tree. Ethereum derives an address from the resulting public key, so wallets can use other BIP-32 paths (e.g., the legacy Ledger path m/44'/60'/0'/i used with MyEtherWallet and the three-level path m/44'/60'/a' accepted by Trezor firmware). Applying BIP-32 to the complete private path lets each owner prove the same relationship between seed and account.
BIP-32 child key derivation has no fixed depth limit, whereas serialized extended keys (xprv/xpub) store depth in one byte, from 0 (the master key) through 255. Encoding the witness depth as one byte matches that bound instead of picking an arbitrary smaller cap, and supports paths far deeper than typical wallets use. At four bytes per child index, the path occupies at most 1,020 bytes in the private witness, and the prover performs at most 255 child key derivations.
This draft uses RISC Zero so implementers can test the recovery proof in Rust and discuss its design ahead of a possible migration to native proof verification. Its hash-based STARK targets post-quantum soundness and supports zero knowledge without a trusted setup. The proof parameters describe the configuration used for the test vector and benchmarks.
As of November 2026, Ethereum has no active native verifier for this recovery statement. Draft EIP-8288 reserves LEANSTARK_SCHEME, and leanVM’s RISC-V and zero-knowledge support is experimental. Once Ethereum supports native verification of post-quantum zero-knowledge proofs, implementers could adapt the guest I/O and recompile the Rust recovery logic for leanVM’s RISC-V target. The port would keep the seed and path private and emit the same 84-byte journal. Under the proposed dependency model, RECOVER could require a verified leanSTARK dependency in the same transaction matching the recovery program’s pinned verification key hash and a specified digest of the journal reconstructed from the chain ID and frame. A fork adopting this design would specify proof and frame encodings and size limits, publish new proof vectors and set gas charges from cross-client benchmarks.
The prover performs all BIP-32 derivation steps off-chain. At every supported path depth, the verifier checks one 222,668-byte proof for SEED_PROOF_GAS (2,000,000 gas). At the EIP-7904 benchmark target of 100 million gas per second, this charge corresponds to 20 ms per verification.
For BIP-32 test vector 1 at m/0'/1, the reference verifier (Rust 1.96.0, release build) loaded the inputs into memory on an Apple M2 Max, performed 10 warm-up checks and timed 101 sequential checks in the same process. Median, 95th percentile and maximum verification times were 11.66, 11.92 and 12.18 ms.
This estimate assumes serial verification. Clients can use idle CPU cores to verify proofs from different transactions in parallel because the verifier reads only the public request and proof. Eligibility checks, gas charges and state updates still follow transaction order.
Under EIP-8141, floor_tokens_in(data) = 4 * len(data) counts zero and nonzero frame-data bytes equally. At 16 gas per floor token, the 222,760 bytes of RECOVER frame data contribute exactly 222,760 × 4 × 16 = 14,256,640 gas to the transaction’s calldata floor. Standard intrinsic gas charges 4 gas per zero frame-data byte and 16 per nonzero byte, so its frame-data component can vary between proofs. Both the full floor and intrinsic gas plus declared execution limits must fit the 16,777,216 execution-gas cap. State gas is budgeted separately.
Backwards Compatibility
Activation requires a hard fork, quantum-resistant transaction submission and wallet support. Transactions signed before the freeze face the same checks at inclusion. Contracts relying on ecRecover must handle empty return data.
Test Cases
Use the 16-byte seed 000102030405060708090a0b0c0d0e0f and path m/0'/1 from BIP-32 test vector 1. Set the chain ID to 1, the target nonce to 0 and the runtime at source 0x1111111111111111111111111111111111111111 to 0x00. The proof produced by the test vector generator must verify against the following public values.
A transaction contains a SECP256K1 entry, whether used by the payer or unused
Existing rules before the freeze, invalid at and after it
An earlier frame migrated the target to regular code
Recovery reverts before proof verification
The migration was rolled back, leaving the target delegated
The target remains eligible
An earlier frame changed an eligible source’s code
The new hash must match the authorized hash. If the change was rolled back, the restored hash must match
The guest tests cover the master key, wallet-specific paths, index boundaries and a depth-255 path. The state transition tests and verifier tests cover gas, malformed proofs and request binding.
Reference Implementation
The implementation guide shows how to build the guest, generate and verify a proof, and assemble the frame. Clients may integrate the Rust verifier or independently implement the proof verification rules. Both must accept exactly the same request and proof pairs. The Python model illustrates the recovery frame’s state transition.
Prover measurements
The reference implementation ran on an Apple M2 Max with a Rust 1.96.0 release build of the host and the default r0vm 3.1.0 executor settings. Elapsed time covers generation and verification of the public test proof with the test vector generator. Peak RSS is the maximum resident memory of the prover process.
Private derivation path
Guest user cycles
Segments
Generate and verify
Peak prover RSS
m/0'/1 (BIP-32 test vector 1)
6,989,339
8
17 min 38 s
6.96 GiB
255 non-hardened steps at index 0 (BIP-32 test vector 1 seed)
876,561,958
882
—
—
RISC Zero recursively combines the segment proofs off-chain, so RECOVER performs the same verification work at every path depth, checking one 222,668-byte succinct STARK for 2,000,000 gas. The 255-step run measured guest execution only. A guest rebuild ran concurrently during part of the two-step proving run.
Security Considerations
Recovery authority
Anyone with a seed and path that derive a delegated account can recover it even after wallet key rotation. The wallet must retain or discover the full path. Owners using custom paths should record them with their wallet backups. Owners with only a leaf private key or an extended private key, or whose wallet uses another derivation scheme, must migrate before the freeze. Installing regular code ends seed recovery, including when a compromised signer migrates first.
The recovery proof authorizes installation of the source’s runtime code. A previously delegated target retains its storage, including any initialization flags, owners, administrators, session keys and module permissions. Before granting authority based on any of these values, the successor code must authenticate that authority against a key or commitment established by the recovery-authorized code.
Installation is the last frame and executes no wallet code. Any later initializer must authenticate the owner against the successor authority. Letting the first caller set the owner exposes the account to takeover.
For example, to recover an EOA A with empty storage, the owner generates an ML-DSA key pair and deploys wallet code with the hash of the new public key pk embedded in its runtime code. The owner’s seed proof authorizes the source address and code hash. A sponsor submits RECOVER to install that code at A.
Owner key fixed in code. From the first operation after recovery, the wallet checks keccak256(pk) against the embedded hash and verifies the signature under pk over the operation, chain ID, A and a replay nonce. This wallet needs no initializer.
Owner key in storage. The wallet keeps spending disabled until a one-time initialize(pk, sig) call succeeds at A in a later transaction. Anyone can relay the call. The wallet checks keccak256(pk) against the embedded hash and verifies sig under pk over an initialization message binding the chain ID and A. It then stores pk as the initial owner key and enables spending.
A hardware wallet may lack an on-device prover. If it supports pre-freeze migration, the seed can stay on-device. Importing the seed into a separate prover, even offline, exposes every derived account to that host. Keep secrets out of logs, crash dumps and automatic backups. Give the sponsor only the public request and proof.
The proof leaves the sender and payer unbound so an owner can change sponsors. A copied recovery frame can install the same authorized code first. If the original transaction is also included, its recovery reverts before proof verification and its payer still pays at least the calldata floor. For a zero-value VERIFY + RECOVER transaction, the floor is 14,269,590 gas before sponsor data and signature charges. Private submission can reduce this exposure.
Cryptographic assumptions
Any seed and supported path deriving the 160-bit address satisfy the proof. Generic quantum preimage search costs about 2**80 evaluations in the idealized query model. Effective security also depends on the entropy of the seed or the mnemonic and passphrase used to generate it. The public tag permits testing a candidate seed without its path. For a fixed intent, HMAC key padding gives the same tag for seeds differing only by trailing zero bytes. The proof also binds the address derived from the exact seed bytes.
The backend’s 50-query FRI profile has a conjectured 97-bit security target. A quantum knowledge-soundness bound for the full protocol remains open. The guest, recursion verifier, Fiat-Shamir and FRI assumptions and zero-knowledge implementation require independent review. The gas charge is provisional pending cross-client benchmarks.
Availability of recovery software
Before mainnet activation, multiple independent operators should each retain and publish a complete copy of the offline build archive and its SHA-256 manifest. Include the guest and verifier sources, their lockfiles and vendored dependencies, the base image, the pinned toolchains and build tools, offline build instructions, and the guest ELF. Verify that an independent offline rebuild from this archive reproduces both the published ELF SHA-256 digest and the specified guest image ID.
Other authorization paths
The freeze preserves the EIP-7951P256VERIFY precompile where active and the EIP-8141 P256 rules. P-256 alone remains vulnerable to quantum forgery. A wallet can require both a P-256 signature and an independent ML-DSA signature for the same operation.
Users may be unable to withdraw assets if the only withdrawal path relies on ecRecover.
Empty return data leaves the caller’s output memory unchanged. Contracts that check only call success or read output without validating its length may therefore still accept unauthorized calls. Removing the precompile does not protect contracts that implement ECDSA verification independently.