# Key Aggregation for Schnorr Signatures

Source URL: https://blog.blockstream.com/en-musig-key-aggregation-schnorr-signatures
Updated: 2026-11-16T19:32:35.000Z
Author: Pieter Wuille
Published: Jan 23, 2018
Category: Blockstream Research

---

Last Monday we published a paper that introduces [_MuSig_, a multi-signature scheme based on Schnorr signatures](https://eprint.iacr.org/2018/068). This post will dive into its construction and a few of its applications to Bitcoin.

MuSig is a simple multi-signature scheme that is novel in combining:

1. support for key aggregation
2. security in the plain public-key model

There are two versions of MuSig, which vary based on the number of communication rounds. Both are provably secure, but three-round MuSig only relies on the Discrete Logarithm (DL) assumption, which ECDSA also relies on. Two-round MuSig instead relies on the slightly stronger One-More Discrete Logarithm (OMDL) assumption.

While this work is a result of our research into Schnorr signatures for Bitcoin, MuSig is a cryptographic construction that may be useful for other applications. The paper and this post primarily discuss the cryptographic properties of MuSig, and aren’t directly a proposal for Bitcoin.

A _multi-signature scheme_ is a combination of a signing and verification algorithm, where multiple signers (each with their own private/public key) jointly sign a single message, resulting in a single signature. This single signature can then be verified by anyone who also knows the message and the public keys of the signers. Note that in the context of Bitcoin, the term “multisig” usually refers to a _k_\-of-_n_ policy, where _k_ can be different from _n_. In the cryptographic literature, multi-signatures really only refers to _n_\-of-_n_ policies, though we can easily construct _k_\-of-_n_ on top of _n_\-of-_n_.

We’re using the term _key aggregation_ to refer to multi-signatures that look like a single-key signature, but with respect to an aggregated public key that is a function of only the participants’ public keys. This means that verifiers don’t actually need to know the original participants’ public keys anymore - they can just be given the aggregated key instead. In some use cases, this leads to better privacy and performance. MuSig is effectively a key aggregation scheme for Schnorr signatures.

Several multi-signature schemes exist already that effectively give us key aggregation for Schnorr signatures, but they come with some caveats like needing to verify that participants actually have the private key corresponding to the public keys they claim to have. _Security in the plain public-key model_ means that no such caveats exist. All we need from the participants is their public keys.

## Applications of multi-signatures in Bitcoin

The most obvious use case for multi-signatures in the context of Bitcoin is as a more efficient replacement for _n_\-of-_n_ multisig scripts, and other policies that permit a number of possible combinations of keys (including _k_\-of-_n_, using [key trees](https://blog.blockstream.com/en-treesignatures), [MAST](https://bitcointechtalk.com/what-is-a-bitcoin-merklized-abstract-syntax-tree-mast-33fdf2da5e2f), or traditional threshold schemes). For these, a native multi-signature scheme means we are left with **one signature per transaction input**. A key aggregation scheme also lets us reduce the number of public keys per input to one, as a user can send coins to the aggregate of all involved keys, rather than including them all in the script. This leads to smaller on-chain footprint, faster validation, and better privacy. As a result, MuSig is a good choice here.

However, we can go further. Instead of restricting ourselves to one signature per input, we can actually get **one signature for the entire transaction**. Key aggregation can’t be used across multiple inputs, as the public keys are committed to by the outputs, and those can be spent independently. MuSig can be used here (with key aggregation done by the verifier), but [_Bellare-Neven_](https://cseweb.ucsd.edu/~mihir/papers/multisignatures-ccs.pdf) (BN), a more widely known plain public-key multi-signature scheme that does not support key aggregation would work just as well. Interestingly, it is possible to use BN multi-signatures where the individual keys are MuSig aggregates.

Technically, in order to combine all the transaction inputs’ signatures into one, we don’t need a multi-signature scheme, but an aggregate signature scheme. The distinction is simply that in an aggregate signature, each signer has their own message, rather than one message shared by all. Aggregate signatures can be classified as interactive or non-interactive: interactive aggregate signatures (IAS) require the signers to cooperate, while non-interactive schemes allow the aggregation to be done by anyone. No non-interactive aggregation schemes are known that only rely on the DL assumption, but interactive ones are trivial to construct: take a multi-signature scheme and have every participant sign the concatenation of all messages. Our paper shows that this is not always a desirable construction, and gives an IAS variant of BN with better properties instead.

## Details

Notation:

- _x_, _x1_, _x2_, … are private keys with corresponding public keys _X_, _X1_, _X2_, … (_Xi \= xiG_, with _G_ the generator)
- The message being signed is _m_
- _H()_ is a cryptographic hash function

#### Schnorr signatures

As a refresher, here are the equations relevant for Schnorr signatures:

- Signatures are _(R,s) = (rG, r + H(X,R,m)x)_ where _r_ is a random nonce chosen by the signer
- Verification requires _sG = R + H(X,R,m)X_

#### Naive Schnorr multi-signatures

A straightforward generalization is possible to support multi-signatures:

- Call _X_ the sum of the _Xi_ points
- Each signer chooses a random nonce _ri_, and shares _Ri \= riG_ with the other signers
- Call _R_ the sum of the _Ri_ points
- Each signer computes _si \= ri \+ H(X,R,m)xi_
- The final signature is _(R,s)_ where _s_ is the sum of the _si_ values
- Verification requires _sG = R + H(X,R,m)X_, where _X_ is the sum of the individual public keys

Interestingly, this satisfies the definition of a **key aggregation scheme** above: multiple parties can jointly produce a signature that is a valid single-key signature for the sum of the keys. If it’s so simple, what’s all the fuss about?

The issue is of course that this scheme is **not secure**. Consider the following scenario. Alice and Bob want to produce a multi-signature together. Alice has a key pair _(xA,XA)_ and Bob has _(xB,XB)_. However, nothing prevents Bob from that claiming his public key is _XB’ = XB \- XA_. If he does so, others will assume that _XA \+ XB’_ is the aggregated key that Alice and Bob need to cooperate in order to sign for. Unfortunately, that sum is equal to _XB_, and Bob can clearly sign for this by himself. This is called a rogue-key attack, and one way to avoid it is requiring that Alice and Bob prove first that they actually possess the private keys corresponding to their claimed public keys. However, this mitigation is not always possible, and even when it is, it is fragile at best. Ideally we construct a scheme whose security does not rely on out-of-band verification of the keys.

#### Bellare-Neven

As mentioned above, the BN multi-signature scheme is secure without such assumptions. Here is how it works:

- Call _L = H(X1,X2,…)_
- Each signer chooses a random nonce _ri_, and shares _Ri \= riG_ with the other signers
- Call _R_ the sum of the _Ri_ points
- Each signer computes _si \= ri \+ H(L,Xi,R,m)xi_
- The final signature is _(R,s)_ where _s_ is the sum of the _si_ values
- Verification requires _sG = R + H(L,X1,R,m)X1 \+ H(L,X2,R,m)X2 \+ …_

Technically, BN has a precommit round, where the signers first reveal _H(Ri)_ to each other, before revealing the _Ri_ points themselves. This step is necessary to prove security under the DL assumption, but it can be avoided if we instead accept the OMDL assumption. This is also the distinction between two-round and three-round MuSig.

**Update 2019-02-19: In light of [this paper by Drijvers et al.](https://eprint.iacr.org/2018/417), we realize that the above paragraph is incorrect. It is insecure to simply skip the precommitment round in MuSig.**

Furthermore, when an IAS is desired (where each signer has their own message), appendix A of our paper suggests using _L = H((X1,m1),(X2,m2),…)_ instead, and _si \= ri \+ H(L,R,i)xi_ for signing (and analoguous for verification).

In any case, the resulting signature does not satisfy the normal Schnorr equation anymore, nor any other equation that can be written as a function of a combination of the public keys. In other words, we’ve lost the key aggregation property in order to gain security in the plain public-key model.

#### MuSig

This is where [MuSig](https://eprint.iacr.org/2018/068) comes in. It recovers the **key aggregation property without losing security**:

- Call _L = H(X1,X2,…)_
- Call _X_ the sum of all _H(L,Xi)Xi_
- Each signer chooses a random nonce _ri_, and shares _Ri \= riG_ with the other signers
- Call _R_ the sum of the _Ri_ points
- Each signer computes _si \= ri \+ H(X,R,m)H(L,Xi)xi_
- The final signature is _(R,s)_ where _s_ is the sum of the _si_ values
- Verification again satisfies _sG = R + H(X,R,m)X_

That’s it! All we had to do was define _X_ not as a simple sum of the individual public keys _Xi_, but as a sum of multiples of those keys, where the multiplication factor depends on a hash of all participating keys.

## Acknowledgements

We’re very grateful to Yannick Seurin for his interest in reviewing MuSig’s security, writing its security proof, as well as coming up with the name.

## Blog Categories

- [All Posts](https://blog.blockstream.com/)
- [Blockstream Finance](https://blog.blockstream.com/blockstream-finance)
- [Company](https://blog.blockstream.com/company)
- [Lightning Network](https://blog.blockstream.com/lightning-network)
- [Blockstream Mining](https://blog.blockstream.com/blockstream-mining)
- [Blockstream Explorer](https://blog.blockstream.com/blockstream-explorer)
- [Blockstream Satellite](https://blog.blockstream.com/blockstream-satellite)
- [Liquid Network](https://blog.blockstream.com/liquid-network)
- [Blockstream Jade](https://blog.blockstream.com/blockstream-jade)
- [Blockstream AMP](https://blog.blockstream.com/blockstream-amp)
- [Blockstream App](https://blog.blockstream.com/blockstream-app)
- [Blockstream Research](https://blog.blockstream.com/blockstream-research)
- [Cryptocurrency Data Feed](https://blog.blockstream.com/cryptocurrency-data-feed)
- [Elements](https://blog.blockstream.com/elements)
- [Layer-2 Roundup](https://blog.blockstream.com/layer-2-roundup)
- [Quarterly Report](https://blog.blockstream.com/quarterly-report)
- [Layer-2 Report](https://blog.blockstream.com/layer-2-report)
- [Simplicity Language](https://blog.blockstream.com/simplicity-language)
- [Quarterly Update](https://blog.blockstream.com/quarterly-update)
- [Quantum](https://blog.blockstream.com/quantum)
- [Enterprise](https://blog.blockstream.com/enterprise)
- [Insights](https://blog.blockstream.com/insights)
- [Simplicity](https://blog.blockstream.com/simplicity)
- [Developer](https://blog.blockstream.com/developer)
- [Security](https://blog.blockstream.com/security)
- [Jade](https://blog.blockstream.com/jade)
- [Liquid](https://blog.blockstream.com/liquid)
- [Lightning](https://blog.blockstream.com/lightning)
- [Research](https://blog.blockstream.com/research)
- [Core Lightning](https://blog.blockstream.com/core-lightning)
