A Bitcoin wallet's long-lived private key is not the only secret involved in signing. Signature creation also uses temporary secret material called a nonce. Mishandling that temporary value can expose the key the wallet is supposed to protect.

For users, this is mostly a question about signing-software design, not a number to choose on a payment screen. For wallet developers and people assessing shared-signing systems, nonce handling deserves particular attention when a session is interrupted, retried or restored.

The mining nonce is a different object

Bitcoin's block header contains a public, four-byte nonce that miners vary while searching for an acceptable proof-of-work hash. The block-header reference documents that field. Its purpose is to produce different header candidates.

A signing nonce serves a different cryptographic function. Its secret value must not be confused with public information derived from it. Publishing a mined block's header nonce is normal; publishing a signer's secret nonce would undermine the signing process.

Single-party signing derives a protected temporary value

The libsecp256k1 Schnorr implementation combines the signing key, public key, message and auxiliary data when deriving its default nonce. Its signature calculation then relates that nonce to the key and message. Reusing the same secret nonce across different messages can expose the key through those relationships.

The library's signing API documentation recommends fresh auxiliary randomness but describes it as supplemental to security. It permits that argument to be omitted, treating an omitted value the same as all-zero auxiliary data.

With this fixed-input construction, repeating exactly the same inputs repeats the signature. That is different from reusing one nonce across different messages. This observation follows from the implementation; it is not a suggestion to change a wallet's randomness settings.

BIP340 also warns against transplanting nonce-generation methods across signing schemes. Sharing a key and a deterministic nonce procedure between Schnorr and ECDSA, for example, can create dangerous reuse. Compatible key formats do not make every signing procedure interchangeable.

Shared signing needs its own session rules

MuSig2 lets several participants cooperate to produce a single Schnorr signature. Under BIP327, participants first exchange public nonces, then produce partial signatures using their secret nonces and the session information.

Its central requirement is strict: do not execute the signing operation twice with the same secret nonce. The specification explains that two resulting partial signatures can expose the signing key. The final payment need not reach the blockchain for the signing-state failure to matter; partial signatures have already been exchanged.

The ordinary MuSig2 nonce generator requires high-quality randomness and should not be replaced with a naive deterministic calculation from session parameters. BIP327 does define carefully constrained alternatives, including a nonrepeating counter construction and deterministic signing for a designated last signer. Their conditions matter. “Deterministic worked for a single signer” is insufficient justification for adapting it to a cooperative protocol.

A copied secret can survive deletion

The libsecp256k1 MuSig API illustrates a practical safeguard: partial signing overwrites the supplied secret-nonce object with zeros, and a zeroed object cannot be used again. Its documentation nevertheless warns that copying or serializing the object can defeat that protection.

Imagine, as an engineering example, an application that keeps a second copy of temporary signing state to simplify retries. Clearing the first copy does not clear the second. Restoring that old copy after a crash could put already-used secret material back into circulation.

This is why a retry needs a protocol-defined recovery path. The software must distinguish repeating a request from starting a new signing session with fresh state. A convenient “try again” button cannot supply that guarantee by itself.

Public nonce fields are meant to travel

BIP373 defines MuSig2 fields for partially signed Bitcoin transactions, including a participant's public nonce and partial signature. The public nonce is deliberately exchanged so other participants can complete the protocol. It is not the secret-nonce object discussed above.

Finding a public-nonce field in a transaction package therefore does not, on its own, establish a secret leak. Equally, a standard interchange format does not prove that a particular signing application safely manages its private session state.

For a shared wallet, ask how interrupted sessions are discarded or resumed, how already-used signing state is rejected and which implementation supplies the cryptography. These are review questions, not claims that any named wallet is defective. Keep following the wallet's documented recovery and backup procedures; do not improvise by copying temporary secrets or editing nonce fields. The useful protection is a signing workflow that makes unsafe reuse difficult even when ordinary operations fail.