Documentation ¶
Index ¶
- func MakeBLSKey(t *testing.T) crypto.PrivateKey
- func MakeBlock(options ...func(*model.Block)) *model.Block
- func MakeProposal(options ...func(*model.Proposal)) *model.Proposal
- func MakeQC(options ...func(*flow.QuorumCertificate)) *flow.QuorumCertificate
- func MakeRandomBeaconReconstructor(minRequiredShares int) *mocks.RandomBeaconReconstructor
- func MakeTC(options ...func(*flow.TimeoutCertificate)) *flow.TimeoutCertificate
- func MakeWeightedSignatureAggregator(sigWeight uint64) *mocks.WeightedSignatureAggregator
- func TimeoutObjectFixture(opts ...func(TimeoutObject *hotstuff.TimeoutObject)) *hotstuff.TimeoutObject
- func WithBlock(block *model.Block) func(*model.Proposal)
- func WithBlockProposer(proposerID flow.Identifier) func(*model.Block)
- func WithBlockQC(qc *flow.QuorumCertificate) func(*model.Block)
- func WithBlockView(view uint64) func(*model.Block)
- func WithLastViewTC(lastViewTC *flow.TimeoutCertificate) func(*model.Proposal)
- func WithParentBlock(parent *model.Block) func(*model.Block)
- func WithParentSigners(signerIndices []byte) func(*model.Block)
- func WithQCBlock(block *model.Block) func(*flow.QuorumCertificate)
- func WithQCSigners(signerIndices []byte) func(*flow.QuorumCertificate)
- func WithQCView(view uint64) func(*flow.QuorumCertificate)
- func WithSigData(sigData []byte) func(*model.Proposal)
- func WithTCHighQCViews(highQCViews []uint64) func(*flow.TimeoutCertificate)
- func WithTCNewestQC(qc *flow.QuorumCertificate) func(*flow.TimeoutCertificate)
- func WithTCSigners(signerIndices []byte) func(*flow.TimeoutCertificate)
- func WithTCView(view uint64) func(*flow.TimeoutCertificate)
- func WithTimeoutLastViewTC(lastViewTC *flow.TimeoutCertificate) func(*hotstuff.TimeoutObject)
- func WithTimeoutNewestQC(newestQC *flow.QuorumCertificate) func(*hotstuff.TimeoutObject)
- func WithTimeoutObjectSignerID(signerID flow.Identifier) func(*hotstuff.TimeoutObject)
- func WithTimeoutObjectView(view uint64) func(*hotstuff.TimeoutObject)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeBLSKey ¶
func MakeBLSKey(t *testing.T) crypto.PrivateKey
func MakeProposal ¶ added in v0.23.9
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 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 WithLastViewTC ¶ added in v0.29.0
func WithLastViewTC(lastViewTC *flow.TimeoutCertificate) func(*model.Proposal)
func WithParentSigners ¶
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 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.
Click to show internal directories.
Click to hide internal directories.