share

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpecTest

type SpecTest struct {
	Name string
	Data []byte
}

func Encoding

func Encoding() *SpecTest

Encoding tests encoding of a ssv message

func HasPartialQuorum

func HasPartialQuorum() *SpecTest

HasPartialQuorum tests msg with unique f+1 signers

func HasPartialQuorum2f1

func HasPartialQuorum2f1() *SpecTest

HasPartialQuorum2f1 tests msg with unique 2f+1 signers

func HasQuorum

func HasQuorum() *SpecTest

HasQuorum tests msg with unique 2f+1 signers

func HasQuorum3f1

func HasQuorum3f1() *SpecTest

HasQuorum3f1 tests msg with unique 3f+1 signers

func NoPartialQuorum

func NoPartialQuorum() *SpecTest

NoPartialQuorum tests msg with < unique f+1 signers

func NoPartialQuorumDuplicate

func NoPartialQuorumDuplicate() *SpecTest

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

func NoQuorum

func NoQuorum() *SpecTest

NoQuorum tests msg with < unique 2f+1 signers

func NoQuorumDuplicate

func NoQuorumDuplicate() *SpecTest

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

func PartialQuorumWithDuplicate

func PartialQuorumWithDuplicate() *SpecTest

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

func QuorumWithDuplicate

func QuorumWithDuplicate() *SpecTest

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

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