helper

package
v0.33.27-find-trie-root Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: AGPL-3.0 Imports: 12 Imported by: 1

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 added in v0.23.9

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

func MakeQC

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

func MakeRandomBeaconReconstructor added in v0.23.9

func MakeRandomBeaconReconstructor(minRequiredShares int) *mocks.RandomBeaconReconstructor

func MakeTC added in v0.29.0

func MakeTC(options ...func(*flow.TimeoutCertificate)) *flow.TimeoutCertificate

func MakeWeightedSignatureAggregator added in v0.23.9

func MakeWeightedSignatureAggregator(sigWeight uint64) *mocks.WeightedSignatureAggregator

func TimeoutObjectFixture added in v0.29.0

func TimeoutObjectFixture(opts ...func(TimeoutObject *hotstuff.TimeoutObject)) *hotstuff.TimeoutObject

func WithBlock added in v0.23.9

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

func WithBlockProposer

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

func WithBlockQC added in v0.29.0

func WithBlockQC(qc *flow.QuorumCertificate) func(*model.Block)

func WithBlockView

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

func WithLastViewTC added in v0.29.0

func WithLastViewTC(lastViewTC *flow.TimeoutCertificate) func(*model.Proposal)

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 added in v0.23.9

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

func WithTCHighQCViews added in v0.29.0

func WithTCHighQCViews(highQCViews []uint64) func(*flow.TimeoutCertificate)

func WithTCNewestQC added in v0.29.0

func WithTCNewestQC(qc *flow.QuorumCertificate) func(*flow.TimeoutCertificate)

func WithTCSigners added in v0.29.0

func WithTCSigners(signerIndices []byte) func(*flow.TimeoutCertificate)

func WithTCView added in v0.29.0

func WithTCView(view uint64) func(*flow.TimeoutCertificate)

func WithTimeoutLastViewTC added in v0.29.0

func WithTimeoutLastViewTC(lastViewTC *flow.TimeoutCertificate) func(*hotstuff.TimeoutObject)

func WithTimeoutNewestQC added in v0.29.0

func WithTimeoutNewestQC(newestQC *flow.QuorumCertificate) func(*hotstuff.TimeoutObject)

func WithTimeoutObjectSignerID added in v0.29.0

func WithTimeoutObjectSignerID(signerID flow.Identifier) func(*hotstuff.TimeoutObject)

func WithTimeoutObjectView added in v0.29.0

func WithTimeoutObjectView(view uint64) func(*hotstuff.TimeoutObject)

Types

This section is empty.

Jump to

Keyboard shortcuts

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