messages

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgSpecTest

type MsgSpecTest struct {
	Name            string
	Messages        []*ssv.SignedPartialSignatureMessage
	EncodedMessages [][]byte
	ExpectedRoots   [][]byte
	ExpectedError   string
}

func EncodingAndRoot

func EncodingAndRoot() *MsgSpecTest

EncodingAndRoot tests SignedPartialSignatureMessage encoding + root

func InvalidMsg

func InvalidMsg() *MsgSpecTest

InvalidMsg tests a signed msg with 1 invalid message

func MessageSigner0

func MessageSigner0() *MsgSpecTest

MessageSigner0 tests PartialSignatureMessage signer == 0

func NoMsgs

func NoMsgs() *MsgSpecTest

NoMsgs tests a signed msg with no msgs

func PartialRootTooLong

func PartialRootTooLong() *MsgSpecTest

PartialRootTooLong tests PostConsensusMessage root > 32 bytes

func PartialRootTooShort

func PartialRootTooShort() *MsgSpecTest

PartialRootTooShort tests PostConsensusMessage root < 32 bytes

func PartialRootValid

func PartialRootValid() *MsgSpecTest

PartialRootValid tests PostConsensusMessage root == 32 bytes

func PartialSigTooLong

func PartialSigTooLong() *MsgSpecTest

PartialSigTooLong tests PostConsensusMessage sig > 96 bytes

func PartialSigTooShort

func PartialSigTooShort() *MsgSpecTest

PartialSigTooShort tests PostConsensusMessage sig < 96 bytes

func PartialSigValid

func PartialSigValid() *MsgSpecTest

PartialSigValid tests PostConsensusMessage sig == 96 bytes

func SigTooLong

func SigTooLong() *MsgSpecTest

SigTooLong tests SignedPostConsensusMessage sig > 96 bytes

func SigTooShort

func SigTooShort() *MsgSpecTest

SigTooShort tests SignedPostConsensusMessage sig < 96 bytes

func SigValid

func SigValid() *MsgSpecTest

SigValid tests SignedPostConsensusMessage sig == 96 bytes

func SignedMsgSigner0

func SignedMsgSigner0() *MsgSpecTest

SignedMsgSigner0 tests SignedPartialSignatureMessage signer == 0

func ValidContributionProofMetaData

func ValidContributionProofMetaData() *MsgSpecTest

ValidContributionProofMetaData tests a PartialSignatureMessage for contribution proof metadata valid

func (*MsgSpecTest) Run

func (test *MsgSpecTest) Run(t *testing.T)

func (*MsgSpecTest) TestName

func (test *MsgSpecTest) TestName() string

Jump to

Keyboard shortcuts

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