DKG Ceremony (Distributed Key Generation)

The interactive session in which participants produce key shares, and nobody learns the whole key.

Basically

Several people create a shared key together. No one ever holds the whole private key.

Key Takeaways

  • A DKG ceremony is a coordinated event with several rounds. Participants create a shared cryptographic key pair, and each person receives only their own key share.
  • The ceremony has three phases: commitment, share distribution and verification. Participants publish cryptographic commitments, send private shares through encrypted channels and check shares against the commitments, allowing them to detect and exclude anyone who cheats.
  • DKG ceremonies set up FROST and other threshold signature schemes. An incorrectly executed ceremony compromises the security of every later signing operation.

What Is a DKG Ceremony?

A DKG ceremony (distributed key generation ceremony) is a specific, interactive protocol through which a group collaboratively creates a shared public/private key pair. A standard key ceremony has one entity generate a key and distribute shares, but a DKG ceremony ensures that the full private key never exists in any single location at any point. Each participant contributes randomness, and the protocol combines these contributions into a group key whose private component is split into shares from the start.

The word "ceremony" reflects a coordinated event rather than a passive computation, with all participants online and actively communicating. The ceremony typically runs once during system initialisation, or when the participant set changes, and must finish successfully before any threshold signing can occur. The resulting key shares support ongoing threshold signing without another ceremony.

The companion glossary entry covers the mathematical foundations of distributed key generation as a cryptographic primitive. This article covers the ceremony itself: its phases, security properties, failure modes and operational considerations.

How It Works

A DKG ceremony based on the Pedersen protocol with Feldman Verifiable Secret Sharing (VSS) runs in three main phases. The participant count is n and the signing threshold is t, so any t participants can later produce a valid signature together. Each participant acts as both a dealer contributing randomness and a recipient receiving shares from others.

Phase 1: Commitment

Every participant generates a random polynomial of degree t-1. The polynomial's constant term is the participant's secret contribution to the eventual group key. Each participant computes an elliptic curve commitment for every coefficient by multiplying it by the generator point G.

Each participant broadcasts their commitments and proof of knowledge to all others. The Schnorr proof prevents rogue-key attacks, where a malicious participant crafts their contribution as a function of others' published values to manipulate the final group key. FROST added this proof requirement, which the original Pedersen DKG does not include.

No participant reveals their actual polynomial coefficients during this phase. The commitments are binding, so the participant cannot change their polynomial later, but hiding, so they do not reveal the secret values.

Phase 2: Share Distribution

Each participant evaluates their polynomial at every other participant's index after receiving all commitments and verifying all proofs. Each participant sends the resulting value as a private share over an encrypted channel.

This phase produces n(n-1) private messages, with every participant sending a unique share to every other participant. Secure channels are necessary because intercepting t or more shares from different senders destined for the same recipient would allow reconstruction of that recipient's final signing share.

Phase 3: Verification and Finalisation

Each recipient verifies every received share using Feldman's VSS check. The check confirms that the share matches the sender's published commitments without revealing any other shares.

A complaint requires the accused participant to reveal the correct share publicly. A revealed share matching the commitments leads to dismissal of the complaint, while an inability to produce a valid share or respond leads to exclusion from the ceremony. The protocol continues with the remaining participants.

Each participant computes their final signing share by summing all accepted shares, including their own contribution at their index, after all valid shares are confirmed. The group public key is the sum of all valid participants' constant-term commitments.

The group private key is the sum of all secret contributions and is never computed or stored anywhere. It exists only as an implicit mathematical relationship distributed across the participants' shares.

DKG Ceremony vs. Trusted Dealer

A trusted dealer setup is the alternative to a DKG ceremony. One entity generates the full private key, splits it using Shamir's Secret Sharing, distributes the shares and must then destroy the original key.

A trusted dealer is simpler and works when participants already trust one entity, such as a company splitting its own backup key internally. A DKG ceremony is necessary when no single party should be trusted with the full key, including decentralised protocols, cross-organisational custody and blockchain infrastructure. IETF RFC 9591, which standardises FROST signing, includes only a trusted-dealer appendix for reference and intentionally leaves DKG outside its scope as a separate protocol concern.

