π VRF Protocols: Chainlink & RANDAO
Understand how Verifiable Random Functions work
Generate provably fair random numbers on-chain
Your Progress
0 / 5 completedVRF Protocols
**Verifiable Random Functions (VRF)** are cryptographic primitives that generate pseudo-random outputs with a proof of correctness. The oracle uses its private key to generate both the random number and a proof that anyone can verify using the oracle's public keyβensuring the output wasn't manipulated.
VRF combines the properties of a hash function (deterministic, one-way) with public-key cryptography. Only the private key holder can compute the output, but anyone can verify it was computed correctly using the proof.
π How VRF Works
Interactive: VRF Flow Simulation
Watch the four stages of VRF random number generation and verification.
Input & Request
Smart contract requests random number with seed
Proof Generation
Oracle generates VRF proof using private key
On-Chain Verification
Smart contract verifies proof validity
Random Output
Verified random number delivered to contract
VRF Provider Comparison
Compare the two leading VRF solutions for blockchain applications.
Chainlink VRF
VRF Mathematics
VRF uses elliptic curve cryptography to generate provable randomness. The core operation:
π‘ Key Properties
- βUnpredictable: Output cannot be known before proof generation
- βVerifiable: Anyone can verify correctness using public key
- βUnique: Same seed + key always produces same output (deterministic)
- βCollision-resistant: Different seeds produce independent outputs