r/ethdev • u/shegeshe • 14d ago
Question How does EIP-7702 handle clean key revocation if we migrate EOAs to post-quantum signatures?
Been digging into the Lean Ethereum roadmap and the post-quantum transition plans, and there is a specific account migration edge case I keep coming back to.
Right now, the cleanest way for existing EOA holders to get quantum resistance without abandoning their current address and DeFi positions is delegating via EIP-7702 (or moving to native AA once EIP-8141 lands) to a smart wallet contract that verifies a lattice or hash-based signature.
The catch is that with EIP-7702, the underlying secp256k1 private key still retains root control over the account. Even if your daily transactions are verified through a post-quantum delegate contract, an attacker with a strong enough quantum computer could theoretically derive the original ECDSA private key from your public key on-chain and sign a fresh authorization transaction pointing your EOA to their own malicious delegate contract.
At the protocol level, how are core devs planning to let existing EOAs permanently burn or brick their underlying ECDSA key once they migrate to a post-quantum scheme? Would that require a dedicated opcode or transaction type in one of the upcoming forks before L*, or is the assumption that everyone eventually sweeps funds to fresh native AA addresses?
1
u/Bloqarl 14d ago
There’s a draft for exactly this, EIP-7851, a precompile that lets a delegated EOA deactivate its key. Even with that, any token whose permit() uses plain ecrecover still accepts the old key’s signature, so the attacker could sign permits and pull your tokens without ever touching the account.
1
u/veyrnox 14d ago
Small correction to the existing answer: EIP-7851 is currently drafted around an ECDSA-disabled delegation prefix plus a self-only
SETSELFDELEGATEopcode, not a precompile. Its goal is the one-way transition you're describing: after delegated code switches the account into that mode, ECDSA-authenticated transactions and later 7702 authorizations are rejected, while wallet code can still update the delegate.It is not the only proposal or a finalized path. EIP-8164 takes a different route by replacing ECDSA with a native ML-DSA-44 key; EIP-8425 sketches a future network-wide ECDSA freeze and recovery process; and EIP-8141 moves transaction validation away from 7702's ECDSA authorization-list model.
So under 7702 alone, your concern remains: the old secp256k1 key is still root authority and can overwrite or clear the delegation. Nonces only order authorizations made under that same key. A clean migration requires an adopted protocol rule that makes ECDSA permanently invalid for the account, or moving assets to an account whose root authentication is already post-quantum.
1
u/rayQuGR 13d ago
I think the difficult part here is not simply adding post-quantum signature verification. It's establishing a point where the old authentication mechanism can no longer regain control.
With EIP-7702, the original EOA key retains the authority to authorize a new delegation. That means a post-quantum verifier can protect normal wallet operations without necessarily protecting the account from someone who compromises the original secp256k1 key.
A robust migration needs to address that root authority explicitly. Possible approaches include a protocol-level mechanism for permanently disabling legacy authorization, or migrating assets and positions to an account whose authorization rules are natively post-quantum. The latter has its own challenges, especially when existing DeFi positions and address-bound permissions are involved.
There is an interesting connection to confidential smart-contract infrastructure such as Oasis Sapphire. It can support custom authorization logic and confidential execution, but it cannot independently revoke the EOA's protocol-level signing authority. That needs to be solved at the account or protocol layer.
I'd be interested to know whether the roadmap considers irreversible legacy-key revocation a protocol requirement, or whether the long-term assumption is that users will eventually migrate to new account types. Those are very different security models.
1
u/secrypta 5d ago
One blast radius that does not show up in the deactivate-the-EOA framing: if that same address is an owner on any Safe or other multisig, killing the key at the account level does nothing for those. The Safe still treats a signature from the old secp256k1 key as a valid owner approval, since that check lives in the Safe contract, not in your EOA. So the pre-compromise checklist is not just sweep balances and revoke approvals, it is also rotate that address out as an owner everywhere it signs, including multisigs, module configs, and any contract that hardcoded it as an admin. Those are the ones people forget because nothing in the wallet UI reminds you they exist.
1
u/[deleted] 14d ago
[removed] — view removed comment