keys

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

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

Jump to

Keyboard shortcuts

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