partialsigmessage

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 4 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 SpecTest

type SpecTest struct {
	Name string
	Data []byte
}

func InconsistentSignedMessage

func InconsistentSignedMessage() SpecTest

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

func InvalidMessages

func InvalidMessages() SpecTest

InvalidMessages tests PartialSignatureMessages with > 0 invalid message

func NoPartialSignedMessages

func NoPartialSignedMessages() SpecTest

NoPartialSignedMessages tests PartialSignatureMessages with 0 sigs

func PartialSigSignerZero

func PartialSigSignerZero() SpecTest

PartialSigSignerZero tests signer ID 0

func SignerZero

func SignerZero() SpecTest

SignerZero tests SignedPartialSignatureMessage signer ID 0

func (*SpecTest) Run

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

func (*SpecTest) TestName

func (test *SpecTest) TestName() string

Jump to

Keyboard shortcuts

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