messages

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitDataEncoding

func CommitDataEncoding() *tests.MsgSpecTest

CommitDataEncoding tests encoding CommitData

func CommitDataInvalid

func CommitDataInvalid() *tests.MsgSpecTest

CommitDataInvalid tests commit data len == 0

func CreateCommit

func CreateCommit() *tests.CreateMsgSpecTest

CreateCommit tests creating a commit msg

func CreatePrepare

func CreatePrepare() *tests.CreateMsgSpecTest

CreatePrepare tests creating a prepare msg

func CreateProposal

func CreateProposal() *tests.CreateMsgSpecTest

CreateProposal tests creating a proposal msg, not previously prepared

func CreateProposalNotPreviouslyPrepared

func CreateProposalNotPreviouslyPrepared() *tests.CreateMsgSpecTest

CreateProposalNotPreviouslyPrepared tests creating a proposal msg, non-first round and not previously prepared

func CreateProposalPreviouslyPrepared

func CreateProposalPreviouslyPrepared() *tests.CreateMsgSpecTest

CreateProposalPreviouslyPrepared tests creating a proposal msg,previously prepared

func CreateRoundChange

func CreateRoundChange() *tests.CreateMsgSpecTest

CreateRoundChange tests creating a round change msg, not previously prepared

func CreateRoundChangePreviouslyPrepared

func CreateRoundChangePreviouslyPrepared() *tests.CreateMsgSpecTest

CreateRoundChangePreviouslyPrepared tests creating a round change msg,previously prepared

func GetRoot

func GetRoot() *tests.MsgSpecTest

GetRoot tests GetRoot on SignedMessage

func MsgDataNil

func MsgDataNil() *tests.MsgSpecTest

MsgDataNil tests data == nil

func MsgDataNonZero

func MsgDataNonZero() *tests.MsgSpecTest

MsgDataNonZero tests len(data) == 0

func MsgNilIdentifier

func MsgNilIdentifier() *tests.MsgSpecTest

MsgNilIdentifier tests Message with Identifier == nil

func MsgNonZeroIdentifier

func MsgNonZeroIdentifier() *tests.MsgSpecTest

MsgNonZeroIdentifier tests Message with len(Identifier) == 0

func MsgTypeUnknown

func MsgTypeUnknown() *tests.MsgSpecTest

MsgTypeUnknown tests Message type > 5

func PrepareDataEncoding

func PrepareDataEncoding() *tests.MsgSpecTest

PrepareDataEncoding tests encoding PrepareData

func PrepareDataInvalid

func PrepareDataInvalid() *tests.MsgSpecTest

PrepareDataInvalid tests prepare data len == 0

func ProposalDataInvalid

func ProposalDataInvalid() *tests.MsgSpecTest

ProposalDataInvalid tests proposal data len == 0

func ProposeDataEncoding

func ProposeDataEncoding() *tests.MsgSpecTest

ProposeDataEncoding tests encoding ProposalData

func RoundChangeDataEncoding

func RoundChangeDataEncoding() *tests.MsgSpecTest

RoundChangeDataEncoding tests encoding RoundChangeData

func RoundChangeDataInvalidJustifications

func RoundChangeDataInvalidJustifications() *tests.MsgSpecTest

RoundChangeDataInvalidJustifications tests PreparedRound != NoRound len(RoundChangeJustification) == 0

func RoundChangeDataInvalidPreparedRound

func RoundChangeDataInvalidPreparedRound() *tests.MsgSpecTest

RoundChangeDataInvalidPreparedRound tests PreparedValue != nil && PreparedRound == NoRound

func RoundChangeDataInvalidPreparedValue

func RoundChangeDataInvalidPreparedValue() *tests.MsgSpecTest

RoundChangeDataInvalidPreparedValue tests PreparedRound != NoRound && PreparedValue == nil

func RoundChangeNotPreparedJustifications

func RoundChangeNotPreparedJustifications() *tests.MsgSpecTest

RoundChangeNotPreparedJustifications tests valid justified change round (not prev prepared)

func RoundChangePrePreparedJustifications

func RoundChangePrePreparedJustifications() *tests.MsgSpecTest

RoundChangePrePreparedJustifications tests valid justified change round (prev prepared)

func SignedMessageEncoding

func SignedMessageEncoding() *tests.MsgSpecTest

SignedMessageEncoding tests encoding SignedMessage

func SignedMessageSigner0

func SignedMessageSigner0() *tests.MsgSpecTest

SignedMessageSigner0 tests SignedMessage signer == 0

func SignedMsgDuplicateSigners

func SignedMsgDuplicateSigners() *tests.MsgSpecTest

SignedMsgDuplicateSigners tests SignedMessage with duplicate signers

func SignedMsgMultiSigners

func SignedMsgMultiSigners() *tests.MsgSpecTest

SignedMsgMultiSigners tests SignedMessage with multi signers

func SignedMsgNoSigners

func SignedMsgNoSigners() *tests.MsgSpecTest

SignedMsgNoSigners tests SignedMessage len(signers) == 0

func SignedMsgSigTooLong

func SignedMsgSigTooLong() *tests.MsgSpecTest

SignedMsgSigTooLong tests SignedMessage len(signature) > 96

func SignedMsgSigTooShort

func SignedMsgSigTooShort() *tests.MsgSpecTest

SignedMsgSigTooShort tests SignedMessage len(signature) < 96

Types

This section is empty.

Jump to

Keyboard shortcuts

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