Versions in this module Expand all Collapse all v1 v1.0.2 Aug 16, 2022 v1.0.1 Aug 8, 2022 Changes in this version + const PrivateKeySize + const ProofSize + const PublicKeySize + const Size + var ErrGetPubKey = errors.New("[vrf] Couldn't get corresponding public-key from private-key") + type PrivateKey []byte + func GenerateKey(rnd io.Reader) (sk PrivateKey, err error) + func (sk PrivateKey) Compute(m []byte) []byte + func (sk PrivateKey) Prove(m []byte, randSrc bool) (vrf, proof []byte) + func (sk PrivateKey) Public() (PublicKey, bool) + type PublicKey []byte + func (pkBytes PublicKey) Verify(m, vrfBytes, proof []byte) bool