messages

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodingAndRoot added in v0.2.7

func EncodingAndRoot() tests.SpecTest

EncodingAndRoot tests SignedPartialSignatureMessage encoding + root

func InvalidMsg added in v0.2.7

func InvalidMsg() tests.SpecTest

InvalidMsg tests a signed msg with 1 invalid message

func MessageSigner0 added in v0.2.7

func MessageSigner0() tests.SpecTest

MessageSigner0 tests PartialSignatureMessage signer == 0

func NoMsgs

func NoMsgs() tests.SpecTest

NoMsgs tests a signed msg with no msgs

func PartialRootValid added in v0.2.7

func PartialRootValid() tests.SpecTest

PartialRootValid tests PostConsensusMessage root == 32 bytes

func PartialSigValid added in v0.2.7

func PartialSigValid() tests.SpecTest

PartialSigValid tests PostConsensusMessage sig == 96 bytes

func SigValid added in v0.2.7

func SigValid() tests.SpecTest

SigValid tests SignedPostConsensusMessage sig == 96 bytes

func SignedMsgSigner0 added in v0.2.7

func SignedMsgSigner0() tests.SpecTest

SignedMsgSigner0 tests SignedPartialSignatureMessage signer == 0

func ValidContributionProofMetaData added in v0.2.7

func ValidContributionProofMetaData() tests.SpecTest

ValidContributionProofMetaData tests a PartialSignatureMessage for contribution proof metadata valid

Types

type MsgSpecTest added in v0.2.7

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

func (*MsgSpecTest) GetPostState added in v0.3.1

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

func (*MsgSpecTest) Run added in v0.2.7

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

func (*MsgSpecTest) TestName added in v0.2.7

func (test *MsgSpecTest) TestName() string

Jump to

Keyboard shortcuts

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