Docs · Quantum emergency plan▾
Overview

The quantum emergency plan

In March 2024, Vitalik Buterin described how Ethereum could still protect most users if powerful quantum computers arrived suddenly. This page explains that plan in plain language, and where Winternitz fits in it.

How an address is made#

Almost every Ethereum address comes from a recovery phrase through a chain of steps. Most are hashes, and one is elliptic curve math.

Recovery phrase

24 words

BIP-39, BIP-32↓hash assumption

Private key

signs

secp256k1↓Shor's target

Public key

64 bytes

Shown by every signature

Keccak-256↓hash assumption

Address

20 bytes

Every step is easy to compute from left to right. The phrase is hashed into a private key (BIP-39 and BIP-32), and the address is the last 20 bytes of the public key's Keccak-256 hash. These steps depend on hash and key-derivation assumptions. A sufficiently capable quantum computer could use Shor's algorithm against the curve step. An Ethereum transaction signature exposes enough information to recover its public key.

The difference between the two kinds of step is the whole story:

  • Hashes are one way. Keccak-256 and the hashing inside BIP-39 and BIP-32 cannot be run backwards. A quantum computer only speeds up guessing (Grover's algorithm), which still leaves them far out of reach.
  • The curve step is not. ECDSA assumes nobody can work out a private key from its public key. Shor's algorithm, on a large enough quantum computer, does exactly that.

An address that has never sent a transaction only shows its hash, so its public key stays hidden. As soon as it signs, the signature reveals the public key, and it stays onchain forever. That is why public keys collected today could be attacked later.

The plan, step by step#

The proposal is an emergency hard fork, for the day it becomes clear that quantum computers are being used to steal funds.

  1. 1

    Roll back

    Blocks after large scale theft becomes obvious are reverted, returning stolen funds.

  2. 2

    Stop ECDSA

    Ordinary transactions signed with an account's ECDSA key are no longer accepted.

  3. 3

    Prove the seed

    A new transaction type carries a STARK proving you know the words your key was derived from.

  4. 4

    Smart contract validation

    The account carries on as a smart contract wallet, with rules that do not depend on ECDSA.

What each user proves in step 3

“I know a recovery phrase that, hashed into a private key, gives a public key whose Keccak-256 hash ends in address A.”

The proof reveals nothing about the phrase. Thousands of proofs can be combined into one (a STARK of STARKs) to keep the cost low.

The proposal distinguishes knowledge of an ECDSA private key from knowledge of its secret derivation preimage. It assumes that an attacker who recovers the key cannot also recover that preimage. This is a research proposal, not an implemented recovery guarantee.

The key insight is in step 3. Most private keys are themselves the result of hashing a recovery phrase. A quantum attacker can recover the private key from a public key, but cannot get from the private key back to the words, because that would mean reversing hashes. So knowledge of the words becomes the new proof of ownership, and a STARK lets you prove it without revealing them.

STARKs are themselves built only from hashes, which is why the proof is quantum safe too.

What the plan cannot cover#

The plan is a rescue, and it has limits:

  • It needs a hard fork. The community has to agree on it, under time pressure, after an attack has already begun.
  • Some keys cannot be proven. Keys that were not derived from a recovery phrase, for example raw keys generated directly, have no hash preimage to prove.
  • Users still have to act. Each owner must generate and submit a proof to move their account to the new rules.

Where Winternitz fits#

The plan ends with accounts moving to smart contract validation. A Winternitz account starts there: it is a smart contract account (ERC-4337) whose signatures are hash based from its very first transaction.

Ordinary address

ECDSA, an EOA

Public key exposed by its first transactionProposed emergency hard forkProposed STARK preimage proofProposed smart contract validation

Winternitz account

ERC-4337, WOTS

Smart contract validation with hash based signatures, from its first transaction
Both designs use smart contract validation. Winternitz experiments with hash-based account authorisation today; the emergency proposal addresses a separate network-level recovery problem.

Winternitz explores that validation model without requiring the proposed fork. This does not guarantee protection from every consequence of a network-wide quantum emergency. Account authorisation is separate from consensus, device security, and network recovery.

For existing addresses, the Future work page describes a readiness check and a guided migration that follow this plan.

Read the original

Vitalik Buterin, his post on saving users' funds in a quantum emergency, ethresear.ch, March 2024. The diagrams on this page are our own illustration of the post, not part of it.