Distributed Randomness Beacon

A public source of verifiable randomness that no single participant can predict or bias.

Basically

A distributed randomness beacon produces random values that anyone can check. No single party can predict or control them.

Key Takeaways

  • A distributed randomness beacon combines random input from multiple independent parties. Cryptographic methods such as BLS threshold signatures or commit-reveal schemes make the output unpredictable and resistant to bias.
  • Blockchains need unbiased randomness for validator selection, lottery protocols, NFT reveals and fair transaction ordering. Block hashes are insecure because miners and validators can manipulate them.
  • Major implementations include the drand network (League of Entropy), Chainlink VRF and Ethereum's RANDAO. Each makes different trade-offs between decentralisation, speed and resistance to bias.

What Is a Distributed Randomness Beacon?

A distributed randomness beacon is a service that periodically produces random values no single participant can predict, bias or suppress. A conventional random number generator runs on a single server, while a beacon spreads trust across multiple independent operators. Each operator contributes random input, and cryptography combines the contributions so no group below a defined threshold can influence the output.

The concept addresses a fundamental question in decentralised systems: who picks the random number? A centralised lottery operator could rig the draw, and a single randomness source for validator selection in a proof-of-stake blockchain could let its operator choose favourable validators. A distributed beacon removes this single point of manipulation by requiring cooperation from many parties, with each party able to verify the output independently.

NIST operated the earliest public randomness beacon, publishing 512-bit random pulses every 60 seconds using hardware random number generators. NIST's beacon was centralised, so users had to trust NIST not to manipulate outputs. Modern distributed beacons remove this trust requirement entirely through cryptographic proofs.

How It Works

All distributed randomness beacons share a common structure: multiple participants contribute randomness, the contributions are combined in a way that prevents manipulation, and the result is publicly verifiable. The cryptographic mechanism used to combine contributions creates the differences between them. Three primary approaches dominate.

BLS Threshold Signatures

The most widely deployed approach uses BLS (Boneh-Lynn-Shacham) signatures with a threshold scheme. Distributed key generation creates a collective public key during a setup phase and gives each participant a private key share. Participants then produce a random value as follows:

The security guarantee is straightforward: nobody can predict or bias the output as long as fewer than the threshold number of participants collude. The BLS signature scheme makes the process efficient because partial signatures can be aggregated without interaction between participants.

Commit-Reveal Schemes

A commit-reveal scheme splits randomness generation into two phases. Participants first commit to their values and then reveal them:

Commit-reveal is conceptually simple but suffers from the "last-revealer problem": the last participant to reveal can see everyone else's values and choose whether to reveal or withhold, giving them a one-bit bias on the output. Penalties for non-revelation mitigate this problem but do not eliminate it for high-stakes applications.

Verifiable Delay Functions

A verifiable delay function (VDF) takes a minimum amount of sequential computation time to evaluate, but anyone can verify the result quickly. VDFs solve the last-revealer problem when applied to randomness beacons: even if a participant sees all other contributions, they cannot compute the final output fast enough to decide whether to withhold.

The process feeds the combined contributions into a VDF. The sequential computation requirement ensures no participant can "look ahead" to see the output before the reveal deadline. Ethereum's research roadmap has explored adding VDFs to strengthen RANDAO against bias attacks.

Why Blockchain Needs Unbiased Randomness

Randomness is not optional in blockchain protocols: it is a security requirement. Any process that selects participants, distributes rewards or determines ordering must use randomness that resists manipulation. Predictable or biasable randomness undermines the fairness guarantees that decentralised systems exist to provide.

The Problem with Block-Hash Randomness

Early smart contracts often used block hashes, timestamps or difficulty values as randomness seeds. This approach is fundamentally insecure because miners and validators can influence these values.

A miner who finds a block can inspect the resulting hash before publishing it. The miner can discard the block and try again if the hash produces an unfavourable outcome in a randomness-dependent contract, such as a lottery they would lose. This manipulation is economically rational as long as the value at stake exceeds the block reward the miner forfeits.

Real exploits have demonstrated this vulnerability. The popular Ethereum game Fomo3D used a combination of block.timestamp, block.difficulty, msg.sender and block.coinbase as randomness seeds in 2018. Attackers deployed contracts that pre-computed the random values within the same block and proceeded only when the outcome was favourable, reverting the transaction if it was unfavourable; the lottery contract SmartBillions lost 400 ETH through similar block-hash manipulation.

