Expand description
ECVRF-EDWARDS25519-SHA512-TAI (RFC 9381) verification for Solana programs.
A VRF proof is a signature whose output is also a pseudorandom 64-byte value that is unique per (key, input): the prover cannot grind for a favourable output, which is what makes it usable as on-chain randomness.
On target_os = "solana" every primitive is a syscall: sol_curve_* for
the group arithmetic and sol_sha512 (SIMD-0512) for hashing. Nothing
cryptographic runs in software.
Structs§
- Proof
pi_string = Gamma || c || s.- Public
Key - An Ed25519 public key
Y = x·B, compressed per RFC 8032 §5.1.2. The same bytes as the Solana address of the proving keypair.
Enums§
Constants§
- OUTPUT_
LENGTH - PROOF_
LENGTH ptLen + cLen + qLen = 32 + 16 + 32.- PUBLIC_
KEY_ LENGTH - SUITE
suite_stringfor ECVRF-EDWARDS25519-SHA512-TAI, RFC 9381 §5.5.
Type Aliases§
- Output
- VRF hash output
beta_string.