Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fork ¶
type Fork struct { // Previous fork version PreviousVersion Version // Current fork version CurrentVersion Version // Fork epoch number Epoch Epoch }
type VersioningState ¶
type VersioningState struct { GenesisTime Timestamp Slot Slot Fork Fork }
func (*VersioningState) CurrentEpoch ¶
func (state *VersioningState) CurrentEpoch() Epoch
Get current epoch
func (*VersioningState) CurrentSlot ¶
func (state *VersioningState) CurrentSlot() Slot
Get current slot
func (*VersioningState) CurrentVersion ¶ added in v0.9.3
func (state *VersioningState) CurrentVersion() Version
func (*VersioningState) GetDomain ¶
func (state *VersioningState) GetDomain(dom BLSDomainType, messageEpoch Epoch) BLSDomain
Return the signature domain (fork version concatenated with domain type) of a message.
func (*VersioningState) PreviousEpoch ¶
func (state *VersioningState) PreviousEpoch() Epoch
Return previous epoch.
Click to show internal directories.
Click to hide internal directories.