Versions in this module Expand all Collapse all v1 v1.12.6 Jun 4, 2024 Changes in this version + const SerializedSyncCommitteeSize + func SyncPeriod(slot uint64) uint64 + func SyncPeriodStart(period uint64) uint64 + type ChainConfig struct + Forks Forks + GenesisTime uint64 + GenesisValidatorsRoot common.Hash + func (c *ChainConfig) AddFork(name string, epoch uint64, version []byte) *ChainConfig + func (c *ChainConfig) LoadForks(path string) error + type Fork struct + Epoch uint64 + Name string + Version []byte + type Forks []*Fork + func (f Forks) Len() int + func (f Forks) Less(i, j int) bool + func (f Forks) SigningRoot(header Header) (common.Hash, error) + func (f Forks) Swap(i, j int) + type Header struct + BodyRoot common.Hash + ParentRoot common.Hash + ProposerIndex uint64 + Slot uint64 + StateRoot common.Hash + func (h *Header) Epoch() uint64 + func (h *Header) Hash() common.Hash + func (h *Header) SyncPeriod() uint64 + func (h *Header) UnmarshalJSON(input []byte) error + func (h Header) MarshalJSON() ([]byte, error) + type LightClientUpdate struct + AttestedHeader SignedHeader + FinalityBranch merkle.Values + FinalizedHeader *Header + NextSyncCommitteeBranch merkle.Values + NextSyncCommitteeRoot common.Hash + func (update *LightClientUpdate) Score() UpdateScore + func (update *LightClientUpdate) Validate() error + type SerializedSyncCommittee [SerializedSyncCommitteeSize]byte + func (s *SerializedSyncCommittee) Deserialize() (*SyncCommittee, error) + func (s *SerializedSyncCommittee) MarshalJSON() ([]byte, error) + func (s *SerializedSyncCommittee) Root() common.Hash + func (s *SerializedSyncCommittee) UnmarshalJSON(input []byte) error + type SignedHeader struct + Header Header + Signature SyncAggregate + SignatureSlot uint64 + type SyncAggregate struct + Signature [params.BLSSignatureSize]byte + Signers [params.SyncCommitteeBitmaskSize]byte + func (s *SyncAggregate) SignerCount() int + func (s *SyncAggregate) UnmarshalJSON(input []byte) error + func (s SyncAggregate) MarshalJSON() ([]byte, error) + type SyncCommittee struct + func (sc *SyncCommittee) VerifySignature(signingRoot common.Hash, signature *SyncAggregate) bool + type UpdateScore struct + FinalizedHeader bool + SignerCount uint32 + SubPeriodIndex uint32 + func (u UpdateScore) BetterThan(w UpdateScore) bool