share

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: 6 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 ShareTest

type ShareTest struct {
	Name                  string
	Share                 types.Share
	Message               types.SignedSSVMessage
	ExpectedHasQuorum     bool
	ExpectedFullCommittee bool
	ExpectedError         string
}

func (*ShareTest) GetUniqueMessageSignersCount

func (test *ShareTest) GetUniqueMessageSignersCount() int

Returns the number of unique signers in the message signers list

func (*ShareTest) Run

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

func (*ShareTest) TestName

func (test *ShareTest) TestName() string

Jump to

Keyboard shortcuts

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