Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Verifiable Delay Function (VDF)

A Verifiable Delay Function (VDF) is a cryptographic function that guarantees a minimum, non-parallelizable computation time to produce a unique output that can be verified quickly, primarily used to generate unbiased randomness in blockchain consensus.
Chainscore © 2026
definition
CRYPTOGRAPHIC PRIMITIVE

What is a Verifiable Delay Function (VDF)?

A Verifiable Delay Function (VDF) is a cryptographic function that ensures a computation requires a specific, non-parallelizable amount of sequential time to complete, and whose output can be verified quickly by anyone.

A Verifiable Delay Function (VDF) is a cryptographic primitive that imposes a minimum, wall-clock time delay on the computation of its output, even for an attacker with access to massive parallel processing power. This sequential nature is its defining property, enforced by requiring the evaluation of a chain of inherently sequential computations. Crucially, once the output is produced, any third party can verify its correctness almost instantly, using a short proof. This creates a unique 'proof of elapsed time' that is both unforgeable and publicly verifiable.

The security of a VDF relies on the assumption that certain computations cannot be sped up through parallelism. A common implementation uses repeated squaring in a group of unknown order, such as an RSA group or a class group. The prover must compute a function like y = x^(2^T) mod N, where T is the required number of sequential steps. The verifier, who does not know the factorization of N, can then use a succinct proof (like a Wesolowski or Pietrzak proof) to check that y is correct without redoing the lengthy computation. This makes VDFs fundamentally different from Proof-of-Work, where the delay is probabilistic and energy-intensive.

VDFs have critical applications in blockchain consensus and cryptographic protocols. In Proof-of-Stake systems like Ethereum, they are used to generate unbiased, unpredictable randomness (a random beacon) for validator selection and committee assignment, preventing manipulation by the last block proposer. They are also proposed for use in leader election, timestamping services, and preventing grinding attacks in consensus. By providing a reliable and verifiable source of time in decentralized systems, VDFs solve problems related to coordination and fairness that are difficult to address with other cryptographic tools.

how-it-works
MECHANICS

How Does a VDF Work?

A Verifiable Delay Function (VDF) is a cryptographic primitive that guarantees a minimum, non-parallelizable computation time, producing a unique, publicly verifiable output.

A Verifiable Delay Function (VDF) works by enforcing a sequential computation that cannot be sped up by adding more processors, unlike traditional hash functions. It requires a specified number of sequential steps to compute an output from a given input. This property, known as sequentiality, is fundamental and ensures that a certain, unavoidable wall-clock time must pass before the result is known, even for an attacker with massive parallel computing resources.

The computation typically involves repeated squaring in a group of unknown order, such as an RSA group or a class group. Given an input x and a time parameter T, the prover calculates y = x^(2^T) modulo N, where N is the product of two large primes. This chain of squarings is inherently sequential because each step depends on the result of the previous one. The prover then generates a succinct proof (often using Wesolowski or Pietrzak protocols) that allows anyone to verify the correctness of y in a fraction of the time it took to compute it, without redoing the lengthy computation.

