consensusdata

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 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.3.0

type SpecTest struct {
	Name string
	Data []byte
}

func AggregatorJustifications added in v0.3.1

func AggregatorJustifications() *SpecTest

AggregatorJustifications tests a valid consensus data with aggregator pre-consensus justifications

func AggregatorNoJustifications added in v0.3.1

func AggregatorNoJustifications() *SpecTest

AggregatorNoJustifications tests an invalid consensus data with no aggregator pre-consensus justifications

func AggregatorValidation added in v0.3.0

func AggregatorValidation() *SpecTest

AggregatorValidation tests a valid consensus data with AggregateAndProof

func AttestationValidation added in v0.3.0

func AttestationValidation() *SpecTest

AttestationValidation tests a valid consensus data with AttestationData

func AttesterJustifications added in v0.3.1

func AttesterJustifications() *SpecTest

AttesterJustifications tests an invalid consensus data with attester pre-consensus justifications

func AttesterNoValidation added in v0.3.1

func AttesterNoValidation() *SpecTest

AttesterNoValidation tests a valid attester consensus data with no pre-consensus justifications

func CapellaBlindedBlockValidation added in v0.3.0

func CapellaBlindedBlockValidation() *SpecTest

CapellaBlindedBlockValidation tests a valid consensus data with capella blinded block

func CapellaBlockValidation added in v0.3.0

func CapellaBlockValidation() *SpecTest

CapellaBlockValidation tests a valid consensus data with capella block

func ConsensusDataEncoding added in v0.3.1

func ConsensusDataEncoding() *SpecTest

ConsensusDataEncoding tests encoding and decoding ConsensusData for all duties

func ContributionsEncoding added in v0.3.1

func ContributionsEncoding() *SpecTest

ContributionsEncoding tests encoding and decoding contributions

func InvalidAggregatorValidation added in v0.3.0

func InvalidAggregatorValidation() *SpecTest

InvalidAggregatorValidation tests an invalid consensus data with AggregateAndProof

func InvalidAttestationValidation added in v0.3.0

func InvalidAttestationValidation() *SpecTest

InvalidAttestationValidation tests an invalid consensus data with AttestationData

func InvalidCapellaBlindedBlockValidation added in v0.3.0

func InvalidCapellaBlindedBlockValidation() *SpecTest

InvalidCapellaBlindedBlockValidation tests an invalid consensus data with capella blinded block

func InvalidCapellaBlockValidation added in v0.3.0

func InvalidCapellaBlockValidation() *SpecTest

InvalidCapellaBlockValidation tests an invalid consensus data with capella block

func InvalidSyncCommitteeBlockValidation added in v0.3.1

func InvalidSyncCommitteeBlockValidation() *SpecTest

InvalidSyncCommitteeBlockValidation tests an invalid consensus data with sync committee block data.

func InvalidSyncCommitteeContributionValidation added in v0.3.0

func InvalidSyncCommitteeContributionValidation() *SpecTest

InvalidSyncCommitteeContributionValidation tests an invalid consensus data with sync committee contrib.

func ProposerJustifications added in v0.3.1

func ProposerJustifications() *SpecTest

ProposerJustifications tests a valid consensus data with proposer justifications

func ProposerNoJustifications added in v0.3.1

func ProposerNoJustifications() *SpecTest

ProposerNoJustifications tests an invalid consensus data with no proposer justifications

func SyncCommitteeContributionJustifications added in v0.3.1

func SyncCommitteeContributionJustifications() *SpecTest

SyncCommitteeContributionJustifications tests a valid consensus data with sync committee contribution pre-consensus justifications

func SyncCommitteeContributionValidation added in v0.3.0

func SyncCommitteeContributionValidation() *SpecTest

SyncCommitteeContributionValidation tests a valid consensus data with sync committee contrib.

func SyncCommitteeJustifications added in v0.3.1

func SyncCommitteeJustifications() *SpecTest

SyncCommitteeJustifications tests an invalid consensus data with sync committee pre-consensus justifications

func SyncCommitteeNoContributionJustifications added in v0.3.1

func SyncCommitteeNoContributionJustifications() *SpecTest

SyncCommitteeNoContributionJustifications tests an invalid consensus data with no sync committee contribution pre-consensus justifications

func SyncCommitteeNoJustifications added in v0.3.1

func SyncCommitteeNoJustifications() *SpecTest

SyncCommitteeNoJustifications tests a valid consensus data with no sync committee pre-consensus justifications

func ValidatorRegistration added in v0.3.1

func ValidatorRegistration() *SpecTest

ValidatorRegistration tests an invalid consensus data for validator registration (has no consensus data)

func (*SpecTest) Run added in v0.3.0

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

func (*SpecTest) TestName added in v0.3.0

func (test *SpecTest) TestName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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