← Back to section · Post-Quantum Cryptography
WOTS+: One-Time Signatures Built from Hash Chains
The atomic building block of SLH-DSA is the WOTS+ one-time signature: secret values start hash chains, a signature reveals intermediate chain values, and a checksum seals the forgery route. This article explains how it works, why it is strictly one-time, and where it sits on the XMSS leaves.
The entire SLH-DSA hypertree ultimately rests on one very small component: the WOTS+ one-time signature. It is the refined descendant of the Winternitz one-time signature (WOTS), an idea that goes back to Lamport’s original 1979 construction. Understanding WOTS+ means understanding why “use only once” in hash-based signatures is not a usage warning but a property of the mathematics itself.
Hash chains: the basic mechanism
A WOTS+ private key is a set of random secret values, each the start of a hash chain: hash the secret value repeatedly, w−1 steps in total, and the final value is the corresponding component of the public key. SLH-DSA uses w = 16, so each chain has 16 nodes.
To sign, the message digest is split into a sequence of base-w “digits”, each between 0 and 15. If the i-th digit is d, the i-th chain’s secret value is hashed forward d steps, and the result becomes the i-th component of the signature. The verifier takes each signature component and hashes it forward the remaining number of steps; if it lands exactly on the chain end in the public key, that digit checks out. The intuition is direct: only someone who knows the chain start (the secret) can produce a value in the middle of the chain, because hashes cannot be inverted — while hashing forward from a middle value is something anyone can do, which is what makes verification public.
One chain encodes a single digit from 0 to 15, and a digest has hundreds of bits, so dozens of chains run in parallel. A WOTS+ key pair therefore consists of dozens of chains; the public key is a hash compression of all chain ends, and a signature is the set of dozens of intermediate values — which is why a WOTS+ signature occupies a few kilobytes, and why every layer of the hypertree carries a full WOTS+ signature.
The checksum: sealing the “forward-only” loophole
The naive version has a fatal flaw. A signature reveals positions on the chains, and hash chains can only be computed forward. Suppose an attacker holds a signature on one message and wants to forge another: if every digit of the new message is at least as large as the corresponding digit of the old one, the attacker can simply hash the revealed values forward, digit by digit, and “compute” the new signature. A naive Winternitz scheme can thus only safely sign messages that are digit-wise monotone relative to each other — clearly unacceptable.
WOTS+ fixes this by appending a checksum to the message digits: the checksum is the sum, over all message digits, of the gap between each digit and the maximum value; that sum is itself written in base w and signed with a few extra chains. The beauty is in the coupling: making every message digit larger or equal forces the checksum to shrink, so at least one checksum chain must be revealed at an earlier position — it must move backward, and moving backward means inverting a hash. Any message that differs from the signed one requires a backward step on at least one chain, and forgery is sealed off. The original WOTS used a similar idea; the WOTS+ refinement builds the chains from tweakable hashes keyed by addresses, and compresses the public key into a single hash value, which keeps every node of the surrounding Merkle tree short.
Why it is strictly one-time
Signing two different messages with the same WOTS+ key reveals two different positions on every chain. An attacker takes, digit by digit, the earlier of the two revealed positions as a starting point and can hash forward to a signature for any message whose digits lie between the two — the set of forgeable messages explodes from one to a whole region. Sign a few more times and so many chain positions leak that the chains can be pieced together entirely; the key is dead. One-time use is therefore not a recommendation but the boundary of the security proof: WOTS+ is secure only under the premise that each key signs at most one message.
Its place inside SLH-DSA
In the SLH-DSA hypertree, every leaf of every XMSS subtree is a WOTS+ public key. When signing, the WOTS+ private key at some layer signs the root of the subtree below (at the bottom layer, the FORS public key) — it signs exactly that one value in its life and is then discarded, because seed derivation can mint a brand-new WOTS+ key for any other leaf at any time. The choice w = 16 balances size against speed: a larger w means longer chains and fewer of them — smaller signatures but more hashing per sign and verify; a smaller w does the opposite. FIPS 205 fixes w = 16 across all parameter sets and implements every chain with address-based tweakable hashes, so chains belonging to different leaves and layers are domain-separated — the same mechanism repeated millions of times across one hypertree without cross-talk.
What the “plus” adds: three improvements over the original WOTS
The plus in WOTS+ marks three substantive improvements over the original 1989 Winternitz scheme, and they are worth stating plainly. First, the original iterated a single hash function along each chain, letting an attacker try to reuse intermediate results across chains and keys; WOTS+ replaces each step with a tweakable hash whose randomization parameters are derived from the public seed and the address — every step of every chain is an independent computation, closing the cross-position assembly route. Second, the original public key was a bare list of all chain ends, of considerable size; WOTS+ hashes the chain ends once more into a single n-byte value, and that compression lets it serve directly as a Merkle tree leaf without inflating node sizes. Third, the security proof of WOTS+ needs only weaker properties of the hash function — second-preimage resistance and the like — rather than collision resistance. That matters for the strength of the whole hash-based edifice, because collision resistance is precisely the property relatively more exposed to quantum attacks (Grover- and BHT-style attacks bear differently on preimages and collisions, and designers want the assumption pressed down to its weakest sufficient form).
Together, these explain why SPHINCS+ and FIPS 205 chose WOTS+ rather than the original: the same chain idea, with a shorter public key, a weaker assumption, and cleaner composability.
WOTS+ is the brick of the hash-based edifice: a single brick can be used only once, but with the checksum and domain separation in place, it turns the lone assumption “hashes cannot be inverted” into a signature atom that composes, layers, and standardizes.
Sources and further reading
- Hülsing, W-OTS+: Shorter Signatures for Hash-Based Signature Schemes, AFRICACRYPT 2013.
- NIST, FIPS 205, 2024 (WOTS+ appears as the WOTS+ algorithm family). https://doi.org/10.6028/NIST.FIPS.205
- Bernstein et al., SPHINCS+ Specification. https://sphincs.org/
- On this site: “The Hypertree: How SLH-DSA Stacks Many Hash Trees into One”
Tags: SLH-DSAWOTS+one-time signatureshash chains