Skip to content

vrfVerify

Algorand TypeScript


Algorand TypeScript / op / vrfVerify

vrfVerify(s, a, b, c): readonly [bytes<64>, boolean]

Defined in: op.ts:4087

Verify the proof B of message A against pubkey C. Returns vrf output and verification flag. VrfAlgorand is the VRF used in Algorand. It is ECVRF-ED25519-SHA512-Elligator2, specified in the IETF internet draft draft-irtf-cfrg-vrf-03.

VrfAlgorand

bytes

bytes | bytes<80>

bytes<32> | bytes

readonly [bytes<64>, boolean]

Native TEAL opcode: vrf_verify Min AVM version: 7