key

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keys

type Keys struct {
	BLSPubKey      *bls.PublicKey
	BLSPubKeyBytes []byte
	BLSSecretKey   *bls.SecretKey
}

Keys are the keys used during consensus.

func NewKeysFromBytes

func NewKeysFromBytes(seed []byte) (Keys, error)

NewKeysFromBytes gets an array of bytes as seed for the pseudo-random generation of Keys.

func NewKeysFromReader

func NewKeysFromReader(r io.Reader) (Keys, error)

NewKeysFromReader takes a reader and uses it as a seed for generating random Keys.

func NewRandKeys

func NewRandKeys() (Keys, error)

NewRandKeys will generate and return new bls and ed25519 keys to be used in consensus.

Jump to

Keyboard shortcuts

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