package
0.0.0-20220128085206-c2b07a99a9db
Repository: https://github.com/meshboxfoundation/meshbox.git
Documentation: pkg.go.dev

# Functions

GenerateKey generates a fresh keypair for this VRF.
H1 hashes m to a curve point.
H2 hashes to an integer [1,N-1].
NewVRFSigner creates a signer object from a private key.
NewVRFVerifier creates a verifier object from a public key.
Unmarshal a compressed point in the form specified in section 4.3.6 of ANSI X9.62.

# Variables

ErrInvalidVRF occurs when the VRF does not validate.
ErrNoPEMFound occurs when attempting to parse a non PEM data structure.
ErrPointNotOnCurve occurs when a public key is not on the curve.
ErrWrongKeyType occurs when a key is not an ECDSA key.

# Structs

PrivateKey holds a private VRF key.
PublicKey holds a public VRF key.

# Interfaces

PrivateKey supports evaluating the VRF function.
PublicKey supports verifying output from the VRF function.