Documentation
¶
Index ¶
- type ValidatorKey
- func (vk *ValidatorKey) FillPubKey() error
- func (vk *ValidatorKey) FromBytes(secretKey []byte) error
- func (vk *ValidatorKey) FromHex(secretKeyHex string) error
- func (vk *ValidatorKey) PubKeyToBytes() []byte
- func (vk *ValidatorKey) PubKeyToHex() string
- func (vk *ValidatorKey) SecretKeyToBytes() []byte
- func (vk *ValidatorKey) SecretKeyToHex() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidatorKey ¶
type ValidatorKey struct { // ValidatorSecretKey is the serialized secret key for validator duties ValidatorSecretKey *blsu.SecretKey // ValidatorPubkey is the serialized pubkey derived from ValidatorSecretKey ValidatorPubkey *blsu.Pubkey }
func KeyListFromFile ¶
func KeyListFromFile(path string) ([]*ValidatorKey, error)
func KeyListFromFolder ¶
func KeyListFromFolder(pathStr string) ([]*ValidatorKey, error)
func (*ValidatorKey) FillPubKey ¶
func (vk *ValidatorKey) FillPubKey() error
func (*ValidatorKey) FromBytes ¶
func (vk *ValidatorKey) FromBytes(secretKey []byte) error
func (*ValidatorKey) FromHex ¶
func (vk *ValidatorKey) FromHex(secretKeyHex string) error
func (*ValidatorKey) PubKeyToBytes ¶
func (vk *ValidatorKey) PubKeyToBytes() []byte
func (*ValidatorKey) PubKeyToHex ¶
func (vk *ValidatorKey) PubKeyToHex() string
func (*ValidatorKey) SecretKeyToBytes ¶
func (vk *ValidatorKey) SecretKeyToBytes() []byte
func (*ValidatorKey) SecretKeyToHex ¶
func (vk *ValidatorKey) SecretKeyToHex() string
Click to show internal directories.
Click to hide internal directories.