commons

package
v0.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: GPL-3.0 Imports: 18 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 []beacon.KeyManager, stores []qbftstorage.QBFTStore) (*beacon.Share, map[uint64]*bls.SecretKey, []validator.IValidator, error)

CreateShareAndValidators creates a share and the corresponding validators objects

func NewTestSigner

func NewTestSigner() beacon.KeyManager

NewTestSigner 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