github.com/koko1123/flow-go-1@v0.29.6/consensus/hotstuff/signer.go (about) 1 package hotstuff 2 3 import ( 4 "github.com/koko1123/flow-go-1/consensus/hotstuff/model" 5 ) 6 7 // Signer is responsible for creating votes, proposals for a given block. 8 type Signer interface { 9 // CreateProposal creates a proposal for the given block. No error returns 10 // are expected during normal operations (incl. presence of byz. actors). 11 CreateProposal(block *model.Block) (*model.Proposal, error) 12 13 // CreateVote creates a vote for the given block. No error returns are 14 // expected during normal operations (incl. presence of byz. actors). 15 CreateVote(block *model.Block) (*model.Vote, error) 16 }