Module iota::ecvrf
Constants
const EInvalidHashLength: u64 = 1;
const EInvalidPublicKeyEncoding: u64 = 2;
const EInvalidProofEncoding: u64 = 3;
Function ecvrf_verify
@param hash: The hash/output from a ECVRF to be verified.
@param alpha_string: Input/seed to the ECVRF used to generate the output.
@param public_key: The public key corresponding to the private key used to generate the output.
@param proof: The proof of validity of the output.
Verify a proof for a Ristretto ECVRF. Returns true if the proof is valid and corresponds to the given output. May abort with EInvalidHashLength, EInvalidPublicKeyEncoding or EInvalidProofEncoding.
public fun ecvrf_verify(hash: &vector, alpha_string: &vector, public_key: &vector, proof: &vector): bool
Implementation
public native fun ecvrf_verify(
hash: &vector,
alpha_string: &vector,
public_key: &vector,
proof: &vector,
): bool;