Documentation ¶
Index ¶
Constants ¶
const ( DirMode fs.FileMode = 0700 // 0770 FileMode fs.FileMode = 0600 // 0640 )
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 ¶
func (ks *LighthouseKeystoreManager) LoadValidatorKey(pubkey beacon.ValidatorPubkey) (*eth2types.BLSPrivateKey, error)
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 ¶
func (ks *LodestarKeystoreManager) LoadValidatorKey(pubkey beacon.ValidatorPubkey) (*eth2types.BLSPrivateKey, error)
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