Research·Protocol

Schnorr Signatures and Key Aggregation

A Schnorr signature is linear, which means two signatures over two keys add up to one signature over the sum of those keys. That single algebraic property is what lets a group of signers produce a spend indistinguishable from a single-key one. It is also what makes nonce handling the most dangerous part of any implementation.

Level
Advanced
Reading
7 min
Published
2026-11-24
Reviewed
2026-11-24

Bitcoin spent its first twelve years on ECDSA, a signature scheme chosen in 2008 because it was standardised and patent-free when the alternative was not. Schnorr signatures were always the better construction, and Taproot finally brought them in. The improvement that matters is not speed or size. It is that Schnorr signatures add.

What does linearity actually buy?

That two signers can produce one signature, and nobody can tell.

In Schnorr, a signature over a message with key x is a scalar computed from a nonce and a challenge, and the arithmetic is linear in both the key and the nonce. Add two valid partial signatures over the same message and the same aggregate nonce, and you get a valid signature under the sum of the two public keys.

ECDSA has no such property. Its signing equation involves a modular inverse, which breaks linearity, which is why Bitcoin’s multisignature had to be built in script: OP_CHECKMULTISIG puts every public key and every signature on the chain and checks them one by one. A two-of-three spend announces that it is a two-of-three spend, costs block space proportional to its complexity, and tells every observer about a custody arrangement.

With Schnorr, an n-of-n group can aggregate its keys into one public key, sign with one aggregated signature, and spend through Taproot’s key path. The result on the chain is 64 bytes and a single key. It is not merely cheaper; it is the same bytes that a lone individual would produce, which means it carries no information at all.

Why can’t you just add the keys?

Because a participant who chooses their key last can cancel everyone else’s.

The naive scheme — aggregate key is the plain sum of the participants’ keys — has a well-known break. A signer who waits to see the others’ keys can publish their own as a value chosen so that the sum equals a key they control alone, and then sign for the group by themselves. This is the rogue-key attack, and it is why key aggregation is a protocol rather than an addition.

MuSig2 defeats it by weighting each key with a coefficient derived from a hash of the whole key list before summing. A participant cannot choose a key that cancels the others, because changing their key changes every coefficient, including their own, in a way they cannot solve for. The cost is that the key list must be fixed before aggregation and the same list must be remembered to spend — which is a backup requirement, not a cryptographic one, and is the part that bites in practice.

What are MuSig2’s two rounds for?

Nonces first, then partial signatures, and the separation is the whole advance over its predecessor.

Every Schnorr signature needs a nonce, and an aggregated signature needs an aggregated nonce that all signers agreed on before any of them signs. So the protocol runs in two broadcast rounds. In the first, each signer generates a secret nonce and publishes the corresponding public nonce, and the group combines them. In the second, each signer produces a partial signature using its secret nonce and the session data, and those are summed into the final signature.

The predecessor needed three rounds, because it had to commit to nonces before revealing them to prevent a signer from adapting its nonce to the others. MuSig2 removes that round by having each signer contribute two nonces, combined with a coefficient derived from the session — enough structure to defeat the attack that the commitment round existed to prevent, without the round.

The practical consequence is large. A two-round protocol where the first round carries no secret and does not depend on the message means nonces can be exchanged in advance, before anyone knows what will be signed. Signing then takes one round, which is what makes MuSig2 usable in protocols that cannot wait for three network trips.

What is the rule that must not be broken?

Never sign twice with the same secret nonce. The specification states it in bold, and the consequence is total.

Two partial signatures produced with the same secret nonce over different messages allow anyone who sees both to solve for the secret key algebraically. Not weaken it, not narrow it — recover it. This is the same failure that has drained ECDSA keys from poor random number generators, with the difference that in a multi-round interactive protocol the opportunities to make the mistake are structural rather than accidental.

Consider what “sign twice” can mean in an implementation. A signing session that is retried after a timeout. A device that restores from a saved state. A coordinator that sends the same session to a signer twice to see if it answers differently. None of those looks like a cryptographic error while you are writing it, and all of them are.

Hence the discipline the specification demands: the secret nonce is generated, used once, and deleted — and a signer that cannot guarantee deletion across a crash should not implement the protocol. This is also why BIP 373 exists, giving the nonce exchange and partial signatures defined fields inside a partially signed transaction so the session has one representation rather than a vendor’s improvisation.

What else did BIP 340 change?

Three details that are easy to skim past and each removes a real problem.

Public keys in Taproot are x-only: 32 bytes rather than 33, with the y-coordinate’s parity determined by convention instead of encoded. That saves a byte everywhere and, more usefully, removes a class of implementation disagreement about which of two valid encodings a key should use.

Signatures are non-malleable by construction. ECDSA signatures come in pairs — for every valid signature there is a second one that is equally valid — and Bitcoin had to add a rule requiring the lower of the two. A Schnorr signature has exactly one valid encoding, so the question does not arise. That is one of the defects behind the malleability problem removed at the source.

And BIP 340 uses tagged hashes: every hash in the scheme is prefixed with the hash of a string naming its purpose. Signing and nonce derivation and key aggregation therefore live in separate hash domains, so a value computed for one can never be mistaken for a value computed for another. It costs nothing and it eliminates an entire family of cross-protocol attacks that have broken other systems.

None of these is the reason Schnorr was adopted. They are the reason the adoption was clean.

Where does FROST come in?

Where MuSig2 stops, which is at n-of-n.

MuSig2 requires every participant to sign. That suits a two-of-two payment channel or a corporate account where all parties must act, and it does not suit the common custody case, which is a threshold: any two of three keys, so that losing one is survivable.

FROST is the threshold scheme in the same family, producing a single Schnorr signature from any t of n participants. It needs a distributed key generation step with no equivalent in MuSig2, and that step is where the difficulty lives: the participants must jointly produce a key nobody knows in full, verifiably, and be able to re-do it when the group changes.

Until that is specified and implemented as carefully as MuSig2 has been, script-based multisig remains the right default for threshold custody. It is larger, more visible and more expensive, and it has the considerable advantage that recovering from it requires only keys and a descriptor rather than a surviving protocol session.

Check it yourself

A key-path Taproot spend is one 64-byte witness item and nothing else. Fetch any and look:

bitcoin-cli getrawtransaction <txid> true | grep -A3 txinwitness

If the witness holds exactly one element of 64 bytes, that is a key-path spend. What you cannot tell — and this is the point — is whether it was one person, a MuSig2 group of five, or a Taproot output whose script tree was never used. All three produce identical bytes.

What remains uncertain

Whether key aggregation reaches ordinary custody. The byte savings and the privacy gain are real, and the backup story is worse: a MuSig2 wallet must retain the full key list and the aggregation context, and losing them loses the coins even with every key intact. Until recovery is as simple as a descriptor and a seed, the scheme will stay in protocols rather than in personal wallets.

Whether FROST gets a Bitcoin specification. The cryptography is published and implementations exist. Distributed key generation, key refresh and the handling of a participant who goes silent are the hard parts, and none has settled into something a BIP could freeze.

How many implementations handle nonces correctly. The rule is simple and the ways to violate it are not. There is no way to detect a vulnerable implementation from the chain, because a correct signature and a signature from a reused nonce look identical — until the second one appears.

Sources

Nearby