Distributed Key Generation (DKG)
Several parties jointly create a key so the full private key never exists in one place.
Basically
Several people create one shared Bitcoin key together. No one ever has the whole key.
Key Takeaways
- Distributed key generation (DKG) lets a group create a shared cryptographic key pair together. No single party ever knows the complete private key. This removes the single point of failure in Shamir's Secret Sharing, which requires a trusted dealer.
- DKG powers threshold signature schemes like FROST, where any t-of-n participants can produce a valid signature. These signatures look the same as standard single-signer Schnorr signatures on the blockchain.
- Spark uses FROST DKG so its operators each hold a key share without any single operator possessing the full key. Only one honest operator is needed to protect user funds, creating a trust-minimised architecture.
What Is Distributed Key Generation?
Distributed key generation (DKG) is a cryptographic protocol that lets n participants create a shared public/private key pair together. Traditional key generation has one entity create the entire key. DKG ensures the private key is never constructed or stored in a single location. Each participant receives a secret share of the private key. Any threshold number (t) of participants can cooperate to produce signatures, but no individual or coalition smaller than t can learn anything about the full key.
Torben Pedersen first formalised the concept in 1991, building on Feldman's Verifiable Secret Sharing (VSS) scheme from 1987. In 1999, Gennaro, Jarecki, Krawczyk, and Rabin identified a key-bias vulnerability in Pedersen's original protocol and proposed improvements. They also proved that the bias does not compromise security for threshold Schnorr signature schemes.
DKG is a foundational building block for modern multi-party computation and threshold cryptography. In Bitcoin, it lets protocols like FROST produce standard Schnorr signatures from distributed key shares. Threshold-signed transactions therefore look the same as ordinary Taproot spends on chain.
How It Works
A DKG protocol runs through multiple rounds of communication between participants. The most widely used variant is Pedersen DKG with Feldman VSS. Each participant acts as a "dealer" in their own secret sharing instance. The final key is the aggregate of all participants' independent contributions.
Round 1: Commitment
Each participant P_i generates a random polynomial f_i(x) of degree t-1, where t is the signing threshold. The constant term of each polynomial is that participant's secret contribution. For each coefficient, the participant computes an elliptic curve commitment by multiplying the coefficient by the generator point G:
Each participant broadcasts their commitments and proof of knowledge to all other participants. The Schnorr proof prevents rogue-key attacks. Without it, a malicious participant could choose their contribution as a function of others' contributions to control the final group key.
Round 2: Share Distribution and Verification
Each participant verifies all received proofs of knowledge. They then evaluate their polynomial at every other participant's index and send the resulting share privately:
The verification step lets each recipient confirm that their share is consistent with the sender's public commitments without revealing any other shares. If a participant sends an invalid share, the recipient can prove this publicly by broadcasting a complaint. The accused must then reveal the share or be excluded from the protocol.
Key Derivation
Each participant aggregates the shares they received from every other participant once all shares are verified. They also add their own contribution at their index:
Each participant finishes the protocol with their signing share s_j, their verification key share (s_j multiplied by G), and the group public key PK. The group private key sk exists only as an implicit mathematical relationship: the sum of all participants' secret contributions. It is never computed, stored, or transmitted.
DKG vs. Trusted Dealer
Trusted-dealer key generation is the alternative to DKG. A single entity creates the full private key and splits it into shares using Shamir's Secret Sharing. The dealer distributes the shares to participants and must then destroy the original key. This approach is simpler, but the dealer knows the complete private key.
The trusted-dealer approach may be acceptable when participants already trust one entity, such as an organisation splitting its own backup key. DKG is necessary when no single party should be trusted. Examples include decentralised protocols, cross-organisational custody, and key ceremonies for blockchain infrastructure.
DKG in FROST Threshold Signatures
FROST (Flexible Round-Optimized Schnorr Threshold Signatures) specifies a DKG protocol based on Pedersen's scheme. It adds a requirement for each participant to provide a Schnorr proof of knowledge of their secret contribution during Round 1. This proof prevents rogue-key attacks where a malicious participant manipulates the group public key.
The FROST DKG produces shares that work directly with FROST's two-round signing protocol. Once DKG completes, any t-of-n participants can collaborate to produce a standard Schnorr signature that verifies against the group public key. External verifiers cannot distinguish this signature from one produced by a single signer. For more detail on how the signing protocol works after key generation, see the FROST threshold signatures deep dive.
IETF RFC 9591, published in June 2024, standardises the FROST signing protocol with five ciphersuites. These include FROST(secp256k1, SHA-256) for Bitcoin compatibility. The RFC intentionally leaves DKG out of scope and includes only a trusted-dealer appendix for reference. A separate BIP for FROST signing on Bitcoin is under active development.
Share Refresh and Key Rotation
FROST supports proactive secret sharing, which lets participants refresh their key shares without changing the group public key. Each participant generates a new random polynomial with a zero constant term, and the group runs a protocol similar to DKG to update shares. Old shares become invalid after refresh, so an attacker who compromised a share before the refresh gains no advantage from it. Participants can also be added or removed without changing the on-chain address, which is critical for key rotation in production systems.
Bitcoin Layer 2 Protocols
Spark uses FROST DKG so its set of independent operators collectively holds one side of a 2-of-2 signing arrangement for each virtual UTXO. You hold the other key share. No single operator can sign unilaterally because the operator key is generated via DKG. The threshold of operators must cooperate. This creates a 1-of-n trust model from your perspective, since only one honest operator is needed to prevent theft. Learn more about Spark's architecture in the Spark Layer 2 overview.
Institutional Custody
Custodians and exchanges use DKG-based threshold signing to remove single points of failure in key management. They generate the key in a distributed way across multiple HSMs in different locations instead of storing a master key in one hardware security module. No single device or operator can produce a signature alone. This reduces insider threat and physical compromise risk.
Decentralised Protocols
Any system that requires shared control over a cryptographic key benefits from DKG:
Efficiency over Multisig
Traditional multisig requires each signer to produce a separate on-chain signature, increasing transaction size and fees. DKG-based threshold signing produces a single compact signature regardless of how many participants contributed. On Bitcoin, a FROST threshold signature is the same size and cost as an ordinary Taproot spend: 64 bytes.
Communication Complexity
DKG requires multiple rounds of authenticated, point-to-point communication between all participants. For n participants, Round 2 alone requires n(n-1) private messages. This scales quadratically, making DKG with very large participant sets of hundreds or thousands impractical without protocol modifications. Most production deployments use modest participant counts, typically 3 to 20.
Liveness Requirements
All participants must be online and responsive during the DKG ceremony. If a participant goes offline mid-protocol, the ceremony may need to restart without the absent party or fall back to a reduced participant set. This is a one-time cost. Once DKG completes, ongoing signing only requires t-of-n participants to be available.
Key Bias in Pedersen DKG
Gennaro et al. demonstrated that a malicious participant in Pedersen's DKG can bias the distribution of the group public key. Two colluding adversaries can bias the last bit of the public key with probability 3/4 instead of 1/2. However, this bias does not help compute discrete logarithms and therefore does not weaken threshold Schnorr signatures. For applications requiring uniformly random keys, such as certain commitment schemes, the "New-DKG" variant by Gennaro et al. adds an additional round to eliminate the bias.
No Post-Quantum Security
DKG protocols based on elliptic curve cryptography inherit the same vulnerability to quantum computers as the underlying digital signature scheme. A sufficiently powerful quantum computer running Shor's algorithm could extract the private key from the public key, regardless of how the key was generated. Research into lattice-based DKG protocols is ongoing but not yet standardised.
Secure Channels Required
Round 2 of DKG transmits secret shares between participants. These shares must be sent over encrypted, authenticated channels. If an attacker intercepts shares from t or more participants, they can reconstruct the full private key. Production implementations typically use X25519 key exchange with AES-GCM encryption for share transmission.
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.