crypto

package
v0.0.0-...-77b6ffe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL