← Back to section · Research & Analysis

Forty Years of Hash-Based Signatures: From Lamport to SLH-DSA

Hash-based signatures rest their security on the hash function alone, making them the most conservatively assumed family of post-quantum signatures. This report traces forty years: Lamport's one-time signatures, Merkle tree extension, the stateful XMSS and LMS routes, the stateless SPHINCS+ breakthrough, and FIPS 205 standardising SLH-DSA.

Published 22 November 2026 · 7 min read · PQ Frontier

Forty Years of Hash-Based Signatures: From Lamport to SLH-DSA
AI-generated site artwork
Video explainer · Long-Form Reports: In-Depth Studies

Hash-based signatures occupy a special place in the post-quantum landscape: their security rests not on lattices, error-correcting codes, isogenies or any other structured problem, but on a single primitive — the hash function. Hash functions are the most thoroughly studied components in cryptography. From 1979 to today, no class of attack, quantum attacks included, has shaken the fundamental security of a well-designed hash function; Grover’s algorithm brings only a predictable quadratic speedup, compensable by lengthening the output. That is why, whenever another signature family suffers a crisis of confidence, hash-based signatures are the final safe harbour. This report follows the forty-year timeline of how this family dismantled its own core limitations, one by one, on the way into the FIPS standards.

The starting point: Lamport’s one-time signature (1979)

In 1979 Leslie Lamport proposed a one-time signature scheme of almost austere simplicity. To sign a 256-bit message digest, the private key is 256 pairs of random values and the public key is the hashes of all 512 values. Signing reveals, for each digest bit, one member of the corresponding pair. The verifier hashes the revealed values and compares them against the public key. The security argument is transparent: a forger must find a preimage of some unrevealed value, which is exactly what preimage resistance forbids.

The scheme has three fatal limits. First, each key can be used exactly once: signing a second message reveals more members of every pair, and forgery quickly becomes possible. Second, a signature is several kilobytes — 256 revealed hash values. Third, the keys themselves are equally bulky. For many years Lamport signatures were treated as a theoretical toy: they proved that signatures from hashes alone are possible in principle, but practicality was far away. The next forty years of work consisted of tearing down these three walls.

Merkle trees: many one-time keys under one root

At the end of 1979 Ralph Merkle supplied the key extension. Generate a large number of one-time key pairs, hash each public key into a leaf, and combine leaves pairwise upward into a binary hash tree; the root is the master public key. A signature reveals the one-time signature, the leaf’s public key, and the authentication path — the sibling hashes along the route from leaf to root. The verifier recomputes the root and compares. A tree with 2202^{20} leaves signs a million messages, and the public key remains a single hash value forever.

The price of the Merkle tree is state: the signer must keep a strict record of which leaves have been used, and must never reuse a one-time key — reuse directly exposes private-key components. In single-machine signing this is manageable; in real deployments with backup restores, redundant signers and virtual-machine snapshot rollbacks, state rollback is a recurring accident pattern: restore from backup and the system has “forgotten” the leaves it already spent, with disaster following. State management thereby became the number-one engineering issue for hash-based signatures, recurring in new forms for the next forty years.

On the eve of standardisation: the stateful XMSS and LMS routes

In the 2010s two stateful routes reached standardisation first. XMSS (RFC 8391, 2018) uses Winternitz one-time signatures (WOTS+, trading hash chains for smaller signatures) at the leaves, combined with Merkle trees and pseudorandom key generation, bringing signatures down to a few kilobytes, with a multi-tree variant (XMSS^MT) supporting up to 2602^{60} signatures. LMS (RFC 8554, 2019, descending from Leighton and Micali’s early work) is structurally similar, with Leighton–Micali one-time signatures and layered trees (HSS). NIST approved both in SP 800-208 (2020) for specific settings, recommending them above all for firmware signing — a use case with a bounded number of signatures and a controlled signing environment.

