musig2-linearity-insight
MuSig2 has two things to get right: induce linearity in Schnorr signatures, and preserve the already existing relation . If we can make partial signatures linear, summing them gives a valid single Schnorr signature, indistinguishable from a normal one.
Schnorr signatures are partially linear
A Schnorr signature resembles the function . This function is not linear overall (with respect to all , , ), but it is linear with respect to and when is constant, and with respect to and when is constant.
The actual signature equation is . By keeping constant across multiple partial signatures, we induce linearity. Summing the partial signatures then produces a valid Schnorr signature.
How to keep c constant
The challenge value is computed as . To make constant across signers, we need , , and to all be the same for every partial signature.
Preserving the relation between c, k, and x
In , all three variables are independent. But in Schnorr signatures they are not. The challenge depends on and through the relation:
We also need to preserve this relation when combining signatures. For signers:
The aggregate and must correspond to the sums of individual nonces and secret keys respectively. Then is consistent across all partial signatures, and their sum is valid under the aggregate key.
Why aggregate coefficients exist
The aggregate public key depends on the order of the individual public keys because of the aggregate coefficient . If the order changes, changes, so the aggregate key changes. Without these coefficients, a malicious signer could pick their public key as a function of honest signers' keys to cancel them out. That's the rogue key attack, and the aggregate coefficients are what block it.
Open question
How is linearity defined when the domain is mod prime, instead of real numbers? The partial linearity argument above is stated over the reals, but Schnorr signatures operate in . The same algebraic structure holds because is a field and the linearity argument only uses addition and multiplication, which are well-defined in any field.