Docs · Why quantum safe▾
Overview

Why quantum safe

Ordinary Ethereum accounts use ECDSA signatures, which a sufficiently capable quantum computer could attack using Shor's algorithm. Winternitz explores hash-based authorisation in a smart account. Its security scope focuses on account authorisation.

Where Winternitz fits in PQC#

Post-quantum cryptography (PQC) is a field of cryptography designed to resist attacks by classical and quantum computers. It includes several signature and key-establishment schemes; PQC is not the name of one algorithm, and it does not require a quantum computer to use.

Winternitz implements a custom Winternitz one-time signature (WOTS) construction using Keccak-256. The TypeScript wallet signs a UserOperation, and the Solidity smart account verifies it through ERC-4337 / EntryPoint v0.7. Its intended post-quantum property comes from hash-based authorisation, with security dependent on the construction, parameters, implementation, and strict one-time key use.

LayerCurrent implementationWhat it does
SignatureCustom WOTS, w = 16, 67 hash chainsAuthorises a single message per key
HashKeccak-256Builds chains and commits to the current and next keys
Smart accountERC-4337, EntryPoint v0.7Verifies the signature and advances the onchain key
Signing stateLocal write-ahead journalRecords each exposed key before returning its signature

The raw WOTS signature is 2,144 bytes. A normal account signature adds the next key hash for 2,176 bytes in total; recovery adds a mode byte and two next-key hashes for 2,209 bytes.

Relationship to standards

NIST specifies stateful hash-based schemes including XMSS in SP 800-208, and the stateless scheme SLH-DSA in FIPS 205. Winternitz belongs to the broader hash-based signature approach, but this custom WOTS account is not an implementation of those standards and has no NIST certification or independent security audit.

One address, fresh signing keys#

For key index n, the wallet signs keccak256(userOpHash || nextPublicKeyHash). This binds the operation to the next key as well as its transaction details. During successful validation the account checks the signature, stores the next key hash, increments its index, and emits KeyRotated. The account address stays the same.

Key rotation is required for one-time signatures. Rotation alone is not what gives a signature scheme its intended post-quantum properties. Signing two different messages with the same WOTS key can undermine its security. Successful validation consumes a key even when the later execution reverts; the wallet must also remember signatures that were produced but never confirmed.

The recovery key can replace a signed but unsubmitted or stuck operation without asking the exposed main key to sign again. It advances both the main and recovery keys. This is pending-operation recovery, not seed recovery or safe signing reactivation on a restored device. See how it works and security and signing-state limits.

What a quantum computer breaks#

A normal Ethereum account (an EOA) has one private key for life. Its public key becomes visible onchain the first time the account sends a transaction, and it stays visible forever.

ECDSA's security rests on one assumption: that you cannot compute the private key from the public key. Shor's algorithm, running on a large enough quantum computer, can do exactly that. An attacker could then sign any transaction from that account.

This is a future signature-forgery risk: an exposed public key could be attacked if sufficiently capable quantum hardware becomes available. No encrypted transaction needs to be decrypted; the concern is an attacker creating a new, valid signature.

Long-term holdings motivate the vault design because their security must remain useful over a long horizon. Frequent trading does not hide a public key once it is exposed. Winternitz explores an alternative for account authorisation.

Hash security and its limits#

Hash functions such as Keccak-256 rely on different assumptions. Grover's algorithm gives an idealised quadratic speedup for generic preimage search: roughly 2¹²⁸ queries for a single 256-bit target. That is a statement about hash preimage search, not a complete security proof or a certified security level for this wallet.

Hash-based signature schemes are a route to post-quantum authorisation. Standardised designs such as XMSS have precise parameter and state-management requirements; see NIST SP 800-208. This repository's custom WOTS construction is not a certified XMSS implementation. Correct key state and independent review remain essential.

ECDSA (today's wallets)Winternitz (WOTS)
Built onElliptic curves (secp256k1)Hash functions (keccak256)
Security assumptionElliptic-curve discrete logarithm, vulnerable to Shor's algorithmHash security plus strict one-time key use
Key useOne key for every transactionA fresh key for every transaction
Signature size65 bytes2,176 bytes (incl. next key)

Why act now#

Vitalik Buterin's March 2024 quantum-emergency proposal describes a possible recovery fork: disable ordinary ECDSA transactions, prove knowledge of a key-derivation preimage using a STARK, and move affected accounts to smart contract validation. It is a research proposal, not a promised recovery service. The quantum emergency plan walks through it.

ERC-4337 allows experiments with account validation without waiting for a consensus upgrade. The future-work proposals describe possible migration tools; they have not shipped.

How account abstraction makes it possible#

With ERC-4337, a smart account defines its own signature validation. Winternitz uses that model to verify WOTS signatures where the required account contracts and EntryPoint are deployed. It does not change existing EOA addresses or remove their ECDSA authority.

Winternitz uses the standard EntryPoint v0.7, so it works with existing ERC-4337 bundlers and infrastructure.

Scope

The design targets account authorisation. It does not establish quantum security for the whole blockchain, the relayer, browser storage, or the device holding your seed. Holding WTZ does not change these security guarantees. See Security & scope.

Migration remains planned#

Post-quantum migration is the process of moving systems and accounts toward post-quantum cryptography. Winternitz's proposed exposure checks, guided transfer from existing ECDSA accounts, and EIP-7702 preparation are future work, not available migration tools.

An EIP-7702 delegation retains the original EOA's ECDSA authority; installing WOTS validation through delegation alone does not remove that authority. A new WOTS smart account and an existing delegated EOA have different security properties. See EIP-7702's security considerations.

What testnet evidence establishes#

A successful testnet receipt can demonstrate signature acceptance, key rotation, and recovery behavior for a particular operation. It cannot prove resistance to a quantum attacker or replace cryptographic analysis and an independent audit. The testnet verification record separates confirmed transactions, read-only replay checks, and work still pending.