Documentation ¶ Index ¶ func NewKeyPair() (PrivateKey, PublicKey, error) type PrivateKey type PublicKey Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewKeyPair ¶ func NewKeyPair() (PrivateKey, PublicKey, error) Types ¶ type PrivateKey ¶ type PrivateKey interface { crypto.PrivKey // Evaluate returns the verifiable unpredictable function evaluated at m. Evaluate(m []byte) (value, proof []byte) } type PublicKey ¶ type PublicKey interface { crypto.PubKey // VerifyVRF asserts that proof is correct for m and outputs index. VerifyVRF(m, proof, value []byte) error } Source Files ¶ View all Source files interface.go Click to show internal directories. Click to hide internal directories.