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, 2024 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitDataEncoding

func CommitDataEncoding() tests.SpecTest

CommitDataEncoding tests encoding CommitData

func CreateCommit

func CreateCommit() tests.SpecTest

CreateCommit tests creating a commit msg

func CreatePrepare

func CreatePrepare() tests.SpecTest

CreatePrepare tests creating a prepare msg

func CreateProposal

func CreateProposal() tests.SpecTest

CreateProposal tests creating a proposal msg, not previously prepared

func CreateProposalNotPreviouslyPrepared

func CreateProposalNotPreviouslyPrepared() tests.SpecTest

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

func CreateProposalPreviouslyPrepared

func CreateProposalPreviouslyPrepared() tests.SpecTest

CreateProposalPreviouslyPrepared tests creating a proposal msg,previously prepared

func CreateRoundChange

func CreateRoundChange() tests.SpecTest

CreateRoundChange tests creating a round change msg, not previously prepared

func CreateRoundChangeNoJustificationQuorum added in v0.3.1

func CreateRoundChangeNoJustificationQuorum() tests.SpecTest

CreateRoundChangeNoJustificationQuorum tests creating a round change msg that was previouly prepared but failed to extract a justification quorum (shouldn't happen). The result should be an unjustified round change.

func CreateRoundChangeNoJustificationQuorumSC added in v0.3.1

func CreateRoundChangeNoJustificationQuorumSC() *comparable.StateComparison

func CreateRoundChangePreviouslyPrepared

func CreateRoundChangePreviouslyPrepared() tests.SpecTest

CreateRoundChangePreviouslyPrepared tests creating a round change msg,previously prepared

func GetRoot

func GetRoot() tests.SpecTest

GetRoot tests GetRoot on SignedMessage

func InvalidHashDataRoot added in v0.3.0

func InvalidHashDataRoot() tests.SpecTest

InvalidHashDataRoot tests an invalid hash data root

func InvalidPrepareJustificationsUnmarshalling added in v0.3.0

func InvalidPrepareJustificationsUnmarshalling() tests.SpecTest

InvalidPrepareJustificationsUnmarshalling tests unmarshalling invalid prepare justifications (during message.validate())

func InvalidRoundChangeJustificationsUnmarshalling added in v0.3.0

func InvalidRoundChangeJustificationsUnmarshalling() tests.SpecTest

InvalidRoundChangeJustificationsUnmarshalling tests unmarshalling invalid round change justifications (during message.validate())

func MarshalJustifications added in v0.3.1

func MarshalJustifications() tests.SpecTest

MarshalJustifications tests marshalling justifications

func MarshalJustificationsWithFullData added in v0.3.1

func MarshalJustificationsWithFullData() tests.SpecTest

MarshalJustificationsWithFullData tests marshalling justifications with full data (should omit it)

func MarshalJustificationsWithoutFullData added in v0.3.1

func MarshalJustificationsWithoutFullData() tests.SpecTest

MarshalJustificationsWithoutFullData tests marshalling justifications without full data.

func MsgNilIdentifier

func MsgNilIdentifier() tests.SpecTest

MsgNilIdentifier tests Message with Identifier == nil

func MsgNonZeroIdentifier

func MsgNonZeroIdentifier() tests.SpecTest

MsgNonZeroIdentifier tests Message with len(Identifier) == 0

func MsgTypeUnknown

func MsgTypeUnknown() tests.SpecTest

MsgTypeUnknown tests Message type > 5

func PrepareDataEncoding

func PrepareDataEncoding() tests.SpecTest

PrepareDataEncoding tests encoding PrepareData

func PrepareJustificationsUnmarshalling added in v0.3.0

func PrepareJustificationsUnmarshalling() tests.SpecTest

PrepareJustificationsUnmarshalling tests unmarshalling prepare justifications

func ProposeDataEncoding

func ProposeDataEncoding() tests.SpecTest

ProposeDataEncoding tests encoding ProposalData

func RoundChangeDataEncoding

func RoundChangeDataEncoding() tests.SpecTest

RoundChangeDataEncoding tests encoding RoundChangeData

func RoundChangeJustificationsUnmarshalling added in v0.3.0

func RoundChangeJustificationsUnmarshalling() tests.SpecTest

RoundChangeJustificationsUnmarshalling tests unmarshalling round change justifications

func RoundChangeNotPreparedJustifications

func RoundChangeNotPreparedJustifications() tests.SpecTest

RoundChangeNotPreparedJustifications tests valid justified change round (not prev prepared)

func RoundChangePrePreparedJustifications

func RoundChangePrePreparedJustifications() tests.SpecTest

RoundChangePrePreparedJustifications tests valid justified change round (prev prepared)

func RoundChangePrepared added in v0.3.0

func RoundChangePrepared() tests.SpecTest

RoundChangePrepared tests a round change prepared return value

func SSZMarshaling added in v0.3.0

func SSZMarshaling() tests.SpecTest

SSZMarshaling tests a valid marshaling of a signed message

func SignedMessageEncoding

func SignedMessageEncoding() tests.SpecTest

SignedMessageEncoding tests encoding SignedMessage

func SignedMessageSigner0 added in v0.2.7

func SignedMessageSigner0() tests.SpecTest

SignedMessageSigner0 tests SignedMessage signer == 0

func SignedMsgDuplicateSigners added in v0.2.7

func SignedMsgDuplicateSigners() tests.SpecTest

SignedMsgDuplicateSigners tests SignedMessage with duplicate signers

func SignedMsgMultiSigners added in v0.2.7

func SignedMsgMultiSigners() tests.SpecTest

SignedMsgMultiSigners tests SignedMessage with multi signers

func SignedMsgNoSigners

func SignedMsgNoSigners() tests.SpecTest

SignedMsgNoSigners tests SignedMessage len(signers) == 0

func UnmarshalJustifications added in v0.3.1

func UnmarshalJustifications() tests.SpecTest

UnmarshalJustifications tests unmarshalling justifications

func ValidHashDataRoot added in v0.3.0

func ValidHashDataRoot() tests.SpecTest

ValidHashDataRoot tests a valid hash data root

Types

This section is empty.

Jump to

Keyboard shortcuts

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