---
title: "Key Aggregation — definition | Nuri Glossary"
description: "Combining several public keys into one, so a multisig spend looks like a single signer on-chain."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/key-aggregation"
---

# Key Aggregation

Combining several public keys into one, so a multisig spend looks like a single signer on-chain.

## Basically

Key aggregation lets several people approve a Bitcoin payment together. On the blockchain, the payment looks like it came from one person.

## Key Takeaways

- Key aggregation combines multiple public keys into one aggregate key. It produces a signature that is indistinguishable from a standard single-signer Schnorr signature on the blockchain.
- Protocols such as MuSig2 (n-of-n) and FROST (t-of-n) implement key aggregation securely. They defend against rogue-key attacks through cryptographic proof-of-knowledge mechanisms or coefficients derived from participant keys.
- With Taproot, key aggregation saves block space and improves privacy. A 5-of-7 multisig spend looks identical to a solo payment, which reduces fees and removes the on-chain fingerprint of multi-party transactions.

## What Is Key Aggregation?

Key aggregation is a cryptographic technique that combines multiple public keys into a single aggregate public key. When the corresponding private key holders cooperate, they produce one aggregate signature that validates against the aggregate key. Anyone inspecting the blockchain sees a transaction that looks exactly like a standard single-key spend.
Schnorr signatures make key aggregation possible through their linearity, and Bitcoin adopted them through the BIP-340 and Taproot (BIP-341) upgrades activated in November 2021. Unlike ECDSA, which requires complex workarounds to combine keys and signatures, Schnorr's algebraic structure supports aggregation naturally: the sum of valid signatures is itself a valid signature under the sum of the corresponding public keys.
Key aggregation improves on traditional Bitcoin multisig (OP_CHECKMULTISIG), which requires every public key and every signature to be listed on-chain. The number of participants stays completely hidden, and the on-chain cost remains constant regardless of how many signers take part.

## How It Works

Elliptic curve cryptography provides the mathematical foundation because point addition is homomorphic. If Alice has public key P_A and Bob has public key P_B, their aggregate public key P_agg = P_A + P_B corresponds to a private key that is the sum of their individual private keys. Neither party learns the other's private key, but together they can produce a valid signature for P_agg.

## Schnorr Signature Linearity

A Schnorr signature consists of two values (R, s), where s = k + e·x. Here k is a random nonce, x is the private key, and e is a challenge hash derived from the message. The equation is linear, so partial signatures from multiple signers can be summed.
The verifier sees only P_agg, one 32-byte key, and (R_agg, s_agg), one 64-byte signature. No one can determine whether the signature came from one signer or a hundred.

## The Key Aggregation Process

Secure key aggregation follows a set of coordinated steps. Participants create the aggregate key, exchange nonces, and combine their partial signatures into one signature. The resulting signature is checked against the aggregate public key.

## The Rogue-Key Attack

Naive key aggregation, which simply sums public keys, is vulnerable to the rogue-key attack, also known as the key cancellation attack. A malicious participant can use this attack to forge signatures for the entire group.
A two-party example shows how the attack works. Alice publishes her public key P_A. A malicious Bob, instead of publishing his real public key, computes and announces P_B' = P_B - P_A.
The resulting aggregate key is P_agg = P_A + P_B' = P_B. Bob has effectively cancelled Alice's key contribution. He can now produce valid signatures for P_agg using only his own private key, completely bypassing Alice.

## Defenses Against Rogue Keys

Proof-of-knowledge and coefficient-based key aggregation are the two primary defences against rogue-key attacks. Participants can prove knowledge of their private keys, or the protocol can multiply each public key by a coefficient derived from all participant keys.

## MuSig2: n-of-n Aggregation

MuSig2, specified in BIP-327, is a two-round multi-signature protocol for producing BIP-340-compatible aggregate Schnorr signatures. It requires all n participants to cooperate (n-of-n), so every signer must be online and available to produce a valid signature.
The protocol works in two rounds. Signers first exchange nonces, then exchange partial signatures that combine into one aggregate signature.
MuSig2 defends against rogue-key attacks through its KeyAgg algorithm, which multiplies each public key by a coefficient derived from a tagged hash of all participant keys. The design removes the need for a separate proof-of-knowledge round and keeps the protocol to just two rounds. For a detailed walkthrough, see the MuSig2 multisignatures research article.

## FROST: t-of-n Threshold Aggregation

