share

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingTest added in v0.3.0

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 added in v0.3.0

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

func (*EncodingTest) TestName added in v0.3.0

func (test *EncodingTest) TestName() string

type SpecTest added in v0.2.7

type SpecTest struct {
	Name string
	Data []byte
}

func HasPartialQuorum added in v0.2.7

func HasPartialQuorum() *SpecTest

HasPartialQuorum tests msg with unique f+1 signers

func HasPartialQuorum2f1 added in v0.2.7

func HasPartialQuorum2f1() *SpecTest

HasPartialQuorum2f1 tests msg with unique 2f+1 signers

func HasQuorum added in v0.2.7

func HasQuorum() *SpecTest

HasQuorum tests msg with unique 2f+1 signers

func HasQuorum3f1 added in v0.2.7

func HasQuorum3f1() *SpecTest

HasQuorum3f1 tests msg with unique 3f+1 signers

func NoPartialQuorum added in v0.2.7

func NoPartialQuorum() *SpecTest

NoPartialQuorum tests msg with < unique f+1 signers

func NoPartialQuorumDuplicate added in v0.2.7

func NoPartialQuorumDuplicate() *SpecTest

NoPartialQuorumDuplicate tests msg with < unique f+1 signers (but f+1 signers including duplicates)

func NoQuorum added in v0.2.7

func NoQuorum() *SpecTest

NoQuorum tests msg with < unique 2f+1 signers

func NoQuorumDuplicate added in v0.2.7

func NoQuorumDuplicate() *SpecTest

NoQuorumDuplicate tests msg with < unique 2f+1 signers (but 2f+1 signers including duplicates)

func PartialQuorumWithDuplicate added in v0.2.7

func PartialQuorumWithDuplicate() *SpecTest

PartialQuorumWithDuplicate tests msg with unique f+1 signers (but also including duplicates)

func QuorumWithDuplicate added in v0.2.7

func QuorumWithDuplicate() *SpecTest

QuorumWithDuplicate tests msg with unique 2f+1 signers (but also including duplicates)

func (*SpecTest) Run added in v0.2.7

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

func (*SpecTest) TestName added in v0.2.7

func (test *SpecTest) TestName() string

Jump to

Keyboard shortcuts

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