Ethereum forum post proposes a hard fork to recover funds after a quantum attack

A post on the Ethereum research forum ethresear.ch sets out a plan for one scenario: it is announced tomorrow that quantum computers exist, and bad actors already have them and are using them to steal users' funds. Quantum-resistant cryptography (the post names Winternitz signatures and STARKs) is meant to prevent this, and once account abstraction is in place any user can switch to a quantum-resistant signature scheme on their own schedule. But the post asks what happens if there is not that much time and a sudden quantum transition arrives first.

The author argues that Ethereum is already well-positioned to make a pretty simple recovery fork. The blockchain would have to hard fork and users would have to download new wallet software, but few users would lose their funds.

The problem, as the post describes it: an Ethereum address is keccak(priv_to_pub(k))[12:], where k is the private key and priv_to_pub is an elliptic curve multiplication. With quantum computers, elliptic curve multiplication becomes invertible, because it is a discrete-log problem, but hashes stay safe. An account that has never made a transaction shows only its address, so it is already safe. But one transaction is enough: its signature reveals the public key, and in a post-quantum world that allows the private key to be recovered. So most users would be vulnerable.

The key observation is that in practice most users' private keys are themselves the result of a series of hash calculations. Many keys come from BIP-32, which derives each address through a series of hashes starting from a master seed phrase. Many non-BIP-32 methods work the same way; a brainwallet, for example, is generally a series of hashes (or a medium-hard KDF) applied to a passphrase. A person can therefore prove knowledge of that hash-derived secret even though the elliptic curve key itself is no longer secret.

From this the post derives the structure of an EIP for a recovery hard fork:

  • Revert all blocks after the first block where it is clear that large-scale theft is happening.
  • Disable traditional EOA-based transactions.
  • Add a new transaction type allowing transactions from smart contract wallets (for example as part of RIP-7560), if that is not available already.
  • Add a new transaction type or opcode that accepts a STARK proof. The proof shows knowledge of (i) a private preimage x, (ii) a hash function ID i, with 1 <= i < k, from a list of k approved hash functions, and (iii) a public address A, such that keccak(priv_to_pub(hashesi))[12:] = A. The STARK also takes as a public input the hash of new validation code for that account. If the proof passes, the account's code is switched to the new validation code, and from then on it works as a smart contract wallet.

Because STARKs are big, the post suggests that for gas efficiency the STARK could be a batch proof covering N STARKs of this type. It would have to be a STARK-of-STARKs rather than a direct proof of multiple claims, because each user's x must stay private from the aggregator.

The post closes by saying the infrastructure for a hard fork like this could in principle start to be built tomorrow, which would leave the Ethereum ecosystem maximally ready if a quantum emergency does come.

Key facts

  • The post imagines quantum computers being announced tomorrow, with attackers already using them to steal funds, and proposes a recovery hard fork for that case.
  • Accounts that never sent a transaction only expose their address and are already safe; one transaction reveals the public key, which quantum computers could turn into the private key.
  • The proposal rests on most private keys being the output of hash calculations, as with BIP-32 seed phrases and brainwallets, so users can prove knowledge of the hash preimage.
  • The EIP outline: revert blocks after the first clear large-scale theft, disable EOA transactions, add a smart-contract-wallet transaction type, and accept a STARK proof that switches an account to new validation code.
  • To save gas, the STARK could be a batch proof of N STARKs, built as a STARK-of-STARKs so each user's secret stays hidden from the aggregator.

Why it matters

Quantum computers that can invert elliptic curve multiplication would expose the private key of any Ethereum account that has ever sent a transaction. The usual answer, moving users to quantum-resistant signatures through account abstraction, assumes there is time. This post addresses the harder case, a sudden transition, and argues the damage could be contained because most keys are hash-derived and hashes remain safe.

Who it affects

Ethereum account holders whose accounts have sent at least one transaction, since they are the ones the post says would be vulnerable. Accounts that never transacted are already safe in the author's account. In the proposal users would have to download new wallet software, and the chain itself would have to hard fork. The post names BIP-32 seed-phrase users and brainwallet users as examples of hash-derived keys. Users whose keys are not derived from hashes are not addressed in the source text.

How to use it

There is nothing to install or run: this is a design for a possible future EIP, not a released feature. In the scenario, a user would run new wallet software that produces a STARK proof of knowing the hash preimage behind their address and supplies the hash of new validation code. If the proof passes, the account becomes a smart contract wallet using that code. The post says infrastructure for such a fork could in principle start to be built immediately.

How solid is it

It is an argued proposal on a research forum, written in the first person ("I argue"). The source does not say it has been accepted, assigned an EIP number or implemented, and it gives no gas costs, proof sizes or performance figures for the STARKs. It also gives no timeline, governance process or client-team commitment. The reasoning on addresses, public keys and hashes is stated plainly and follows from the described properties of quantum attacks.

Risks and caveats

The scenario is explicitly hypothetical: no quantum computer is said to exist now. The recovery depends on reverting blocks after the first clear large-scale theft, and the post does not say how that point would be determined. Only users whose keys come from hash computations are covered; the post says "most" users and that "few" would lose funds, without putting a number on either. Batch proofs are needed because STARKs are big, and they must be STARK-of-STARKs to keep each user's secret from the aggregator.

“I argue that actually, we are already well-positioned to make a pretty simple recovery fork to deal with such a situation.”

— ethresear.ch post