FROST (Flexible Round-Optimized Schnorr Threshold Signatures), standardised as RFC 9591, extends key aggregation to threshold signatures. Any t of n participants can produce a valid aggregate signature without the remaining n - t signers being present.
Distributed key generation based on Shamir's Secret Sharing makes threshold aggregation possible. Each participant holds a share of the group private key, and no single participant or group smaller than t ever learns the full private key. During signing, participants produce partial signatures from their shares, and the aggregator combines them using Lagrange interpolation to produce a standard Schnorr signature.
The resulting signature is indistinguishable from both a single-signer Schnorr signature and a MuSig2 aggregate signature. A verifier cannot determine whether a 3-of-5 threshold group or a single individual signed the transaction. For a full technical breakdown, see the FROST threshold signatures research article.

## Key Aggregation and Taproot

Taproot (BIP-341) is the Bitcoin protocol upgrade that makes key aggregation practical on-chain. A Taproot output (P2TR) encodes a single 32-byte tweaked public key that commits to both a key path and an optional script tree.
Cooperating signers spend via the key path, so only the aggregate key and aggregate signature appear on-chain. The transaction is identical in size and structure to a single-signer Taproot spend, with a 34-byte output and a 64-byte signature. Fallback conditions, such as timelocks or alternative spending paths, remain hidden in the Tapscript tree and are only revealed if the key path fails.
Taproot's design creates a strong privacy incentive because cooperative spending is the cheapest and most private option. Script-path spending reveals only the specific branch used.

## Privacy-Preserving Multisig

Traditional multisig wallets using OP_CHECKMULTISIG expose all public keys and signatures on-chain, so chain analysis can easily identify multisig transactions. Key aggregation removes this fingerprint entirely. A corporate treasury secured by five key holders appears identical to an individual's personal wallet on the blockchain.

## Efficient Multi-Party Custody

Key aggregation reduces transaction costs for multi-party custody arrangements. A traditional 3-of-5 multisig requires three ECDSA signatures (~216 bytes) plus five public keys (~165 bytes). With key aggregation via Taproot, the same arrangement requires one signature (64 bytes) and one key (32 bytes), roughly a 75% reduction in witness data that directly lowers transaction fees.

## Lightning Network Channel Management

Lightning channels are fundamentally 2-of-2 multisig contracts. With simple Taproot channels, the two channel partners use MuSig2 key aggregation, so cooperative channel opens, closes, and splices appear as ordinary single-signature transactions. The approach improves both privacy and on-chain efficiency for the Lightning Network.

## Scriptless Scripts and Adaptor Signatures

Key aggregation enables scriptless scripts and adaptor signatures, where contract conditions are enforced through the signature itself rather than through on-chain script logic. The approach moves complexity off-chain while maintaining trustless guarantees, and it is a building block for protocols like PTLCs and discreet log contracts.

## Layer 2 Protocols

Layer 2 systems like Spark use key aggregation and threshold signatures for their security model. FROST-based threshold signing allows operator sets to jointly control funds without any single party having unilateral access, while keeping on-chain footprints minimal.

## Liveness Requirements

MuSig2 requires all n signers to participate in every signing session, so one unavailable key holder, whether through a lost key, being offline, or refusing to cooperate, prevents the group from signing at all. Traditional m-of-n multisig is less strict because missing signers beyond the threshold do not block operations. FROST addresses this limitation by supporting t-of-n thresholds, but it requires a more complex distributed key generation setup.

## Setup Complexity

Secure key aggregation requires careful implementation of the key generation and nonce coordination protocols. Nonce reuse in Schnorr signing is catastrophic because reusing a nonce across two signing sessions allows the signer's private key to be extracted algebraically. MuSig2 mitigates this risk with deterministic nonce derivation, but implementers must follow the specification precisely.

## No Post-Hoc Accountability

An aggregate signature is indistinguishable from a single-signer signature, so there is no on-chain record of which participants signed a particular transaction. The privacy benefit also means organisations cannot use the blockchain as an audit trail for signing activity. Internal logging must be maintained separately.

## Incompatibility with ECDSA

Key aggregation relies on Schnorr signature linearity and is not possible with ECDSA, the signature scheme used by legacy and SegWit v0 Bitcoin addresses. Only P2TR (Taproot) outputs support Schnorr-based key aggregation natively. Wallets and applications must adopt Taproot to benefit from these properties.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. You should always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
