Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GenesisTime is the time (Unix in seconds) of the genesis. GenesisTime int64 = 1656588336 // Duration is the default epoch duration in seconds. Duration int64 = 10 )
Functions ¶
This section is empty.
Types ¶
type EC ¶
type EC = MerkleRoot
type ECR ¶
type ECR = MerkleRoot
type ECRecord ¶
ECRecord is a storable object represents the ecRecord of an epoch.
func NewECRecord ¶
NewECRecord creates and returns a ECRecord of the given EI.
type Index ¶
type Index int64
Index is the ID of an epoch.
func CurrentEpochIndex ¶
func CurrentEpochIndex() Index
CurrentEpochIndex returns the EI at the current RATT time.
func IndexFromTime ¶
IndexFromTime calculates the EI for the given time.
type MerkleRoot ¶
func NewMerkleRoot ¶
func NewMerkleRoot(bytes []byte) (mr MerkleRoot)
func (MerkleRoot) Base58 ¶
func (m MerkleRoot) Base58() string
func (MerkleRoot) Bytes ¶
func (m MerkleRoot) Bytes() []byte
Click to show internal directories.
Click to hide internal directories.