SLH-DSA (SPHINCS+): Stateless Hash-Based Signatures
SLH-DSA (Stateless Hash-based Digital Signature Algorithm), standardized as FIPS 205 in August 2024, is the most conservative signature NIST standardized. Its security rests on nothing but the properties of hash functions, and it tracks no mutable state, which removes the single most dangerous failure mode in hash-based signing.
How it works
SLH-DSA signs with a hypertree of Merkle trees. The leaves are WOTS+ one-time signatures; a few-time signature scheme called FORS signs the message hash at the leaf; and layers of Merkle trees certify the whole stack up to a 32-byte public key. Signing walks a pseudo-randomly selected path through the hypertree and publishes everything needed to verify it.
Because the selection is pseudo-random, the signer never has to remember which one-time keys it has used. Earlier hash-based schemes such as XMSS walk their trees in a fixed order and must persist a counter: reusing a leaf under two different messages leaks enough key material to forge signatures. SLH-DSA trades signature size and speed for eliminating that failure mode entirely.
Parameter sets
| Parameter set | Public key | Signature | Signing speed |
|---|---|---|---|
| SLH-DSA-SHA2-128s | 32 B | 7,856 B | slow |
| SLH-DSA-SHA2-128f | 32 B | 17,088 B | fast |
| SLH-DSA-SHA2-192s | 48 B | 16,217 B | slow |
| SLH-DSA-SHA2-192f | 48 B | 35,660 B | fast |
| SLH-DSA-SHA2-256s | 64 B | 29,792 B | slow |
| SLH-DSA-SHA2-256f | 64 B | 49,856 B | fast |
The s (small) variants minimize signature size at the cost of slow signing; the f (fast) variants reverse the trade. SHAKE (Keccak-based) variants exist alongside the SHA-2 ones. Security levels of 128, 192, and 256 bits all reduce to standard hash function properties: preimage and second-preimage resistance.
Where it fits
- Firmware signing and code signing are the canonical deployments: signatures are verified once and infrequently, so size and signing speed hurt little, while the hash-only assumption gives decades of confidence.
- Ethereum’s Lean Ethereum roadmap specifies leanSPHINCS, a SNARK-friendly SPHINCS+ variant, for transaction signatures.
- Anything that verifies far more often than it signs benefits from the asymmetry: slow signing happens offline once, fast verification happens everywhere.
The costs are real, though: 8 to 50 KB signatures stress TLS handshakes, and signing can take tens of milliseconds to seconds. Where performance matters and the lattice assumption is trusted, ML-DSA or FN-DSA (Falcon) are the defaults; SLH-DSA is the insurance policy that survives a lattice break.
Related
- WOTS+ (Winternitz One-Time Signatures): the one-time building block inside SLH-DSA
- XMSS: the stateful alternative with smaller signatures
- Post-Quantum Solutions for Blockchains and Cryptocurrencies
- Post-Quantum Algorithms: Why We Need Them and What We Chose