Nonce Commitment
Locking in a random value at the start of multi-party signing so no one can choose it after seeing others.
Basically
A nonce commitment locks you to a secret random number before anyone reveals theirs. It stops signers from changing their numbers after seeing the others and cheating.
Key Takeaways
- A nonce commitment binds each signer to a secret random value before any nonces are revealed. In protocols like FROST and MuSig2, it stops participants from choosing a nonce after seeing the others and manipulating the final signature.
- Commitments take different forms: FROST publishes elliptic curve points such as R = r·G, while the original MuSig protocol used hash-based commitments. MuSig2 removes the separate commitment round by giving each signer two nonces and combining them with a binding coefficient.
- Without nonce commitments, a rogue signer could wait for honest signers' nonces and craft their own to forge signatures or extract secret keys. You must collect all commitments before anyone discloses a raw nonce value.
What Is a Nonce Commitment?
A nonce commitment binds you to a specific random nonce without revealing it. Each participant in a multi-party Schnorr signature scheme contributes a random nonce to build the aggregate signature. A malicious signer who saw everyone else's nonces first could choose one that cancels the honest contributions and forges a valid signature, but commitments force all signers to lock in their nonces first and prevent later changes.
The idea follows the general commitment scheme pattern in cryptography, a two-phase protocol. You first publish a commitment that locks you in, then reveal the underlying secret as the opening, which keeps nonce generation fair and gives no participant an information advantage.
How It Works
Nonce commitments differ across protocols, but the core rule stays the same. Every signer must commit to their nonce irreversibly before any nonce value is shared, and modern Bitcoin-related protocols use two main approaches.
FROST: Elliptic Curve Point Commitments
In FROST (Flexible Round-Optimized Schnorr Threshold Signatures), standardised as RFC 9591, each signer generates two secret nonces per signing session. These are a "hiding" nonce (d) and a "binding" nonce (e), and their commitments are the corresponding elliptic curve points:
Publishing the curve points commits you to your nonces without revealing the underlying scalars. The discrete logarithm problem stops anyone from recovering d or e from D or E. After all commitments are collected, the coordinator computes each signer's binding factor by hashing all commitments with the message and the signer's identifier:
The binding factor links your contribution to the full set of commitments and the message being signed. No signer can compute it until every commitment is published, so no one can later adjust their contribution to influence the aggregate nonce R.
MuSig1: Hash-Based Commitments
The original MuSig protocol used a simpler approach with more rounds. Each signer generated one nonce r, computed R = r·G, and broadcast H(R) in round one, then revealed their actual R values in round two only after all hash commitments were collected. Verifiers checked that each revealed R matched its earlier hash commitment, and the protocol required three rounds in total: commit, reveal, then sign.
MuSig2: Eliminating the Commitment Round
MuSig2, formalised in BIP-327, reduces signing to two rounds by removing the separate commitment phase. Each signer generates two nonces instead of one and broadcasts both public nonce points at the same time. A coefficient derived from all published nonce points combines the two nonces:
The two-nonce construction gives the same security as a commitment round. An attacker who chooses a nonce pair after seeing the others cannot control the aggregate nonce because binding coefficient b depends on all nonce pairs, including the attacker's own. The design is proven secure under the algebraic one-more discrete logarithm assumption and supports concurrent signing sessions as long as nonces are never reused.
Why Nonce Commitments Matter
Multi-party Schnorr signing is fundamentally insecure without nonce commitments or an equivalent mechanism such as MuSig2's two-nonce design. Two specific attacks explain this requirement.
Rogue Nonce Attack
In a naive multi-party signing protocol, signers simply broadcast their nonce points one after another, so the last signer can choose a nonce adaptively. If signers 1 through n-1 have published R_1,..., R_{n-1}, signer n can compute:
The malicious signer can steer the aggregate nonce to a chosen value. They can then produce a valid signature without cooperation from the other parties or extract their secret key shares.
Nonce Reuse and Key Extraction
Nonce reuse in Schnorr signatures is catastrophic, even outside multi-party settings. If you use the same nonce r to sign two different messages m_1 and m_2, an observer can extract your private key through simple algebra:
The risk is greater in multi-party protocols, where a single nonce reuse in the original MuSig can expose your key share. MuSig2 is slightly more resilient because of its two-nonce structure, and an attacker needs approximately three partial signatures under the same nonce pair to extract the key. All protocols still require fresh nonces for each session, and you must destroy them after use.
Threshold Signing on Spark
Spark uses FROST threshold signatures for cooperative signing across distributed parties. Participants exchange nonce commitments in Round 1 of each signing session before producing signature shares in Round 2, so no single party, including the coordinator, can manipulate the resulting signature. For a deeper look at how Spark optimises this process, see the FROST signing round performance analysis.
Bitcoin Multisignature Wallets
MuSig2 enables n-of-n key aggregation for Bitcoin Taproot transactions. Each co-signer publishes two nonce points in Round 1, the coordinator aggregates and distributes them, and each signer produces a partial signature in Round 2. The combined output is a standard BIP-340 Schnorr signature that is indistinguishable from a single-signer transaction on-chain.
Distributed Key Generation Ceremonies
During a FROST DKG ceremony, participants use commitment schemes similar to nonce commitments. Each party commits to their polynomial coefficients before revealing them, which stops adversarial participants from biasing the resulting key shares. The commitment pattern extends beyond signing to any multi-party protocol where fairness in random value generation is essential.
Cross-Chain Atomic Swaps
Protocols like adaptor signatures and scriptless scripts use Schnorr nonce commitments to coordinate swaps across chains. Each party commits to a nonce, then reveals an adapted signature that can only be completed when the counterparty claims funds on the other chain. The commitment phase stops either party from cheating by adapting a nonce after learning the other's.
Session Abort and Nonce Disposal
If a signing session aborts after nonce commitments have been exchanged, you must permanently discard the nonces. Reusing a committed nonce in a later session with different co-signers or a different message can expose your secret share. RFC 9591 Section 7.3 explicitly warns against this and requires fresh nonces for every new session, with no exceptions.
Coordinator Trust
In both FROST and MuSig2, a coordinator typically collects and redistributes commitments. The coordinator cannot forge signatures because they lack the secret nonces and key shares, but a malicious coordinator could selectively withhold commitments to stall the protocol or present different commitment lists to different signers. Mitigations include peer-to-peer commitment broadcast and requiring signers to verify the commitment list hash independently.
Deterministic vs. Random Nonce Generation
Some implementations use deterministic nonces derived from the secret key and message, as in RFC 6979 for ECDSA. This is dangerous in multi-party settings because two sessions signing the same message would produce identical deterministic nonces and enable key extraction. FROST and MuSig2 require randomised nonce generation, optionally mixed with deterministic components for defence-in-depth, but never purely deterministic nonces.
Timing and Network Reliability
The commitment-before-reveal order is a strict protocol requirement. Security breaks down if network delays let you receive another signer's raw nonce before all commitments are collected, so implementations must allow Round 2 signature share generation only after all Round 1 commitments have been received and validated. Protocols operating over unreliable networks can face added latency as a result.
The glossary entry is for information only and is not financial or investment advice. Always do your own research before using any protocol or technology.