Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct { ID idx.ValidatorID Address common.Address PubKey validatorpk.PubKey CreationTime inter.Timestamp CreationEpoch idx.Epoch DeactivatedTime inter.Timestamp DeactivatedEpoch idx.Epoch Status uint64 }
Validator is a helper structure to define genesis validators
type Validators ¶
type Validators []Validator
func (Validators) Addresses ¶
func (gv Validators) Addresses() []common.Address
Addresses returns not sorted genesis addresses
func (Validators) Map ¶
func (gv Validators) Map() map[idx.ValidatorID]Validator
Map converts Validators to map
func (Validators) PubKeys ¶
func (gv Validators) PubKeys() []validatorpk.PubKey
PubKeys returns not sorted genesis pub keys
Click to show internal directories.
Click to hide internal directories.