Hash-Based Cryptography: Signatures from Nothing but a Hash Function
Every signature you make on Ethereum today rests on elliptic curves. A large enough quantum computer running Shor’s algorithm breaks them. Hash functions are different. The best quantum attack on a good hash, Grover’s search, only gives a square-root speedup, and doubling the output size cancels it. So the question is simple: how far can you get with nothing but a hash function?
Further than you might think. This course builds digital signatures out of hashing alone, one step at a time. It starts with Lamport’s one-time signatures, makes them smaller with Winternitz hash chains, turns many one-time keys into one public key with a Merkle tree, and removes the dangerous state with SPHINCS+, now standardized as SLH-DSA in FIPS 205. Then it follows the idea into Ethereum’s post-quantum plan, looks at what else hashes do well (commitments, STARKs, key derivation), and asks whether a hash can encrypt.
It runs about 40 minutes across ten chapters, narrated, with optional quizzes after each chapter. If you want the background on Merkle trees first, the Merkle and Verkle trees explainer covers them in more depth.
Open the course full page. Keys: space play or pause, ← → step, shift + ← → scene, [ ] chapter, c captions, m chapters menu, q quizzes on or off, f fullscreen. Click inside the player first so it receives the keys.
Chapters
| # | Chapter | Covers |
|---|---|---|
| 0 | Why Hash-Based Crypto? | ECDSA recap, Shor vs Grover, Ethereum’s post-quantum plan |
| 1 | The One Assumption | preimage, second-preimage and collision resistance, Grover, the Keccak sponge, hash chains, tweakable hashes |
| 2 | Lamport | keygen, sign and verify on 4-bit messages, why one-time, real sizes |
| 3 | Winternitz | hash chains, the forward attack, the checksum, the w trade-off, target-sum Winternitz (leanSig) step by step: why a forger can only raise digits, grinding rho, and constant verification work |
| 4 | Merkle Trees | one root for many keys, authentication paths, state hazards, hypertrees |
| 5 | SPHINCS+ / SLH-DSA | random leaves, FORS, the full structure, FIPS 205 sizes vs lattices |
| 6 | Ethereum | exposed keys, validators (leaf = slot), SNARK aggregation, accounts and the nonce trap, why Keccak-256, blobs |
| 7 | Beyond Signatures | commitments, Merkle proofs, hash chains and hash onions, STARKs, KDF, MAC, proof of work |
| 8 | Can Hashes Encrypt? | a SHAKE stream cipher and AEAD, the missing trapdoor, Merkle’s puzzles, ML-KEM, Ethereum uses |
| 9 | Recap | the ladder and a size comparison table |
Sources and caveats
- The Ethereum plan comes from the Ethereum Foundation’s two post-quantum posts on the Ethereum blog (November 23 and 24, 2026). They give the strategy, the choice of Keccak-256, the timeline, and the target of about 500K hashes per second, roughly 1K attestations per second. They do not give signature parameters.
- The scheme details (Lamport, WOTS, XMSS, FORS and SPHINCS+, FIPS 205 sizes, target-sum Winternitz and leanSig) come from the standard literature, not from those posts. Treat any Ethereum-specific parameters as provisional.
- Hex values shown on screen are illustrative, not real Keccak outputs.