keystore

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirMode  fs.FileMode = 0700 // 0770
	FileMode fs.FileMode = 0600 // 0640
)
View Source
const (
	DirectEIPVersion string = "EIP-2335"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IKeystoreManager

type IKeystoreManager interface {
	// Store a validator key on disk
	StoreValidatorKey(key *eth2types.BLSPrivateKey, derivationPath string) error

	// Load a validator key from disk corresponding to the provided pubkey
	LoadValidatorKey(pubkey beacon.ValidatorPubkey) (*eth2types.BLSPrivateKey, error)

	// Get the path of the keystore directory managed by this manager
	GetKeystoreDir() string
}

Validator keystore manager interface

type LighthouseKeystoreManager

type LighthouseKeystoreManager struct {
	// contains filtered or unexported fields
}

Lighthouse keystore manager

func NewLighthouseKeystoreManager

func NewLighthouseKeystoreManager(keystorePath string) *LighthouseKeystoreManager

Create new lighthouse keystore manager

func (*LighthouseKeystoreManager) GetKeystoreDir

func (ks *LighthouseKeystoreManager) GetKeystoreDir() string

Get the keystore directory

func (*LighthouseKeystoreManager) LoadValidatorKey

Load a private key

func (*LighthouseKeystoreManager) StoreValidatorKey

func (ks *LighthouseKeystoreManager) StoreValidatorKey(key *eth2types.BLSPrivateKey, derivationPath string) error

Store a validator key

type LodestarKeystoreManager

type LodestarKeystoreManager struct {
	// contains filtered or unexported fields
}

Lodestar keystore manager

func NewLodestarKeystoreManager

func NewLodestarKeystoreManager(keystorePath string) *LodestarKeystoreManager

Create new lodestar keystore manager

func (*LodestarKeystoreManager) GetKeystoreDir

func (ks *LodestarKeystoreManager) GetKeystoreDir() string

Get the keystore directory

func (*LodestarKeystoreManager) LoadValidatorKey

Load a private key

func (*LodestarKeystoreManager) StoreValidatorKey

func (ks *LodestarKeystoreManager) StoreValidatorKey(key *eth2types.BLSPrivateKey, derivationPath string) error

Store a validator key

type NimbusKeystoreManager

type NimbusKeystoreManager struct {
	// contains filtered or unexported fields
}

Nimbus keystore manager

func NewNimbusKeystoreManager

func NewNimbusKeystoreManager(keystorePath string) *NimbusKeystoreManager

Create new nimbus keystore manager

func (*NimbusKeystoreManager) GetKeystoreDir

func (ks *NimbusKeystoreManager) GetKeystoreDir() string

Get the keystore directory

func (*NimbusKeystoreManager) LoadValidatorKey

func (ks *NimbusKeystoreManager) LoadValidatorKey(pubkey beacon.ValidatorPubkey) (*eth2types.BLSPrivateKey, error)

Load a private key

func (*NimbusKeystoreManager) StoreValidatorKey

func (ks *NimbusKeystoreManager) StoreValidatorKey(key *eth2types.BLSPrivateKey, derivationPath string) error

Store a validator key

type PrysmKeystoreManager

type PrysmKeystoreManager struct {
	// contains filtered or unexported fields
}

Prysm keystore manager

func NewPrysmKeystoreManager

func NewPrysmKeystoreManager(keystorePath string) *PrysmKeystoreManager

Create new prysm keystore manager

func (*PrysmKeystoreManager) GetKeystoreDir

func (ks *PrysmKeystoreManager) GetKeystoreDir() string

Get the keystore directory

func (*PrysmKeystoreManager) LoadValidatorKey

func (ks *PrysmKeystoreManager) LoadValidatorKey(pubkey beacon.ValidatorPubkey) (*eth2types.BLSPrivateKey, error)

Load a private key

func (*PrysmKeystoreManager) StoreValidatorKey

func (ks *PrysmKeystoreManager) StoreValidatorKey(key *eth2types.BLSPrivateKey, derivationPath string) error

Store a validator key

type TekuKeystoreManager

type TekuKeystoreManager struct {
	// contains filtered or unexported fields
}

Teku keystore manager

func NewTekuKeystoreManager

func NewTekuKeystoreManager(keystorePath string) *TekuKeystoreManager

Create new teku keystore manager

func (*TekuKeystoreManager) GetKeystoreDir

func (ks *TekuKeystoreManager) GetKeystoreDir() string

Get the keystore directory

func (*TekuKeystoreManager) LoadValidatorKey

func (ks *TekuKeystoreManager) LoadValidatorKey(pubkey beacon.ValidatorPubkey) (*eth2types.BLSPrivateKey, error)

Load a private key

func (*TekuKeystoreManager) StoreValidatorKey

func (ks *TekuKeystoreManager) StoreValidatorKey(key *eth2types.BLSPrivateKey, derivationPath string) error

Store a validator key

Jump to

Keyboard shortcuts

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