Distributed Randomness Beacon: Public Randomness, DKG, and BLS Signatures
What drand is, how threshold BLS and distributed key generation produce verifiable public randomness, and chained vs unchained beacon rounds.
This page summarises Cloudflare Randomness Beacon documentation on drand (pronounced “dee-rand”): a distributed network that emits collective, publicly verifiable random values on a schedule. If you need unpredictable randomness that no single operator can bias—and you want anyone to verify outputs—drand is the reference design Cloudflare documents alongside the open drand project.
drand public randomness beacon: what problem it solves
Section titled “drand public randomness beacon: what problem it solves”drand addresses the lack of deployed services that provide distributed public randomness (sometimes called a “common coin”). Consensus protocols, anonymity networks, blockchains, and similar systems often assume access to such randomness, yet until drand there was no scalable, robust distributed service—only centralized options such as NIST’s prototype beacon.
The drand project aims to address the current lack of services providing distributed public randomness. Distributed to increase the resilience and trustworthiness, drand provides a standalone randomness-as-a-service network that is application agnostic. This is similar to how NTP networks serve timing information across the globe.
— Cloudflare, About drand
drand (pronounced “dee-rand”) is a distributed randomness beacon daemon written in Golang. Servers running drand can be linked to each other to produce collective, publicly verifiable, unbiased, unpredictable random values at fixed intervals using bilinear pairings and threshold cryptography.
— Cloudflare, Cloudflare Randomness Beacon
drand is positioned as Internet infrastructure: randomness for applications in the same spirit as NTP for time or Certificate Transparency for certificate issuance. The live network grew from research at Yale and EPFL (pairing-based distributed randomness), a 2017 implementation, and later production hardening with multiple organisational operators. For narrative and timeline detail, see Background.
How drand works: setup phase and beacon phase
Section titled “How drand works: setup phase and beacon phase”At a high level, drand nodes run through two phases described in Cryptographic Background.
| Phase | Purpose | Reader takeaway |
|---|---|---|
| Setup | n participants run distributed key generation (DKG) and agree on a collective public key |
No single node holds the full signing secret |
| Beacon | On each round, a threshold of nodes produces a BLS threshold signature that becomes (or anchors) the public random output | Outputs are verifiable with the collective public key only |
The documentation assumes n participants with at most f < n malicious nodes. drand uses threshold cryptography: at least t - f + 1 honest participants must cooperate for operations to succeed, which removes a single point of failure compared with one central RNG.
drand setup phase: DKG, secret sharing, and verifiable shares
Section titled “drand setup phase: DKG, secret sharing, and verifiable shares”The setup phase creates a collective key pair shared among n participants via a t-of-n Distributed Key Generation (DKG). Each node receives the collective public key and a private key share of the collective private key—no individual node knows the full collective private key.
In the drand setup phase, you create a collective private and public key pair shared among 𝑛 participants. This is done through a 𝑡-of-𝑛 Distributed Key Generation (DKG) process and results in each participant receiving a copy of the collective public key plus a private key share of the collective private key — no individual node knows the collective private key.
— Cloudflare, Setup Phase
Shamir secret sharing and Feldman VSS in drand DKG
Section titled “Shamir secret sharing and Feldman VSS in drand DKG”Secret sharing splits a secret s into n shares so that only a threshold t of shares can reconstruct s. drand builds on Shamir’s Secret Sharing (SSS) and Feldman’s Verifiable Secret Sharing (VSS), which lets participants confirm that dealt shares match public commitments—important when you cannot trust a central dealer.
Plain-language chain: SSS defines how shares are created and recombined with Lagrange interpolation; VSS adds verification against broadcast commitments; Pedersen’s DKG runs parallel Feldman VSS instances so the collective secret is formed without any one party learning it. drand’s DKG is fully distributed to avoid single points of failure during setup. Full sub-step breakdown is in Setup Phase.
drand randomness generation: pairings, threshold BLS, and rounds
Section titled “drand randomness generation: pairings, threshold BLS, and rounds”Randomness generation combines pairing-based cryptography (PBC), t-of-n DKG, and threshold BLS signatures to yield publicly verifiable, unbiasable, unpredictable values. See Randomness Generation.
drand is an efficient randomness beacon daemon that utilizes pairing-based cryptography, 𝑡-of-𝑛 distributed key generation, and threshold BLS signatures to generate publicly-verifiable, unbiasable, unpredictable, distributed randomness.
— Cloudflare, Cryptographic Background
Pairing-based cryptography (PBC) and BLS in drand
Section titled “Pairing-based cryptography (PBC) and BLS in drand”Pairing-based cryptography uses a bilinear map e: 𝔾1 × 𝔾2 → 𝔾t with bilinearity, non-degeneracy, and efficient computability. drand currently uses the BLS12-381 curve (Barreto–Lynn–Scott).
BLS signatures are short, pairing-based, and deterministic for a fixed message and key—unlike ECDSA, they do not need fresh local randomness per signature. drand exploits that determinism so operators cannot grind extra randomness into the signature to bias the beacon output.
A threshold BLS round works as follows:
- Each participant signs the round message with their key share, producing a partial signature.
- Anyone verifies partials against public key shares from DKG.
- With
tvalid partials, Lagrange interpolation reconstructs the collective BLS signature. - Verification checks the pairing equation against collective public key
S, as in Randomness Generation.
Lagrange reconstruction yields the same collective signature regardless of which valid t-subset you use, and fewer than t signers cannot predict or bias the collective signature— the properties needed for public randomness.
G₁/G₂ swap: signature size vs public key size
Section titled “G₁/G₂ swap: signature size vs public key size”Early drand chains placed signatures on 𝔾2 and public keys on 𝔾1 (96-byte signatures, 48-byte public keys). Some beacons swap 𝔾1 and 𝔾2 for smaller signatures at the cost of larger public keys. Your client must match the beacon’s documented group layout when verifying.
Chained randomness vs unchained randomness on drand
Section titled “Chained randomness vs unchained randomness on drand”drand emits randomness in discrete rounds r. Configuration chooses how the signed message is formed:
| Mode | Round r message |
Property |
|---|---|---|
| Chained | H(r ‖ σ_{r-1}) where σ_{r-1} is the full threshold signature from round r - 1 |
Each value depends on the entire prior chain; deterministic BLS prevents forking two different valid signatures in the same round |
| Unchained | H(r) only |
Allows direct precomputation of the message for round r |
Round r = 0 in chained mode signs a seed fixed at setup. Chained mode is the default mental model for “beacon as an evolving chain”; unchained trades chain history for simpler round messages where precomputation matters.
drand network operations: where to run nodes and consume randomness
Section titled “drand network operations: where to run nodes and consume randomness”Operators should follow current procedures on the official operator site referenced from Cloudflare’s Operator Guide (which defers to the latest material at drand.love).
Application developers consuming randomness—HTTP APIs, verification libraries, round timing—should use the developer documentation linked from User Guide. Cloudflare’s pages are an overview; they explicitly point to drand.love for the freshest operator and developer docs.
Production status and planned evolution of drand
Section titled “Production status and planned evolution of drand”As of the documentation’s spring 2020 snapshot, the drand network is described as production-ready and comparable to foundational infrastructure such as DNS or BGP. Planned directions include more diverse operators (stronger guarantees), post-quantum randomness generation research, and protocol standardisation. Details are in Future of drand.
Common mistakes when using a drand beacon
Section titled “Common mistakes when using a drand beacon”- Verifying with the wrong collective key or round parameters after a network upgrade or resharing event without updating your pinned public key material.
- Assuming unchained and chained outputs are interchangeable—downstream protocols that require chain entropy must use chained beacons and validate the link to
σ_{r-1}. - Ignoring the 𝔾1/𝔾2 swap when implementing custom verifiers, which produces signature length or verification errors even when the math is otherwise correct.
- Treating DKG bias notes as “broken randomness”—documentation separates biased DKG secrets from safe threshold signing usage; confusion here leads to rejecting valid deployments.
- Relying on stale integration guides instead of the operator and user paths from Operator Guide and User Guide.
How to check this on your site
Section titled “How to check this on your site”- Identify which public drand network (or your self-hosted chain) your application uses and fetch the latest round output from that network’s documented HTTP or library API, following User Guide pointers to current developer docs.
- Obtain the collective public key and beacon metadata (chain ID, scheme, chained vs unchained, any 𝔾1/𝔾2 swap) from the same official source your operators publish.
- Run the documented BLS pairing verification for round
r: confirm the collective signature validates againstH(m)for that round’s message definition in Randomness Generation. - For chained beacons, repeat verification for
randr - 1and confirm the roundrmessage wasH(r ‖ σ_{r-1})per Randomness Generation. - You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.