helper

package
v0.29.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBLSKey

func MakeBLSKey(t *testing.T) crypto.PrivateKey

func MakeBlock

func MakeBlock(options ...func(*model.Block)) *model.Block

func MakeProposal

func MakeProposal(options ...func(*model.Proposal)) *model.Proposal

func MakeQC

func MakeQC(options ...func(*flow.QuorumCertificate)) *flow.QuorumCertificate

func MakeRandomBeaconReconstructor

func MakeRandomBeaconReconstructor(minRequiredShares int) *mocks.RandomBeaconReconstructor

func MakeWeightedSignatureAggregator

func MakeWeightedSignatureAggregator(sigWeight uint64) *mocks.WeightedSignatureAggregator

func WithBlock

func WithBlock(block *model.Block) func(*model.Proposal)

func WithBlockProposer

func WithBlockProposer(proposerID flow.Identifier) func(*model.Block)

func WithBlockView

func WithBlockView(view uint64) func(*model.Block)

func WithParentBlock

func WithParentBlock(parent *model.Block) func(*model.Block)

func WithParentSigners

func WithParentSigners(signerIndices []byte) func(*model.Block)

func WithQCBlock

func WithQCBlock(block *model.Block) func(*flow.QuorumCertificate)

func WithQCSigners

func WithQCSigners(signerIndices []byte) func(*flow.QuorumCertificate)

func WithQCView

func WithQCView(view uint64) func(*flow.QuorumCertificate)

func WithSigData

func WithSigData(sigData []byte) func(*model.Proposal)

Types

This section is empty.

Jump to

Keyboard shortcuts

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