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 MakeSignedProposal(options ...func(*model.SignedProposal)) *model.SignedProposal
 - func MakeTC(options ...func(*flow.TimeoutCertificate)) *flow.TimeoutCertificate
 - func MakeWeightedSignatureAggregator(sigWeight uint64) *mocks.WeightedSignatureAggregator
 - func SignedProposalToFlow(proposal *model.SignedProposal) *flow.ProposalHeader
 - 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 WithProposal(proposal *model.Proposal) func(*model.SignedProposal)
 - 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.SignedProposal)
 - 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 MakeSignedProposal ¶ added in v0.38.0
func MakeSignedProposal(options ...func(*model.SignedProposal)) *model.SignedProposal
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 SignedProposalToFlow ¶ added in v0.38.0
func SignedProposalToFlow(proposal *model.SignedProposal) *flow.ProposalHeader
SignedProposalToFlow turns a HotStuff block proposal into a flow block proposal.
CAUTION: This function is only suitable for TESTING purposes ONLY. In the conversion from `flow.Header` to HotStuff's `model.Block` we lose information (e.g. `ChainID` and `Height` are not included in `model.Block`) and hence the conversion is *not reversible*. This is on purpose, because we wanted to only expose data to HotStuff that HotStuff really needs.
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 WithProposal ¶ added in v0.38.0
func WithProposal(proposal *model.Proposal) func(*model.SignedProposal)
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.SignedProposal)
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.