versioning

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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