Versions in this module Expand all Collapse all v0 v0.0.1 Dec 14, 2021 Changes in this version + const PrivateKeySize + const ProofSize + const PublicKeySize + type PrivateKey struct + func GenerateKey(rnd io.Reader) (sk *PrivateKey, err error) + func NewPrivateKey(skBytes []byte) (sk *PrivateKey, err error) + func (sk *PrivateKey) Bytes() []byte + func (sk *PrivateKey) Prove(message []byte) (vrf, proof []byte, err error) + func (sk *PrivateKey) Public() (*PublicKey, error) + type PublicKey struct + func NewPublicKey(pkBytes []byte) (*PublicKey, error) + func (pk *PublicKey) Bytes() []byte + func (pk *PublicKey) Verify(message, proof []byte) (verified bool, vrf []byte, err error)