signedmsg

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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

func HasQuorum(share *beacon.Share, msgs []*specqbft.SignedMessage) (quorum bool, t int, n int)

HasQuorum checks if messages have a quorum.

func MsgTypeCheck

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.

Jump to

Keyboard shortcuts

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