Versions in this module Expand all Collapse all v1 v1.2.2 Apr 7, 2024 Changes in this version + const ABIJSON + const BLSPubkeyLength + const BeaconBlockBodyTreeExecutionPayloadIndex + const BeaconHeaderABIJSON + const ChainIdABIJSON + const DomainByteLength + const EpochsPerSyncCommitteePeriod + const ExecutionPayloadProofSize + const ExecutionProofSize + const FinalizedRootIndex + const ForkVersionByteLength + const L1BeaconBlockBodyProofSize + const L1BeaconBlockBodyTreeExecutionPayloadIndex + const L2ExecutionPayloadProofSize + const L2ExecutionPayloadTreeExecutionBlockIndex + const MinSyncCommitteeParticipants + const NextSyncCommitteeIndex + const SlotsPerEpoch + const SyncCommitteeABIJSON + const UpdateABIJSON + var DomainSyncCommittee = [4]byte + func ComputeDomain(domainType [DomainByteLength]byte, forkVersion, genesisValidatorsRoot []byte) ([]byte, error) + func ComputeSigningRoot(object fssz.HashRoot, domain []byte) ([32]byte, error) + func PadTo(b []byte, size int) []byte + func ReverseByteOrder(input []byte) []byte + func SyncCommitteeRoot(committee *SyncCommittee) ([32]byte, error) + func VerifyLightClientUpdate(input []byte) error + type BeaconBlockHeader struct + BodyRoot []byte + ParentRoot []byte + ProposerIndex ValidatorIndex + Slot uint64 + StateRoot []byte + func (b *BeaconBlockHeader) HashTreeRoot() ([32]byte, error) + func (b *BeaconBlockHeader) HashTreeRootWith(hh *ssz.Hasher) (err error) + type DomainType [4]byte + type ExecutionPayload struct + BaseFeePerGas *big.Int + BlockHash common.Hash + BlockNumber *big.Int + ExtraData []byte + FeeRecipient common.Address + GasLimit uint64 + GasUsed uint64 + LogsBloom []byte + ParentHash common.Hash + PrevRandao common.Hash + ReceiptsRoot common.Hash + StateRoot common.Hash + Timestamp uint64 + TransactionsRoot common.Hash + WithdrawalsRoot common.Hash + func (e *ExecutionPayload) HashTreeRoot() ([32]byte, error) + func (e *ExecutionPayload) HashTreeRootWith(hh *fssz.Hasher) (err error) + type ForkData struct + CurrentVersion []byte + GenesisValidatorsRoot []byte + func (f *ForkData) HashTreeRoot() ([32]byte, error) + func (f *ForkData) HashTreeRootWith(hh *ssz.Hasher) (err error) + type ForkVersion [4]byte + type ILightClientUpdate interface + GetAttestedHeader func() *BeaconBlockHeader + GetFinalityBranch func() [][]byte + GetFinalizedHeader func() *BeaconBlockHeader + GetNextSyncCommittee func() *SyncCommittee + GetNextSyncCommitteeBranch func() [][]byte + GetSignatureSlot func() uint64 + GetSyncAggregate func() *SyncAggregate + type ILightNodeBeaconBlockHeader struct + BodyRoot [32]byte + ParentRoot [32]byte + ProposerIndex uint64 + Slot uint64 + StateRoot [32]byte + type ILightNodeBlockHeader struct + BaseFeePerGas *big.Int + Difficulty *big.Int + ExtraData []byte + GasLimit *big.Int + GasUsed *big.Int + LogsBloom []byte + Miner common.Address + MixHash []byte + Nonce []byte + Number *big.Int + ParentHash []byte + ReceiptsRoot []byte + Sha3Uncles []byte + StateRoot []byte + Timestamp *big.Int + TransactionsRoot []byte + type ILightNodeExecution struct + BaseFeePerGas *big.Int + BlockHash [32]byte + BlockNumber *big.Int + ExtraData []byte + FeeRecipient common.Address + GasLimit *big.Int + GasUsed *big.Int + LogsBloom []byte + ParentHash [32]byte + PrevRandao [32]byte + ReceiptsRoot [32]byte + StateRoot [32]byte + Timestamp *big.Int + TransactionsRoot [32]byte + WithdrawalsRoot [32]byte + type ILightNodeLightClientState struct + ChainID uint64 + CurrentSyncCommittee ILightNodeSyncCommittee + FinalizedHeader ILightNodeBeaconBlockHeader + NextSyncCommittee ILightNodeSyncCommittee + type ILightNodeLightClientUpdateV1 struct + AttestedHeader ILightNodeBeaconBlockHeader + ExeFinalityBranch [][32]byte + FinalityBranch [][32]byte + FinalizedExeHeader ILightNodeBlockHeader + FinalizedHeader ILightNodeBeaconBlockHeader + NextSyncCommittee ILightNodeSyncCommittee + NextSyncCommitteeBranch [][32]byte + SignatureSlot uint64 + SyncAggregate ILightNodeSyncAggregate + type ILightNodeLightClientUpdateV2 struct + AttestedHeader ILightNodeBeaconBlockHeader + ExecutionBranch [][32]byte + FinalityBranch [][32]byte + FinalizedExecution ILightNodeExecution + FinalizedHeader ILightNodeBeaconBlockHeader + NextSyncCommittee ILightNodeSyncCommittee + NextSyncCommitteeBranch [][32]byte + SignatureSlot uint64 + SyncAggregate ILightNodeSyncAggregate + type ILightNodeLightClientVerify struct + State ILightNodeLightClientState + Update ILightNodeLightClientUpdateV1 + type ILightNodeSyncAggregate struct + SyncCommitteeBits []byte + SyncCommitteeSignature []byte + type ILightNodeSyncCommittee struct + AggregatePubkey []byte + Pubkeys []byte + type LightClientState struct + func ConvertToLightClientState(finalizedBeaconHeader *ILightNodeBeaconBlockHeader, ...) *LightClientState + type LightClientUpdateV1 struct + func (l LightClientUpdateV1) GetAttestedHeader() *BeaconBlockHeader + func (l LightClientUpdateV1) GetFinalityBranch() [][]byte + func (l LightClientUpdateV1) GetFinalizedHeader() *BeaconBlockHeader + func (l LightClientUpdateV1) GetNextSyncCommittee() *SyncCommittee + func (l LightClientUpdateV1) GetNextSyncCommitteeBranch() [][]byte + func (l LightClientUpdateV1) GetSignatureSlot() uint64 + func (l LightClientUpdateV1) GetSyncAggregate() *SyncAggregate + type LightClientUpdateV2 struct + func (l LightClientUpdateV2) GetAttestedHeader() *BeaconBlockHeader + func (l LightClientUpdateV2) GetFinalityBranch() [][]byte + func (l LightClientUpdateV2) GetFinalizedHeader() *BeaconBlockHeader + func (l LightClientUpdateV2) GetNextSyncCommittee() *SyncCommittee + func (l LightClientUpdateV2) GetNextSyncCommitteeBranch() [][]byte + func (l LightClientUpdateV2) GetSignatureSlot() uint64 + func (l LightClientUpdateV2) GetSyncAggregate() *SyncAggregate + type LightClientVerify struct + func ConvertToLightClientVerify(update *ILightNodeLightClientUpdateV2, ...) *LightClientVerify + type NetworkConfig struct + BellatrixForkEpoch uint64 + BellatrixForkVersion ForkVersion + CapellaForkEpoch uint64 + CapellaForkVersion ForkVersion + GenesisValidatorsRoot [32]byte + type Root []byte + type SigningData struct + Domain []byte + ObjectRoot []byte + func (s *SigningData) HashTreeRoot() ([32]byte, error) + func (s *SigningData) HashTreeRootWith(hh *ssz.Hasher) (err error) + type SyncAggregate struct + SyncCommitteeBits bitfield.Bitvector512 + SyncCommitteeSignature []byte + type SyncCommittee struct + AggregatePubkey []byte + Pubkeys [][]byte + type ValidatorIndex uint64