Wesolowski VDF
Goal
By the end of this chapter, you should understand the high-level structure of a Wesolowski verifiable delay function: evaluation by repeated squaring, verification with a short proof, the statement , Fiat-Shamir challenge primes, the quotient-and-remainder idea, and why verification can be faster than recomputation.
This chapter gives intuition and algebraic shape. It is not a formal security proof.
Prerequisites
You should know:
- modular exponentiation and repeated squaring
- groups and group order
- unknown-order groups
- class groups at a high level
- hash functions and random-oracle intuition
What a VDF Is
A verifiable delay function is a function where:
- Evaluation takes a prescribed amount of sequential time.
- The evaluator can produce a proof of correct evaluation.
- Verification is much faster than recomputing the whole delay.
Wesolowski's paper constructs a VDF based on proof of exponentiation: Efficient Verifiable Delay Functions.
Chia documentation describes proof of time as a VDF proof that a sequential function was executed a certain number of times: Proof of Time.
Evaluation
The evaluator starts with a group element in an unknown-order group and a delay parameter .
The target statement is:
The straightforward evaluation is repeated squaring:
y = x
repeat T times:
y = y * y
return y
After one step:
After two steps:
After steps:
Verification
A verifier wants to check that really equals without doing all squarings.
Wesolowski's proof gives the verifier one extra group element, usually called , plus a challenge prime . The verifier checks an equation that recombines the proof and a smaller exponent.
The result is much faster verification than recomputing:
repeat T times:
y = y * y
The exact security depends on assumptions about the group and the challenge generation.
The Statement
The exponent is enormous when is large. For example:
means the exponent is:
Nobody writes this exponent out. The evaluator reaches it by repeated squaring.
In a known-order group, someone might reduce modulo the group order. In an unknown-order group, that shortcut is not available to the evaluator.
Wesolowski Proof Intuition
The prover wants to convince the verifier:
without making the verifier perform all squarings.
The key idea is to divide the exponent by a challenge prime :
where:
- is the quotient
- is the remainder
The proof is:
Then:
So the verifier can check:
This is the core algebraic shape.
Fiat-Shamir Challenge Prime
The challenge prime should not be chosen by the prover in a way that lets them cheat.
The Fiat-Shamir idea is to derive the challenge from a hash of the public statement:
ell = hash_to_prime(x, y, T)
The hash output is interpreted through a procedure that produces a prime.
The intuition is that the prover must commit to before learning a challenge that is hard to manipulate. In formal analysis, this is often modeled with a random oracle.
Quotient and Remainder
The quotient-and-remainder step is ordinary integer division:
The verifier does not need to compute directly. The proof is provided by the prover.
The verifier does need :
This can be computed quickly with modular exponentiation:
r = pow_mod(2, T, ell)
This is much faster than doing group squarings when is small enough for normal integer arithmetic.
Verification Equation
The verification equation is:
where:
If the equation holds, the verifier accepts.
This equation follows from:
and:
This explanation is algebraic intuition. Formal soundness requires precise assumptions about the group and challenge generation.
Why Verification Is Faster Than Recomputation
Evaluation requires sequential squarings.
Verification requires:
- deriving
- computing
- computing
- computing
- checking one group equation
The verifier performs exponentiations with exponents much smaller than and avoids the full sequential chain.
This is the "verifiable" part of a VDF: the verifier gets confidence without rerunning the delay.
Soundness Intuition
Soundness means a cheating prover should not be able to convince the verifier of a false output.
Intuitively, after the prover commits to , the challenge prime forces them to provide a proof consistent with a hard-to-predict quotient. If is wrong, producing a valid should be infeasible under the proof's assumptions.
This is not a full proof. Formal soundness depends on the adaptive root assumption or related assumptions used in Wesolowski-style analyses.
For a first reading, treat the adaptive root assumption as a formal way of saying that producing certain roots in an unknown-order group should be hard even after seeing challenge information. Later security-focused chapters can state this more precisely.
Chia Connection
Chia uses VDFs as proof of time. The Chia VDF implementation repository describes repeated squaring of a generator form and generation of Wesolowski proof segments: Chia-Network/chiavdf.
The green paper introduction describes Chia's VDF sequential function as repeated squaring in class groups of unknown order, with Wesolowski's proof of exponentiation: Chia green paper introduction.
Later chapters will discuss n-Wesolowski and how proof of time fits into Chia consensus.
Common Pitfalls
Thinking the proof removes the delay. The proof helps verification. The evaluator still performs the delayed computation.
Confusing fast modular exponentiation with VDF evaluation. The VDF delay is the sequential group squaring chain.
Letting the prover choose the challenge. The challenge must be derived in a way the prover cannot bias after seeing the statement.
Forgetting the remainder term. The verifier checks , not just .
Treating intuition as a proof. The quotient equation explains why the verification equation makes sense, but it is not a complete soundness proof.
Exercises
- If , write as an ordinary exponent.
- For and , compute .
- If and , derive .
- Why should be derived after is known?
- List the steps a verifier performs in the simplified Wesolowski check.
- Explain why verification can be faster than recomputing all squarings.
- What assumption about the group order is important for the VDF delay?
- In your own words, explain what "soundness" means for a VDF proof.
Further Reading
- Efficient Verifiable Delay Functions
- Chia Proof of Time documentation
- Chia green paper introduction
- Chia-Network/chiavdf
- Boneh, Bünz, and Fisch, "A Survey of Two Verifiable Delay Functions"