What problem does it solve?
Flow VRF jury selection eliminates biased or opaque leader/juror selection by producing verifiable randomness that can be audited.
Core Features & Use Cases
- Provably fair jury selection: Requests randomness from Flow via a Cadence script invoking
revertibleRandom<UInt64>(), then uses the VRF seed for deterministic selection.
- Unbiased selection from a candidate pool: Applies a Fisher-Yates shuffle over the voter pool using the VRF seed as an LCG PRNG source.
- On-chain logging support: Returns the selected jury alongside the VRF seed and a proof string suitable for on-chain logging.
- Use case: When coordinating DAO deliberation, randomly and verifiably choose a subset of eligible voters as jurors for each deliberation round while keeping the selection method auditable.
Quick Start
Use the flow-vrf skill to select a jury by providing the candidate pool of NEAR account IDs, the desired jury size, and a deliberation ID, and receive the jury, VRF seed, and proof for verification.