Documentation ¶
Index ¶
- Variables
- func AuthorizeMsg(share *beacon.Share) pipelines.SignedMessagePipeline
- func BasicMsgValidation() pipelines.SignedMessagePipeline
- func HasQuorum(share *beacon.Share, msgs []*specqbft.SignedMessage) (quorum bool, t int, n int)
- func MsgTypeCheck(msgType specqbft.MessageType) pipelines.SignedMessagePipeline
- func ProposalExists(state *qbft.State) pipelines.SignedMessagePipeline
- func ValidateIdentifiers(identifier []byte) pipelines.SignedMessagePipeline
- func ValidateQuorum(threshold int) pipelines.SignedMessagePipeline
- func ValidateRound(round specqbft.Round) pipelines.SignedMessagePipeline
- func ValidateSequenceNumber(height specqbft.Height) pipelines.SignedMessagePipeline
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongRound = fmt.Errorf("round is wrong")
ErrWrongRound is returned when round is wrong.
Functions ¶
func AuthorizeMsg ¶
func AuthorizeMsg(share *beacon.Share) pipelines.SignedMessagePipeline
AuthorizeMsg is the pipeline to authorize message
func BasicMsgValidation ¶
func BasicMsgValidation() pipelines.SignedMessagePipeline
BasicMsgValidation is the pipeline to validate basic params in a signed message
func MsgTypeCheck ¶
func MsgTypeCheck(msgType specqbft.MessageType) pipelines.SignedMessagePipeline
MsgTypeCheck is the pipeline to check message type
func ProposalExists ¶ added in v0.3.2
func ProposalExists(state *qbft.State) pipelines.SignedMessagePipeline
ProposalExists checks if proposal for current was received.
func ValidateIdentifiers ¶ added in v0.3.2
func ValidateIdentifiers(identifier []byte) pipelines.SignedMessagePipeline
ValidateIdentifiers validates current and previous identifiers
func ValidateQuorum ¶
func ValidateQuorum(threshold int) pipelines.SignedMessagePipeline
ValidateQuorum is the pipeline to validate msg quorum requirement
func ValidateRound ¶
func ValidateRound(round specqbft.Round) pipelines.SignedMessagePipeline
ValidateRound validates round
func ValidateSequenceNumber ¶
func ValidateSequenceNumber(height specqbft.Height) pipelines.SignedMessagePipeline
ValidateSequenceNumber validates msg seq number
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.