drand (League of Entropy)

drand is the most widely used distributed randomness beacon. Development began in 2017 at the DEDIS lab at EPFL, building on research into scalable bias-resistant distributed randomness published at the 2017 IEEE Symposium on Security and Privacy; Cloudflare, Protocol Labs, Kudelski Security, the University of Chile and EPFL announced the League of Entropy consortium to operate drand in production in June 2019. The network has since grown to approximately 15 mainnet members, including the Ethereum Foundation, ChainSafe and cLabs.

drand uses BLS threshold signatures on the BLS12-381 curve. Participating nodes sign the round number with their key share each round, and a threshold of partial signatures combines into a single deterministic group signature that serves as the random output. The network operates two chains:

Filecoin was drand's first major production user. It relies on drand for leader election in its consensus protocol.

Chainlink VRF

Chainlink VRF provides on-chain verifiable random function outputs for smart contracts. Chainlink VRF is designed as a request-response oracle service rather than a standalone beacon like drand: a smart contract requests randomness, and a Chainlink node generates a random value paired with a cryptographic proof.

The oracle holds a pre-committed secret key on the secp256k1 curve. The oracle combines block data, which is unknown at request time, with its secret key when a randomness request arrives to produce both a random number and a proof. The proof is verified on-chain before the requesting contract receives the value, ensuring the oracle cannot manipulate the output.

The current version, VRF v2.5, launched in November 2024. It is deployed on Ethereum, Arbitrum, Avalanche, BNB Chain and Polygon, and supports payment in both LINK tokens and native gas tokens.

Ethereum RANDAO

Ethereum's beacon chain uses RANDAO as its built-in randomness mechanism. Every block proposer includes a randao_reveal field containing their BLS signature over the current epoch number. The beacon chain verifies this signature, hashes it with SHA-256 and XORs it into the running RANDAO accumulator.

RANDAO provides sufficient entropy for validator committee assignments and proposer selection, with over 900,000 active validators contributing. RANDAO is known to be biasable because the last proposer in an epoch can see all prior contributions and choose whether to reveal or withhold their value, giving them a choice between two possible outputs. This last-revealer bias is acceptable for validator selection because the cost of withholding a block outweighs the benefit of biasing selection, but it is insufficient for high-stakes applications like on-chain lotteries; Ethereum's research roadmap has explored VDFs as a long-term fix.

Security Properties

Academic literature evaluates randomness beacons against four canonical security properties. These properties provide a shared basis for comparison:

Different implementations prioritise these properties differently. drand achieves all four when its threshold assumptions hold. Chainlink VRF achieves unpredictability and verifiability but relies on oracle operator honesty for availability, while RANDAO achieves availability and verifiability but sacrifices full unbiasability due to the last-revealer problem.

Threshold Assumptions

BLS threshold beacon schemes assume that fewer than t out of n participants collude. An adversary who compromises enough key shares to meet the threshold can pre-compute future beacon outputs and destroy unpredictability. The beacon's security is only as strong as the independence and operational security of its participants.

Liveness vs. Safety Trade-offs

Beacon protocols face a tension between liveness and safety. A low threshold, for example 5 out of 15, makes the beacon resilient to outages but easier to compromise, while a high threshold, such as 12 out of 15, resists collusion but may stall if too many participants go offline. Protocol designers must calibrate this trade-off based on the trust model and operational environment.

Oracle Trust in VRF Models

Chainlink VRF and similar oracle-based solutions provide verifiability because the proof prevents manipulation of the output, but they introduce availability risk. The application receives no randomness if the oracle node goes offline or censors requests. This guarantee is weaker than that of a fully distributed beacon, where no single node is critical.

On-Chain Verification Costs

Verifying beacon outputs on-chain requires cryptographic operations that consume gas. BLS signature verification on BLS12-381 is computationally expensive on the EVM, though precompile proposals and alternative curves, like BN254 for drand's evmnet, reduce costs. These verification costs can be significant for applications that need randomness frequently.

Further Reading

Research on zero-knowledge proofs and their Bitcoin applications and FROST threshold signatures provides deeper technical context on related cryptographic primitives. The MEV and validator economics article explores how randomness in proposer selection intersects with MEV extraction.

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