The SP 800-208 approval comes with strict conditions: state must be maintained reliably, and copying or backing up private keys is heavily restricted. These conditions are not bureaucracy; they correspond directly to the mathematical fact that state reuse is private-key compromise. The positioning of stateful schemes is therefore clear: they are tools for settings where signatures are countable, signing devices are controlled, and verification horizons are measured in decades — not general-purpose signature algorithms.

The stateless breakthrough: SPHINCS and SPHINCS+

The idea that demolished the state wall combines two ingredients. First, replace one-time signatures with few-time signatures: the HORST construction lets one key sign safely a handful of times, at the cost of larger signatures. Second, authenticate with a hypertree: the leaves of the top tree do not hold message-signing keys directly but certify the roots of the layer below, cascading down until the bottom layer signs the message. Every layer’s keys are pseudorandomly derived from a master seed, so no usage state needs to be stored at all — keys are re-derived on the spot at signing time. SPHINCS, proposed in 2015, first combined these into a practical stateless hash-based signature; its refinement SPHINCS+ entered the NIST post-quantum process and went all the way to a final standard.

Statelessness is not free: SLH-DSA signatures run from 7,856 bytes (the 128s parameter set) to 49,856 bytes (256f), several to more than ten times the size of ML-DSA signatures, and signing is one to two orders of magnitude slower. The s/f distinction in the parameter sets (small versus fast) is precisely the knob trading size against speed. In other words, the stateless route buys deployment simplicity and immunity to state accidents with bandwidth and computation.

The engineering deep end: tree traversal and the cost of generating a million keys

Beyond the narrative, the stateful route also chewed through an inconspicuous engineering problem that decides usability: tree traversal. A Merkle tree with 2202^{20} leaves has over a million nodes; signing must fetch every node hash on the authentication path in logarithmic time, while storing the whole tree or recomputing naively are both infeasible. The classic BDS traversal algorithm and its successors trade modest storage and amortised computation for logarithmic path generation, and became standard components of XMSS implementations. Key generation posed a similar bottleneck: producing one-time key pairs for 2202^{20} leaves naively takes a million key generations, whereas modern implementations derive all leaf keys pseudorandomly from a master seed along a seed tree — eliminating per-key storage and reducing backup to “protect one seed”. Note, however, that this concentrates the entire weight of state management onto that seed and its counter: back up the seed without the counter and you have manufactured state rollback by hand. The stateless route’s hypertree faces the same traversal and derivation costs, except it converts them from “continuous maintenance” into “paid on the spot at every signature” — one of the sources of SLH-DSA’s slow signing. Understanding this engineering ledger is what makes the two-track landscape legible: not a matter of taste, but a fork between two ways of paying the same costs.

FIPS 205 settles it: a two-track landscape

In August 2024 NIST published FIPS 205, and SPHINCS+ became SLH-DSA, with SHA-2 or SHAKE as the underlying hash. Hash-based signatures now form a clear two-track picture: SLH-DSA for general-purpose use and for settings where state cannot be guaranteed; XMSS/LMS under SP 800-208 for bounded-count, controlled-environment settings such as firmware signing, where they offer smaller signatures and faster verification. NSA’s CNSA 2.0 likewise names stateful hash-based signatures as the preferred choice for firmware signing — because firmware signing happens to satisfy both conditions at once: long life (devices may run for twenty years, demanding the most conservative assumptions) and controllable state (signing happens in a controlled release process).

Looking back over forty years, the evolution of hash-based signatures leaves the whole post-quantum migration a methodological lesson: when a primitive’s security assumption is single, old, and tested by decades of attack effort, its engineering defects — size, speed, state — can be bought off one by one with structure and computation. SLH-DSA never dazzles on a performance chart, but it is irreplaceable on the trust chart, and that is why the standards system reserves it a formal seat. The operational conclusion for deployers is equally clear: ask first about the setting’s lifetime and state controllability, then choose a track. Putting a stateful scheme into an environment whose state cannot be controlled is the one genuinely dangerous mistake in this family.

Tags: hash-based signaturesSLH-DSAXMSScryptographic history