Search looks through the written questions first. The AI only answers when nothing matches.

Why does reusing a nonce reveal the private key?

Experienced · Updated

Reusing the same nonce across two ECDSA signatures lets an observer who sees both signatures compute the private key. The consequence is concrete: that person can sign new transactions and spend the coins the key controls. The nonce has to stay secret and be different for every signature. A nonce that is guessable, or copied from another signature, fails the same duty, even if a block explorer shows nothing wrong at the moment you sign.

You usually cannot see the reuse from one signature alone. The damage appears when the second signature is public, because the pair is what makes the calculation possible. A wallet avoids the failure by drawing a fresh unpredictable nonce each time, or by deriving the nonce from the private key and the message so that two different messages do not share one. That derivation is a defence inside the wallet. It does not repair a key that has already been recovered, and the protocol sends you no warning before the coins move.

Informational text from Criptos.ai. It is not a buy or sell recommendation, and it is not tax advice. This is general information, not financial, tax or legal advice. We do not promise gains.

In the glossary

Articles

In the Academy: Advanced · In the Academy · In the glossary

Related questions