partialsigmessage

package
v0.0.0-...-0b52aac Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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

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

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 PartialRootValid

func PartialRootValid() *MsgSpecTest

PartialRootValid tests PostConsensusMessage root == 32 bytes

func PartialSigValid

func PartialSigValid() *MsgSpecTest

PartialSigValid tests PostConsensusMessage 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) GetPostState

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

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