Why DKG Ceremonies Matter for FROST

FROST (Flexible Round-Optimized Schnorr Threshold Signatures) is a threshold signing protocol that produces standard Schnorr signatures from distributed key shares. The DKG ceremony is the setup phase that creates those shares. FROST signing cannot begin without a correctly executed DKG ceremony.

FROST's DKG adds a Schnorr proof-of-knowledge requirement in Phase 1 that the original Pedersen DKG lacks. The proof ensures that each participant knows the secret behind their commitment, preventing attacks where a malicious participant manipulates the group public key by choosing their commitment as a function of others' commitments. The FROST threshold signatures deep dive explains how signing works after the ceremony.

Any t-of-n participants can cooperate in a two-round signing protocol after the ceremony. They produce a signature that is indistinguishable on-chain from a single-signer Taproot spend. External verifiers see a standard 64-byte Schnorr signature and cannot determine how many parties were involved.

Bitcoin Layer 2 Protocols

Spark uses a FROST DKG ceremony so its independent Signing Operators (SOs) collectively hold one side of a 2-of-2 signing arrangement for each virtual UTXO, while the user holds the other key share. The DKG-generated operator key prevents any single operator from signing unilaterally and creates a 1-of-n trust model from the user's perspective, where only one honest operator is needed to prevent theft. The Spark Layer 2 overview covers Spark's architecture.

MPC Wallets and Institutional Custody

MPC wallets use DKG ceremonies during initial wallet creation to distribute key material across multiple devices, servers or organisations, ensuring that the wallet's private key never exists in one place, even during setup. Institutional custodians run DKG ceremonies across hardware security modules in different geographic locations. No single facility can then be compromised or coerced to produce a signature alone.

Federated Systems

Protocols like Fedimint run a Pedersen DKG ceremony over BLS12-381 when a new federation is created. The ceremony produces threshold keys that let federation guardians jointly manage funds. The federation can process transactions once the ceremony completes, provided the threshold of guardians remains online.

Randomness Beacons

Decentralised randomness services like drand use DKG ceremonies to create threshold BLS keys across distributed operators. These operators produce verifiable random values through threshold signing. The DKG ceremony ensures that no single operator can predict or manipulate the random output.

Liveness During the Ceremony

All participants must remain online and responsive throughout the ceremony. A participant who drops offline during Phase 2, after receiving others' commitments but before sending shares, may force a restart with the absent party excluded. The coordination cost occurs once, and ongoing signing afterwards requires only t-of-n participants.

Malicious Participant Behavior

A malicious participant can attempt several attacks during a DKG ceremony. These attempts can occur while participants create commitments and exchange shares.

Collusion by fewer than t participants still allows the ceremony to produce secure key shares. A single honest participant is sufficient to ensure that the group key is not compromised.

Secure Communication Channels

Phase 2 transmits secret shares through encrypted, authenticated channels. An attacker who intercepts shares from t or more senders destined for the same recipient can reconstruct that recipient's final signing share. Production deployments typically use Noise protocol or X25519 key exchange with AES-GCM for share transmission, and end-to-end encryption between participants is a hard security requirement rather than an option.

Scalability Constraints

A DKG ceremony's communication complexity scales quadratically with the participant count, and Phase 2 alone requires n(n-1) private messages. Ceremonies with hundreds of participants are impractical without protocol modifications, so most production deployments use modest counts, typically 3 to 20. The asynchronous DKG by Das et al. trades additional rounds for better fault tolerance for larger groups, but these protocols remain an active research area.

No Replay or Reuse

A DKG ceremony produces key shares tied to a specific participant group and threshold. A changed participant set, through adding or removing an operator, requires a new ceremony or a share-refresh protocol. FROST supports proactive share refresh, which updates shares without changing the group public key, but this is itself a multi-round interactive protocol.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.

0

← All 1876 glossary terms