partialsigmessage

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingTest

type EncodingTest struct {
	Name         string
	Data         []byte
	ExpectedRoot [32]byte
}

func Encoding

func Encoding() *EncodingTest

Encoding tests encoding of a ssv message

func (*EncodingTest) Run

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

func (*EncodingTest) TestName

func (test *EncodingTest) TestName() string

type MsgSpecTest added in v0.3.5

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

func InconsistentSignedMessage

func InconsistentSignedMessage() *MsgSpecTest

InconsistentSignedMessage tests SignedPartialSignatureMessage where the signer is not the same as the signer in messages

func InvalidMsg added in v0.3.5

func InvalidMsg() *MsgSpecTest

InvalidMsg tests a signed msg with 1 invalid message

func MessageSigner0 added in v0.3.5

func MessageSigner0() *MsgSpecTest

MessageSigner0 tests PartialSignatureMessage signer == 0

func NoMsgs added in v0.3.5

func NoMsgs() *MsgSpecTest

NoMsgs tests a signed msg with no msgs

func PartialRootValid added in v0.3.5

func PartialRootValid() *MsgSpecTest

PartialRootValid tests PostConsensusMessage root == 32 bytes

func PartialSigValid added in v0.3.5

func PartialSigValid() *MsgSpecTest

PartialSigValid tests PostConsensusMessage sig == 96 bytes

func SigValid added in v0.3.5

func SigValid() *MsgSpecTest

SigValid tests SignedPostConsensusMessage sig == 96 bytes

func SignedMsgSigner0 added in v0.3.5

func SignedMsgSigner0() *MsgSpecTest

SignedMsgSigner0 tests SignedPartialSignatureMessage signer == 0

func ValidContributionProofMetaData added in v0.3.5

func ValidContributionProofMetaData() *MsgSpecTest

ValidContributionProofMetaData tests a PartialSignatureMessage for contribution proof metadata valid

func (*MsgSpecTest) GetPostState added in v0.3.5

func (tests *MsgSpecTest) GetPostState() (interface{}, error)

func (*MsgSpecTest) Run added in v0.3.5

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

func (*MsgSpecTest) TestName added in v0.3.5

func (test *MsgSpecTest) TestName() string

Jump to

Keyboard shortcuts

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