A nonce reuse vulnerability occurs when a cryptographic signing algorithm uses the same random number (called a nonce , or k-value) to produce two different signatures. In elliptic curve signature schemes like ECDSA and Schnorr signatures , the nonce is a critical one-time secret that must be unique for every signature operation. When this uniqueness requirement is violated, the private key can be recovered through straightforward algebra.
This is not a theoretical weakness that requires enormous computational power to exploit. A single instance of nonce reuse produces enough information for anyone observing the two signatures to compute the signer's private key in milliseconds on ordinary hardware. The vulnerability affects any system that uses ECDSA or Schnorr signatures, including Bitcoin, Ethereum, TLS certificates, and code-signing infrastructure.
To understand why nonce reuse is catastrophic, consider how ECDSA signatures are constructed. An ECDSA signature over a message hash z using private key x and nonce k on the secp256k1 curve produces two values (r, s):
The value r depends only on the nonce k and the curve generator point G. This means two signatures created with the same nonce will the same r value, which is the telltale sign of nonce reuse visible on any public blockchain.
Given two signatures (r, s₁) and (r, s₂) over different message hashes z₁ and z₂ using the same nonce k, an attacker recovers the private key in two steps:
Both operations are simple modular arithmetic. No brute force, no lattice reduction, no special hardware. The security of the entire private key collapses into a single division.
The same principle applies to Schnorr signatures. In a Schnorr scheme, the signature is a pair (R, s) where s = k + e · x, with e being the challenge hash. Two Schnorr signatures sharing the same nonce k (and therefore the same R) allow the private key to be extracted by computing x = (s₁ - s₂) · (e₁ - e₂)⁻¹ mod n.
On Bitcoin's blockchain, nonce reuse is detectable by scanning for transactions from the same public key that identical r values in their ECDSA signatures. Researchers have systematically scanned the blockchain and found hundreds of vulnerable transactions. One study identified 123 vulnerable transactions and recovered 416 private keys controlling a combined 26.85 BTC.
The most infamous nonce reuse incident was Sony's PlayStation 3 code-signing implementation. Sony used ECDSA to sign all PS3 software, ensuring only authorized code could run on the console. However, Sony's implementation used a constant value for the nonce k rather than generating a fresh random value for each signature.
In December 2010, the hacker group fail0verflow presented their findings at the 27th Chaos Communication Congress (27C3) in Berlin. Because every Sony signature used the same k, any two signed firmware updates provided enough information to extract the private signing key. Days later, George Hotz (geohot) published the recovered private key, permanently compromising the PS3's security model. Anyone could now sign code that the PS3 would accept as legitimate Sony software.
In August 2013, the Bitcoin community discovered that Android's implementation of Java's SecureRandom class was not properly initializing its pseudorandom number generator (PRNG). This caused Bitcoin wallet applications to produce duplicate or predictable nonce values when signing transactions, particularly for transactions with multiple inputs.
The vulnerability affected several popular wallets including Bitcoin Wallet, BitcoinSpinner, Mycelium, and blockchain.info. Attackers exploited the flaw to extract private keys and steal approximately 55.82 BTC. The Bitcoin.org security advisory urged all Android wallet users to generate new addresses with a properly patched application and transfer funds immediately.
Beyond high-profile incidents, nonce reuse has been found scattered across Bitcoin's history. Researchers scanning the blockchain have repeatedly identified addresses with reused r values in their transaction signatures, typically caused by faulty wallet implementations or broken random number generators. These findings highlight that the vulnerability is not limited to single events but is a persistent risk wherever signing software handles nonce generation incorrectly.
The root cause of nonce reuse is reliance on random number generators during the signing process. A broken, poorly seeded, or compromised RNG can produce duplicate nonces without the signer ever realizing it. RFC 6979, published in August 2013 by Thomas Pornin, eliminates this dependency entirely.
Instead of calling a random number generator, RFC 6979 derives the nonce deterministically from two inputs the signer already possesses: the private key and the message hash. It uses HMAC-DRBG (a deterministic random bit generator based on HMAC) to produce the nonce:
This approach guarantees that the same private key signing the same message will always produce the same signature (making signatures reproducible and testable), while different messages will always produce different nonces (preventing reuse). The nonce is unpredictable to anyone who does not know the private key, preserving all the security properties of random nonces without the risks of RNG failure.
Most modern Bitcoin wallet implementations, including Bitcoin Core, use RFC 6979 for ECDSA signing. The BIP-340 Schnorr signature specification also mandates a deterministic nonce derivation scheme, though it uses a slightly different construction than RFC 6979.
While RFC 6979 effectively solves nonce reuse for single-signer scenarios, multi-party signing protocols like MuSig2 and FROST introduce additional complexity. In these schemes, multiple signers must coordinate nonces to produce a single aggregate signature, and the interactive nature of this process creates new attack surfaces.
In MuSig2 multisignature signing , each participant contributes a partial nonce that gets combined into the final aggregate nonce. Unlike single-signer ECDSA, MuSig2 signers cannot safely use purely deterministic nonces. A malicious co-signer could open two concurrent signing sessions and provide different contributions in each, while an honest signer using deterministic nonces would unknowingly reuse the same nonce value across both sessions, exposing their key .
MuSig2 addresses this by requiring signers to pre-commit to their nonces before seeing other participants' contributions, and by using a two-round protocol structure that binds nonces to session context.
FROST threshold signatures face similar challenges but include formal security proofs against concurrent session attacks. FROST incorporates each participant's identifier into the binding factor hash, ensuring that different participants derive different binding factors even in concurrent sessions. This design prevents the Wagner generalized birthday attack that could otherwise allow a malicious coordinator to manipulate nonce combinations.
Protocols like Spark that rely on threshold signatures for their security model must implement rigorous nonce management. Proper nonce handling is essential for any system where multiple parties collaborate to produce signatures over shared keys.
Defending against nonce reuse requires attention at multiple levels of the signing stack:
Nonce reuse is one of the few cryptographic vulnerabilities that leads to total, irreversible key compromise from publicly visible data. Unlike attacks that require computational power or physical access, nonce reuse exploitation requires nothing more than observing two signatures on a public blockchain. The private key recovery is instant and deterministic.
For Bitcoin users and builders, understanding nonce reuse is essential because every transaction broadcast to the network permanently publishes signature data. A wallet that generates even a single pair of signatures with a reused nonce has irrecoverably exposed its private key to anyone who checks. This is why cold storage wallets and hot wallets alike must use well-audited signing implementations, and why the shift toward deterministic nonce generation (RFC 6979 for ECDSA, BIP-340 for Taproot Schnorr signatures ) represents one of the most important practical security improvements in Bitcoin's history.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
