Home▸Articles▸Cybersecurity

Hash-Based Signatures 2D: WOTS+ Chains & Merkle Path

An exploration of post-quantum cryptography through interactive hash-based signature schemes.

mysimulator teamUpdated June 2026≈ 4 min read▶ Open the simulation

What Hash-Based Signatures Are

Hash-based signatures are cryptographic methods that rely on the properties of cryptographic hash functions to ensure data integrity and authenticity. Unlike traditional public-key cryptography, which often uses number-theoretic problems (like RSA or elliptic curves), hash-based schemes use only hash functions, making them resistant to quantum computer attacks.

The WOTS+ (Winternitz One-Time Signature) scheme is a key component of post-quantum signature algorithms like SPHINCS+, designed to provide security against both classical and quantum adversaries. It works by chaining multiple instances of the Winternitz hash function together.

How WOTS+ Chains Work

In a WOTS+ scheme, each signature is generated using a chain of hash functions applied to a secret key and an index. The Winternitz parameter w determines the length of these chains; for example, if w=8, then 8 hashes are applied before moving on to the next one-time key. This chaining process ensures that each signature is unique and cannot be reused.

The security of WOTS+ relies on the difficulty of finding preimages in hash functions. If an attacker can find a collision or preimage for any part of the chain, they can forge signatures, which is why it's crucial to use strong hash functions.

live demo · related simulation● LIVE

Merkle Path and Authentication

A Merkle tree is used in many post-quantum signature schemes to aggregate multiple one-time signatures into a single public key. In the context of SPHINCS+, each leaf node represents a WOTS+ chain, and the root of the tree serves as the overall public key.

When signing a message, a Merkle path is constructed from the leaf node corresponding to the chosen WOTS+ chain up to the root. This path is included in the signature, allowing anyone with the public key to verify the signature by recomputing the hash values along the path.

Security and Practical Considerations

The security of WOTS+ chains depends on the strength of the underlying hash function. If a hash collision is found, it can lead to forgery attacks. Additionally, the choice of w affects both the size of signatures and the resistance against quantum computers.

Practically, using a Merkle tree helps distribute the risk across multiple one-time keys, making it harder for an attacker to find preimages or collisions in any single chain.

Frequently asked questions

What is the Winternitz parameter w and how does it affect security?

The Winternitz parameter w determines the length of each hash chain used in a WOTS+ signature. A larger w increases the size of signatures but also makes them more secure against quantum attacks, as finding preimages becomes harder.

Why is it important to use strong hash functions in WOTS+?

Using strong hash functions ensures that finding collisions or preimages is computationally infeasible. This is crucial for the security of WOTS+ signatures, as any successful attack on the hash function can lead to forgery.

What happens if a one-time chain is reused?

If a one-time chain is reused, an attacker can potentially recover parts of the private key used for signing. This is why it's important to use each WOTS+ chain only once in practice.

How does the Merkle tree enhance security in SPHINCS+?

The Merkle tree distributes the risk across multiple one-time keys, making it harder for an attacker to find preimages or collisions. This aggregation also reduces the size of signatures and public keys.

Try it live

Everything above runs in your browser — open Hash-Based Signatures 2D: WOTS+ Chains & Merkle Path and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Hash-Based Signatures 2D: WOTS+ Chains & Merkle Path simulation

What did you find?

Add reproduction steps (optional)