consensusdata

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusDataTest

type ConsensusDataTest struct {
	Name          string
	ConsensusData types.ConsensusData
	ExpectedError string
}

func AggregatorNoJustifications

func AggregatorNoJustifications() *ConsensusDataTest

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

func AggregatorValidation

func AggregatorValidation() *ConsensusDataTest

AggregatorValidation tests a valid consensus data with AggregateAndProof

func AttestationValidation

func AttestationValidation() *ConsensusDataTest

AttestationValidation tests a valid consensus data with AttestationData

func AttesterJustifications

func AttesterJustifications() *ConsensusDataTest

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

func CapellaBlindedBlockValidation

func CapellaBlindedBlockValidation() *ConsensusDataTest

CapellaBlindedBlockValidation tests a valid consensus data with capella blinded block

func CapellaBlockValidation

func CapellaBlockValidation() *ConsensusDataTest

CapellaBlockValidation tests a valid consensus data with capella block

func DenebBlindedBlockValidation

func DenebBlindedBlockValidation() *ConsensusDataTest

DenebBlindedBlockValidation tests a valid consensus data with deneb blinded block

func DenebBlockValidation

func DenebBlockValidation() *ConsensusDataTest

DenebBlockValidation tests a valid consensus data with deneb block

func InvalidAggregatorValidation

func InvalidAggregatorValidation() *ConsensusDataTest

InvalidAggregatorValidation tests an invalid consensus data with AggregateAndProof

func InvalidAttestationValidation

func InvalidAttestationValidation() *ConsensusDataTest

InvalidAttestationValidation tests an invalid consensus data with AttestationData

func InvalidCapellaBlindedBlockValidation

func InvalidCapellaBlindedBlockValidation() *ConsensusDataTest

InvalidCapellaBlindedBlockValidation tests an invalid consensus data with capella blinded block

func InvalidCapellaBlockValidation

func InvalidCapellaBlockValidation() *ConsensusDataTest

InvalidCapellaBlockValidation tests an invalid consensus data with capella block

func InvalidDenebBlindedBlockValidation

func InvalidDenebBlindedBlockValidation() *ConsensusDataTest

InvalidDenebBlindedBlockValidation tests an invalid consensus data with deneb blinded block

func InvalidDenebBlockValidation

func InvalidDenebBlockValidation() *ConsensusDataTest

InvalidDenebBlockValidation tests an invalid consensus data with deneb block

func InvalidDuty

func InvalidDuty() *ConsensusDataTest

InvalidDuty tests an invalid consensus data with invalid duty

func InvalidSyncCommitteeBlockValidation

func InvalidSyncCommitteeBlockValidation() *ConsensusDataTest

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

func InvalidSyncCommitteeContributionValidation

func InvalidSyncCommitteeContributionValidation() *ConsensusDataTest

InvalidSyncCommitteeContributionValidation tests an invalid consensus data with sync committee contrib.

func ProposerNoJustifications

func ProposerNoJustifications() *ConsensusDataTest

ProposerNoJustifications tests an invalid consensus data with no proposer justifications

func SyncCommitteeContributionNoJustifications

func SyncCommitteeContributionNoJustifications() *ConsensusDataTest

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

func SyncCommitteeContributionValidation

func SyncCommitteeContributionValidation() *ConsensusDataTest

SyncCommitteeContributionValidation tests a valid consensus data with sync committee contrib.

func SyncCommitteeJustifications

func SyncCommitteeJustifications() *ConsensusDataTest

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

func SyncCommitteeNoJustifications

func SyncCommitteeNoJustifications() *ConsensusDataTest

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

func ValidatorRegistration

func ValidatorRegistration() *ConsensusDataTest

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

func VoluntaryExit

func VoluntaryExit() *ConsensusDataTest

VoluntaryExit tests an invalid consensus data for voluntary exit (has no consensus data)

func (*ConsensusDataTest) Run

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

func (*ConsensusDataTest) TestName

func (test *ConsensusDataTest) TestName() string

type EncodingTest

type EncodingTest struct {
	Name         string
	Data         []byte
	ExpectedRoot [32]byte
}

func AggregatorConsensusDataEncoding

func AggregatorConsensusDataEncoding() *EncodingTest

func AttestationConsensusDataEncoding

func AttestationConsensusDataEncoding() *EncodingTest

func BlindedProposerConsensusDataEncoding

func BlindedProposerConsensusDataEncoding() *EncodingTest

func ConsensusDataEncoding

func ConsensusDataEncoding(name string, cd *types.ConsensusData) *EncodingTest

ConsensusDataEncoding tests encoding and decoding ConsensusData for all duties

func ProposerConsensusDataEncoding

func ProposerConsensusDataEncoding() *EncodingTest

func SyncCommitteeConsensusDataEncoding

func SyncCommitteeConsensusDataEncoding() *EncodingTest

func SyncCommitteeContributionConsensusDataEncoding

func SyncCommitteeContributionConsensusDataEncoding() *EncodingTest

func (*EncodingTest) Run

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

func (*EncodingTest) TestName

func (test *EncodingTest) TestName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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