eth2

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconState added in v1.18.0

type BeaconState interface {
	GetSlot() uint64
	ValidatorAndSlotProof(validatorIndex uint64) (validatorProof [][]byte, slotProof [][]byte, err error)
	HistoricalSummaryProof(slot uint64, capellaOffset uint64) ([][]byte, error)
	HistoricalSummaryBlockRootProof(slot int) ([][]byte, error)
	HistoricalSummaryStateRootProof(slot int) ([][]byte, error)
	BlockRootProof(slot uint64) ([][]byte, error)
	StateRootProof(slot uint64) ([][]byte, error)
	BlockHeaderProof() ([][]byte, error)
	GetValidators() []*generic.Validator
	GetPreviousEpochParticipation() []byte
	// PreviousEpochParticipationChunkProof proves the previous_epoch_participation
	// chunk containing validatorIndex's flags up to the state root (no
	// block-header cap). chunk is the 32-byte merkle leaf; the validator's flags
	// are at byte validatorIndex % 32 within it
	PreviousEpochParticipationChunkProof(validatorIndex uint64) (chunk [32]byte, participationProofBytes [][]byte, err error)
}

func NewBeaconState added in v1.18.0

func NewBeaconState(data io.ReadCloser, size int64, fork string) (BeaconState, error)

type SignedBeaconBlock added in v1.18.0

type SignedBeaconBlock interface {
	ProveWithdrawal(indexInWithdrawalsArray uint64) ([][]byte, error)
	HasExecutionPayload() bool
	Withdrawals() []*generic.Withdrawal
}

func NewSignedBeaconBlock added in v1.18.0

func NewSignedBeaconBlock(data io.ReadCloser, size int64, fork string) (SignedBeaconBlock, error)

Directories

Path Synopsis
fork
deneb
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
electra
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
fulu
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
gloas
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.

Jump to

Keyboard shortcuts

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