signedssvmsg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 7 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
}

func Encoding

func Encoding() *EncodingTest

Encoding tests encoding of a SignedSSVMessage

func (*EncodingTest) Run

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

func (*EncodingTest) TestName

func (test *EncodingTest) TestName() string

type SignedSSVMessageTest

type SignedSSVMessageTest struct {
	Name          string
	Messages      []*types.SignedSSVMessage
	ExpectedError string
	RSAPublicKey  [][]byte
}

func EmptySignature

func EmptySignature() *SignedSSVMessageTest

EmptySignature tests an invalid SignedSSVMessageTest with empty signature

func NilSSVMessage added in v1.0.0

func NilSSVMessage() *SignedSSVMessageTest

NilSSVMessage tests an invalid SignedSSVMessageTest with nil SSVMessage

func NoSignatures added in v1.0.0

func NoSignatures() *SignedSSVMessageTest

NoSignatures tests an invalid SignedSSVMessageTest with no signatures

func NoSigners added in v1.0.0

func NoSigners() *SignedSSVMessageTest

NoSigners tests an invalid SignedSSVMessageTest with no signers

func NonUniqueSigner added in v1.0.0

func NonUniqueSigner() *SignedSSVMessageTest

NonUniqueSigner tests an invalid SignedSSVMessageTest with non unique signers

func SignersAndSignaturesWithDifferentLength added in v1.0.0

func SignersAndSignaturesWithDifferentLength() *SignedSSVMessageTest

SignersAndSignaturesWithDifferentLength tests an invalid SignedSSVMessageTest with len(signers) != len(signatures)

func Valid

func Valid() *SignedSSVMessageTest

Valid tests a valid SignedSSVMessageTest

func ZeroSigner

func ZeroSigner() *SignedSSVMessageTest

ZeroSigner tests an invalid SignedSSVMessageTest with zero signer

func (*SignedSSVMessageTest) Run

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

func (*SignedSSVMessageTest) TestName

func (test *SignedSSVMessageTest) TestName() string

Jump to

Keyboard shortcuts

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