The “minimal assumptions” argument
In Ethereum’s post-quantum debate, hash-based cryptography is increasingly framed as “post-AI” as well, safe even if AI finds mathematical attacks humans missed. In the pqai27 proposal, Ethlabs defines post-AI cryptography as resting on “as few assumptions as possible”, calling Ethereum “plausibly post-AI, not provably”, and writes:
“The planned cryptography is built around hash functions, to minimize the assumptions we need to rely on. This is also the approach for the rest of the cryptography, such as aggregation. Minimal assumptions address both quantum computers and AI alike, so the existing plan already covers the cryptography for both.”
In context, “minimal” here means practically minimal: compared to lattice schemes such as ML-DSA or Falcon, hash-based designs avoid introducing a new algebraic assumption family like Module-LWE or NTRU. Yet that framing easily slips into the stronger claim that switching to hash-based signatures adds no new assumptions. In PQAI #0, after arguing for “the most conservative assumptions”, the Ethereum Foundation (EF) writes: “The Ethereum protocol already relies on hashes being secure, so importantly this does not add a new assumption.” The same shorthand shows up in core dev calls: in ACDE #249, SPHINCS was defended with “SPHINCS does not add new crypto assumptions (we already have [Keccak]), while Lattices would.”
“Hash-based” names a building block, not an assumption. This distinction matters because while adding post-quantum signatures is not in question, dropping elliptic curves at the same time is not free. Whenever a hash-based scheme quietly introduces new hash assumptions of its own, you are trading risk rather than purely removing it: if one of those new assumptions breaks while elliptic curves are still standing, dropping them leaves you worse off.
Saying a hash function is “secure” can mean very different things, starting with three classic properties:
- One-wayness (preimage resistance): Given only the output for a random input , nobody can find any input that hashes to it.
- Second-preimage resistance: Given a random input , nobody can find a different input with .
- Collision resistance: Nobody can find any pair of distinct inputs with .
Ethereum’s core protocol uses of Keccak-256 rely primarily on collision and preimage resistance. To show why those properties do not automatically carry over to hash-based signatures, we compare two one-time schemes built on the same hash function : Lamport, the minimal hash-based signature scheme, and Winternitz, the standard efficiency optimization inside XMSS, SPHINCS+, leanXMSS, and leanSPHINCS. We show:
- One-wayness alone is enough for Lamport.
- Even one-wayness and collision resistance together are provably not enough for textbook Winternitz. We’ll build an explicit hash function that is both one-way and collision-resistant whenever SHA-256 is, so Lamport over it stays secure, yet lets an attacker forge Winternitz signatures almost 100% of the time.
One-wayness
For digital signatures, one-wayness is the theoretical floor: secure signatures exist if and only if one-way functions exist. Proving one-way functions exist is at least as hard as proving , and even if is true, one-way functions still might not exist (see Impagliazzo’s five worlds).
- Necessary: Every signature scheme maps random secret bits to a public key. If that mapping weren’t one-way, anyone seeing your public key could invert it and forge signatures at will.
- Sufficient in theory: Rompel (1990) showed how to build a full signature scheme from any one-way function, with zero extra assumptions.
Rompel’s construction is far too slow and large to deploy, so practical schemes buy efficiency by assuming more.
To make one-wayness precise, take and an attacker limited to basic operations playing this game:
- Pick uniformly at random from .
- Compute and give to the attacker.
- The attacker outputs some .
- The attacker wins if .
We say is -one-way if no attacker within budget wins with probability greater than . Intuitively, 128-bit security means budget buys a winning probability of at most roughly , so a high chance of success takes roughly operations.
One-wayness is average-case over random inputs. If a tiny sliver of inputs, say one in , is trivially invertible, is still one-way. A random almost never lands there, so it only nudges the winning probability up by . Real hashes have such slivers too: anyone can precompute billions of hashes and invert them instantly.
Lamport signatures
Lamport signatures are the simplest hash-based signature scheme. For simplicity, we sign an -bit message directly:
- : For each bit position , pick two random secrets and ( total). The public key is their hashes , which we call slots indexed by .
- : For each position , reveal ( secrets).
- : Hash each revealed value and check it matches slot in .
A Lamport key can only sign once. Signing two messages that differ in at least two bits reveals both secrets at those positions, letting anyone mix and match them into a third forged message without inverting anything.
The security goal is one-time unforgeability:
- Generate and give to the forger.
- The forger chooses any message and receives .
- The forger outputs a forgery .
- The forger wins if and accepts.
The forger picks both and . Real attackers can often influence what gets signed, such as crafting a transaction or block header, so schemes must survive chosen-message attacks.
Proof from one-wayness alone
Because , they differ at some bit where the forger never saw the secret for , only its hash in . To prove security formally, we use a reduction: any algorithm that forges Lamport can be turned into an algorithm that inverts .
Cryptographic reductions
If breaking into a house forces you to break the door, then as long as the door holds, the house holds. Showing that breaking Lamport lets you invert proves that one-wayness of protects Lamport.
The proof runs backwards, from “Lamport breaks” to “ breaks”, because is equivalent to its contrapositive , and negating “for all” gives “there exists”.
Both lines say the same thing, yet only the second gives you something to compute with: it hands you one hypothetical forger, and you wrap it as a black box into one inverter. The only requirement is that whatever inputs your wrapper feeds the forger must look identical to real inputs, so the forger behaves as usual.
Suppose a forger wins the Lamport game with probability . We wrap it into an inverter for :
- Receive a one-wayness challenge for an unknown random .
- Pick one of the public-key slots uniformly at random and plant there. Fill the other slots with hashes of real random secrets.
- Hand to the forger. Every honest slot is , and is also , so has the exact distribution of a real key and the forger has zero information about which slot was planted. If it could spot , it could dodge it or ask to sign that slot to force a forfeit.
- The forger asks to sign some message . If uses the planted slot, give up, since that secret is unknown. Otherwise, sign honestly.
- Conditioned on surviving step 4, the forger sees a real Lamport game, so with probability it outputs a valid forgery . Let be the first bit where differs from . Slot was not used by , and if sits there, ’s component at position is a preimage of , which the inverter outputs to win.
Success probability: . Step 4 succeeds with probability , since uses half of the slots. Because reveals only the slots used, the planted slot stays hidden after signing: conditioned on surviving step 4, it is equally likely to be any of the unused slots, including . So the plant hits with probability , giving whenever the forger succeeds.
Thus the inverter breaks with probability at least . Flipping that around: if is -one-way, no Lamport forger spending roughly operations wins with probability above . For 256-bit messages, , costing 9 bits of security with zero assumptions beyond one-wayness.
This worked cleanly because every public-key slot is a single hash . Once Winternitz iterates along a chain, that guarantee breaks down.
Winternitz signatures
Lamport’s downside is size. With 32-byte hashes, signing a 256-bit message takes 512 public-key hashes, or 16 KB, and reveals 256 secrets, or 8 KB per signature.
Winternitz shrinks both by signing a whole base- digit per secret using a hash chain.
Write for applied times, with . A chain starts from a random secret and ends at . Take , giving digits :
- To sign digit , reveal position : .
- To verify digit , hash the revealed value more times and check you land on .
Hashing forward is free. If you sign digit by revealing , anyone can apply once to get and forge digit . Digit is also , which is already public, so across a multi-digit message anyone could forge the all-3s message without seeing a signature at all.
Winternitz plugs both holes with a checksum. Write your message in base as digits , and compute:
Sum how many steps remain above each message digit, write in base using a fixed number of digits, enough for the largest possible checksum, and sign those checksum digits with chains of their own. For the all-3s message, , so a valid signature must include the raw secret at position of every checksum chain.
Concrete example (, digits )
A 2-digit base-4 message can reach on , so the checksum always takes 2 base-4 digits. Your private key holds 4 random secret seeds , one per chain. For , the checksum is , written . You sign 4 digits :
- Chain 1 reveals
- Chain 2 reveals
- Checksum chain 1 reveals
- Checksum chain 2 reveals
Try forging by hashing Chain 1 forward once. The new checksum is , written , forcing you to go backwards on Checksum chain 2 from to .
With 32-byte hashes and , a 256-bit message takes 128 base-4 digits plus 5 checksum digits, or 133 chains and ~4.2 KB each for signature and public key. At (classic XMSS), it takes 64 digits plus 3 checksum digits, or 67 chains and ~2.1 KB, down from Lamport’s 8 KB signature and 16 KB public key.
Checksum Lemma. For any forged message , at least one digit of , message or checksum, is strictly smaller than the corresponding digit of .
Proof. If any message digit went down, we’re done. Otherwise, every message digit stayed the same or went up, and at least one went strictly up, so . Written in the same fixed base- width, the first digit from the left where and differ must be strictly smaller in . ∎
So, as with Lamport, forging a Winternitz signature forces the attacker to go backwards on at least one chain.
Going backwards on a chain can happen in two ways. An attacker could branch off and merge back into the chain higher up, which collision resistance already blocks. Or an attacker could step directly backwards from a value already hashed multiple times, for . One-wayness only guarantees that a single hash of a random input is hard to invert. Neither one-wayness nor collision resistance guarantees that iterated chain values stay hard to invert.
A collision-resistant one-way hash that breaks Winternitz
Start with any collision-resistant, one-way hash function . Picture as SHA-256 or Keccak-256: even if is ideal, the proof still works. From , we build a single length-preserving function such that:
- is both collision-resistant and one-way whenever is, so Lamport over stays secure.
- Winternitz over is broken: for every , an attacker can forge with probability .
Split each 384-bit input into a pair , a 128-bit label and a 256-bit value. Fix two distinct 128-bit constants: and .
- Disjoint output tags: Normal inputs () always output tag , while shortcut inputs () always output tag . Because , the two lanes can never collide with each other, and the shortcut lane can never invert a normal output.
- A free step back at position 2: Hashing a random secret once lands on tag . Hashing it a second time hits the shortcut lane and simply swaps to without touching the 256-bit payload.
The top row below defines , and the bottom previews Claim 2’s forgery from revealed back to .
Claim 1: is collision-resistant and one-way
If is collision-resistant and -one-way, then is collision-resistant and -one-way.
Proof of collision resistance. Suppose two distinct inputs collide under . They cannot come from different lanes, because the normal lane always outputs tag and the shortcut lane always outputs . They cannot both come from the shortcut lane either, because is one-to-one. So both must come from the normal lane, which yields a collision in . ∎
Proof of one-wayness. Pick a random input and compute .
- Rare case (): Happens with probability . Even if the attacker wins automatically here, it adds at most to its winning probability.
- Normal case (): Here . The shortcut lane never outputs tag , so every valid preimage of must come from the normal lane and therefore inverts .
Given a challenge for a random 384-bit , feed to any inverter for . Up to the event that starts with , it sees the normal-case distribution, and any valid preimage gives a preimage of under . So any inverter wins overall with probability at most . ∎
Combined with our Lamport bound, Lamport built from is secure: no forger wins with probability above . For 256-bit messages, where , that leaves ~119 bits of security even if is only 128-bit secure.
Claim 2: Winternitz with is forgeable for any
Take the first chain, starting from a random secret . As long as , which holds with probability , its first two hashes are:
where .
Attack.
- Choose to sign: Set and every other message digit to . Then , so every checksum digit is except the lowest, which is . For every , that sits below , leaving room to add 1 without a carry.
- Read on chain 1: The signature on reveals at position .
- Forge , identical to except drops from to :
- On chain 1, swap the tag back and output .
- Lowering by 1 raises the lowest checksum digit from to while keeping higher checksum digits at . Hash that checksum component forward once with .
- Keep every other component unchanged.
Verification. Position requires hashes to reach :
The first hash lands directly on , and the remaining hashes follow the real chain to . The forgery succeeds with probability . ∎
On this same :
- Lamport hashes each random secret once, so its public key stays in the normal lane and never exposes the shortcut.
- Winternitz chains hashes, so position 1 feeds tag straight into position 2, handing the attacker in plain sight.
From textbook Winternitz to Ethereum’s PQ stack
So even one-wayness, second-preimage resistance, and collision resistance together do not imply Winternitz is secure: iterated chain values must also stay hard to invert. Standard-model proofs for Winternitz and WOTS+ get there by assuming undetectability (or pseudorandomness), meaning is indistinguishable from uniform random so iterated outputs stay unpredictable. That condition is sufficient, not strictly necessary (a one-way permutation padded with a fixed 0 bit fails undetectability yet still blocks forgeries), yet every known proof assumes something outside collision and preimage resistance, or models the hash in the Random Oracle Model.
Real deployments hash many one-time Winternitz keys into a Merkle tree for a reusable key, and add per-step tweaks and (in Ethereum’s draft specs) target-sum encodings, yet neither change removes the need for extra assumptions on iterated chains. All proofs in this article (the Lamport reduction, the Checksum Lemma, Claims 1 and 2, the padded permutation remark, and the tweaks and target-sum extensions) are machine-checked in Lean 4.
Ethereum’s draft PQ stack builds two such schemes on chains, leanXMSS for validators and leanSPHINCS for user accounts, alongside a hash-based blob commitment, LeanDA. Because these signatures are several kilobytes each, leanVM aggregates them inside a hash-based zkVM that also certifies LeanDA’s blob encoding.
Today, Ethereum’s core uses of Keccak-256 (state, transactions, and 160-bit addresses) rely primarily on collision and preimage resistance. Consensus also models SHA-256 as an idealized random hash in BLS (RFC 9380) and single-round KZG checks (EIP-4844 and EIP-7594), plus public pseudorandomness in RANDAO and shuffling. The PQ stack adds two shifts:
- Multi-round and recursive Fiat-Shamir inside
leanVM(aggregation only). Instead of single-round KZG checks, aggregating thousands of signatures per slot runs many rounds of Fiat-Shamir (deriving verifier challenges from a hash) inside a zkVM, and stacks them recursively: aleanVMproof verifies childleanVMproofs inside itself. That recursion introduces a proof gap:leanVM’s security proof treats Keccak as an external random black box, yet inside recursion the program runs the real Keccak function. Its formal statement lists soundness across recursion under “What is not proved”, noting the model excludes programs evaluating their own Fiat-Shamir hash. Every deployed recursive Fiat-Shamir system shares this gap. - Idealizing
Keccak-f[1600]as a random permutation, with 128-bit signature digests. While the EF’s own paper (ePrint 2025/055) defined standard-model chain requirements explicitly, the EF’s current Lean 4 proofs model Keccak’s internal permutation,Keccak-f[1600], as an ideal random permutation (the Random Permutation Model). As PQAI #1 notes, “The security proofs for hash-based signatures, and the Fiat–Shamir step in the SNARGs that aggregate them, treat the hash as a random oracle,” and once Ethereum migrates, “if it is broken, everything else is broken.” To shrink signatures,leanXMSSandleanSPHINCStruncate hashes to 128 bits (whereasleanVMandLeanDAkeep 256 bits). By the birthday bound, a 128-bit hash has only 64-bit collision resistance, so the signatures cannot fall back on collision resistance at all. Their ~127-bit classical security (~64-bit conjectured quantum) leans directly on the tweaked design and the Random Permutation Model proof.
leanVM’s formal statement also lists a wider set of unproved items alongside its classical Lean 4 proofs, including quantum security bounds, multi-key signature security, LeanDA code binding for the deployed argument, and verifying the Rust prover and verifier implementations against the spec.
Conclusion
A hash-based stack still has a strong case as the most practically minimal post-quantum option: it drops elliptic-curve pairings, the KZG trusted setup, and SHA-256 random-oracle assumptions without adding lattice problems. Still, reusing Keccak does not make it a strict subset of what Ethereum already assumes. Hybrid designs, pairing BLS or ECDSA with a hash-based scheme so a forgery must break both, hedge the new assumptions at the cost of bandwidth, verification, and liveness complexity.
Ethereum’s post-quantum and post-AI debate should move past treating “hash-based” as shorthand for “no new assumptions”. The productive conversation is over the actual assumptions each design takes on, how much confidence each one deserves, and which risks are worth hedging.
