Skip to main content

Module vrf

Module vrf 

Source
Expand description

Verifiable Random Function (VRF).

An ECVRF proves that a random-looking output was derived deterministically from a seed and a public key, without revealing the secret key. Used for leader election, lotteries, and verifiable randomness.

Structs§

VrfOutput
A VRF output: the deterministic pseudo-random value + proof.
VrfProof
A VRF proof: (gamma, c, s).

Functions§

prove
Generate a VRF proof for alpha using the secret key.
verify
Verify a VRF proof.