commons

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateShare

func CreateShare(operators [][]byte) (*beacon.Share, map[uint64]*bls.SecretKey, error)

CreateShare creates a new beacon.Share

func CreateShareAndValidators

func CreateShareAndValidators(ctx context.Context, logger *zap.Logger, net *p2pv1.LocalNet, kms []spectypes.KeyManager, stores []qbftstorage.QBFTStore) (*beacon.Share, map[uint64]*bls.SecretKey, []validator.IValidator, error)

CreateShareAndValidators creates a share and the corresponding validators objects

func NewTestKeyManager added in v0.3.0

func NewTestKeyManager() spectypes.KeyManager

NewTestKeyManager creates a new signer for tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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