Module concordium_rust_sdk::ecvrf
source · Expand description
Re-export the VRF function implementation. Implementation of the verifiable random function as specified in https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-vrf-09.
Structs§
- An ed25519 keypair.
- Proof that the value produced by the VRF function is correct with respect to a given public key.
- Errors which may occur while processing proofs and keypairs.
- An ed25519-like public key. This has a bit stricter requirements than the signature scheme public keys, in particular points of small order are not allowed, and this is checked during serialization.
- An EdDSA secret key.
Constants§
- The length of an “expanded” ed25519 key,
ExpandedSecretKey
, in bytes. - The length of an ed25519
Keypair
, in bytes. - The length of a VRF
Proof
, in bytes. - The length of an ed25519
PublicKey
, in bytes. - The length of a ed25519
SecretKey
, in bytes. - Suite string as defined by https://tools.ietf.org/id/draft-irtf-cfrg-vrf-07.html#suites
- Strings combined with inputs to the hash function for domain separation, as discussed in https://tools.ietf.org/id/draft-irtf-cfrg-vrf-07.html#rfc.section.7.7