This combination of slow computation and fast verification is what makes VDFs powerful. The verifier checks the proof using the public parameters, the input x, the output y, and the time parameter T. If the proof is valid, they can be confident that the prover indeed performed the sequential work and that the output is correct. This mechanism is crucial for applications like randomness beacons (e.g., in Ethereum's RANDAO), where it ensures the random output was not manipulated after the source of entropy was revealed, and for proof-of-elapsed-time in consensus protocols.

key-features
CORE PROPERTIES

Key Features of VDFs

Verifiable Delay Functions are defined by a set of fundamental cryptographic properties that distinguish them from other primitives like Proof of Work. These features enable their unique role in creating trustless time and randomness.

01

Sequentiality

The defining characteristic of a VDF. It ensures the computation requires a wall-clock time to complete, even with massive parallelism. This creates a trusted time delay that cannot be sped up by adding more processors, unlike Proof of Work. It's the foundation for applications like leader election and randomness beacons.

02

Verifiability

Anyone can efficiently and quickly verify the correctness of the VDF's output, given the public input, output, and proof. This verification takes constant, negligible time (e.g., milliseconds) compared to the lengthy computation itself. This property separates VDFs from simple time-lock puzzles.

03

Uniqueness

For a given input, there is exactly one valid output. A prover cannot generate two different valid outputs for the same input. This prevents adversarial manipulation and ensures consensus on the result, which is critical for generating a single, canonical random value in protocols like Ethereum's RANDAO+VDF.

04

Incremental Verifiability

Some VDF constructions (e.g., Wesolowski's) allow for proof generation that is faster than the computation itself. The prover can generate a succinct proof after the sequential work is done, which the verifier checks instantly. This optimizes the communication and verification overhead in decentralized networks.

05

Comparison to Proof of Work

  • Energy Use: VDFs are energy-efficient; computation is deterministic, not a lottery.
  • Parallelism: PoW rewards parallel computation; VDFs are inherently sequential.
  • Purpose: PoW secures consensus via economic cost; VDFs generate verifiable delay and randomness for consensus layers (e.g., Ethereum's consensus).
06

Common Construction: Repeated Squaring

A widely studied VDF implementation. Given a modulus N (product of two primes) and input x, the computation is x^(2^T) mod N, which requires T sequential squarings. The Wesolowski or Pietrzak proof systems then allow for efficient verification of this massive exponentiation. This is a candidate for Ethereum's randomness beacon.

ecosystem-usage
PRACTICAL APPLICATIONS

Ecosystem Usage: Where Are VDFs Used?

Verifiable Delay Functions (VDFs) are a specialized cryptographic primitive enabling secure, trust-minimized randomness and time-based coordination. Their primary use cases are in blockchain consensus, randomness beacons, and preventing front-running.

02

Randomness Beacon (Randao)

VDFs transform commit-reveal schemes like RANDAO into robust, publicly verifiable randomness oracles. Without a VDF, the last participant in a RANDAO round can bias the final result. A VDF imposes a fixed computation delay after the final commitment, making it impossible for the last participant to compute and choose a favorable outcome in time. This produces unpredictable, publicly verifiable randomness for applications like on-chain lotteries and gaming.

03

Preventing Front-Running & MEV

VDFs can mitigate certain types of Maximal Extractable Value (MEV) and front-running by enforcing a fair ordering of transactions. By requiring a time-lock puzzle to be solved before a transaction is valid, they prevent high-frequency bots from instantly copying and front-running profitable trades seen in the mempool. Projects like Chia Network use VDFs in their Proof-of-Space-and-Time consensus to create sequential, non-parallelizable block times, reducing the advantage of fast hardware.

05

Non-Interactive Timestamping

VDFs enable cryptographic timestamping without continuous online verifiers. A prover can demonstrate that a piece of data (hashed and used as VDF input) existed before a certain point in time, as generating the VDF output required a mandatory delay. This is useful for proving data antiquity in decentralized systems, notarization services, and creating historical records where the order of events must be provable and immutable.

06

Resource-Efficient Client Puzzles

VDFs act as asymmetric client puzzles to rate-limit requests or prevent Sybil attacks in a resource-fair manner. Solving the puzzle requires sustained CPU time, but verification is fast. This makes them ideal for protocols that need to impose a real-world time cost on participants without favoring those with specialized parallel hardware (ASICs/GPUs), creating a more egalitarian barrier to spam or attack.

COMPARISON MATRIX

VDF vs. Other Randomness Sources

A technical comparison of Verifiable Delay Functions against other common sources of randomness used in blockchain protocols.

FeatureVerifiable Delay Function (VDF)Commit-Reveal SchemeVerifiable Random Function (VRF)Proof of Work (PoW) Hash

Randomness Source

Sequential computation + public seed

Participant submissions

Private key + public input

Hash of latest block

Verifiability

Unpredictability / Bias Resistance

Liveness Requirement

Output Delay

Fixed, deterministic (e.g., 1 min)

Reveal phase delay (e.g., 2 blocks)

< 1 sec

< 1 sec

Computational Cost

High (one prover)

Low

Low

High (many miners)

Energy Efficiency

Low (single compute)

High

High

Very Low

Primary Use Case

Leader election, consensus randomness

On-chain games, simple lotteries

Validator selection, secret leader election

Nakamoto Consensus (Bitcoin)

security-considerations
VERIFIABLE DELAY FUNCTION (VDF)

Security Considerations and Challenges

While VDFs provide powerful cryptographic guarantees, their implementation and integration into blockchain systems introduce specific security challenges that must be carefully managed.

03

Verification Cost and DoS Attacks

While VDF evaluation is slow, verification must be fast and cheap to be practical. However, an attacker could flood the network with invalid VDF proofs, forcing nodes to waste resources on verification. The design must ensure proof verification is cryptographically efficient (e.g., using Wesolowski or Pietrzak proofs) and that the protocol includes mechanisms to punish or filter obviously malicious submissions.

04

Random Beacon Manipulation

In randomness beacons (e.g., Ethereum's RANDAO+VDF), a VDF's output is only as unbiased as its input. If the input (like a RANDAO reveal) can be manipulated or predicted by a cartel of participants, the VDF merely delays a biased result. This requires commit-reveal schemes and potentially threshold signatures to ensure the input is a high-entropy, uncontrollable seed before the VDF is applied.

05

Implementation Bugs and Side-Channels

Like all cryptographic primitives, VDF implementations are vulnerable to bugs. A subtle error in the sequential function or proof generation could break uniqueness or soundness. Furthermore, side-channel attacks (timing, power analysis) on evaluation hardware could leak intermediate states. Implementation requires rigorous auditing and, for high-value applications, execution in trusted execution environments (TEEs) or secure hardware modules.

technical-details-deep-dive
CRYPTOGRAPHIC PRIMITIVES

Technical Deep Dive: Sequentiality and Groups

This section explores the core cryptographic building blocks that enable verifiable delay functions, focusing on the concepts of sequential computation and the mathematical groups that make them secure.

A Verifiable Delay Function (VDF) is a cryptographic primitive that guarantees a computation requires a specific, non-parallelizable amount of sequential work to complete, yet the result can be verified almost instantly. This property of sequentiality is fundamental, meaning the function cannot be sped up by adding more processors; it must be computed step-by-step over a predetermined duration, often called the delay parameter. This enforced time delay is crucial for applications like leader election in consensus protocols, where it prevents an adversary with massive parallel resources from unfairly influencing the outcome.

The security and sequential nature of a VDF are anchored in specific algebraic structures known as groups. Most practical VDF constructions, such as the Wesolowski and Pietrzak protocols, operate within groups of unknown order, like an RSA group or a class group. The "unknown order" means that the total number of elements in the group is not publicly known, which is essential. This property forces any prover to perform the computation sequentially, as parallel shortcuts like precomputation or efficient exponentiation tricks are computationally infeasible without knowing the group's order.

The VDF process involves three algorithms: Setup (which generates the public parameters, including the group and delay parameter), Eval (which performs the slow, sequential computation on a given input), and Verify (which quickly checks the proof of correctness). The prover outputs not just the result y but also a succinct proof π. The verifier uses this proof to confirm that y = f(x) was computed correctly and that the mandated delay was honored, all without redoing the lengthy computation. This creates a trustless bridge between elapsed real-world time and cryptographic proof.

In blockchain ecosystems, VDFs are pivotal for creating unbiased randomness (random beacons) and securing proof-of-stake consensus. For example, in a validator selection process, a VDF can ensure that the party chosen to propose the next block is determined by a seed that no one could have manipulated at the last moment, as computing the VDF output would take precisely longer than the available time. This mitigate attacks like grinding, where an adversary tries many possibilities to bias the result in their favor.

Comparing VDFs to other time-based primitives highlights their unique role. Unlike Proof-of-Work (PoW), which is parallelizable and energy-intensive, a VDF is inherently sequential and energy-efficient. Unlike a simple time-lock puzzle, a VDF provides a publicly verifiable proof, not just an encrypted secret. This combination of guaranteed sequential effort, efficient verification, and public verifiability makes VDFs a unique and powerful tool for synchronizing decentralized systems and generating trustworthy randomness in adversarial environments.

VERIFIABLE DELAY FUNCTIONS

Common Misconceptions About VDFs

Verifiable Delay Functions (VDFs) are a critical cryptographic primitive, but their unique properties are often misunderstood. This section clarifies frequent points of confusion regarding their purpose, security, and application in blockchain systems.

No, a Verifiable Delay Function is fundamentally different from a slow hash function like Argon2 or scrypt. While both enforce a time delay, a VDF's core property is sequentiality: the computation cannot be parallelized or sped up with more hardware. A slow hash function is designed to be memory-hard and computationally expensive, but its work can be parallelized across multiple cores or ASICs. In contrast, a VDF's delay is inherently sequential, meaning each step depends on the output of the previous step, creating a provable minimum wall-clock time that is resistant to hardware acceleration. This makes VDFs uniquely suited for applications like unbiased randomness beacons and leader election in proof-of-stake, where a predictable, non-parallelizable delay is essential.

VDF

Frequently Asked Questions (FAQ)

Verifiable Delay Functions (VDFs) are a critical cryptographic primitive for creating trustless delays in decentralized systems. These questions address their core purpose, mechanics, and applications in blockchain protocols.

A Verifiable Delay Function (VDF) is a cryptographic function that guarantees a minimum, non-parallelizable computation time, whose output can be verified quickly by anyone. It works by requiring a sequential series of computations (like repeated squaring in a finite group) that cannot be sped up by adding more processors, ensuring a predictable time delay. After the prover completes this inherently slow computation, they generate a succinct proof that allows any verifier to check the correctness of the output almost instantly, without redoing the work. This creates a provable and trustless time delay, a concept crucial for protocols requiring unbiased randomness or secure leader election.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team
Verifiable Delay Function (VDF) | Blockchain Glossary | ChainScore Glossary