Documentation ¶
Overview ¶
Package accounts defines tools to manage an encrypted validator keystore.
Index ¶
- func CreateValidatorAccount(path string, passphrase string) (string, string, error)
- func DecryptKeysFromKeystore(directory string, password string) (map[string]*keystore.Key, error)
- func DefaultValidatorDir() string
- func Exists(keystorePath string) (bool, error)
- func HandleEmptyFlags(cliCtx *cli.Context, confirmPassword bool) (string, string, error)
- func NewValidatorAccount(directory string, password string) error
- func PrintPublicAndPrivateKeys(path string, passphrase string) error
- func VerifyAccountNotExists(directory string, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateValidatorAccount ¶
CreateValidatorAccount creates a validator account from the given cli context.
func DecryptKeysFromKeystore ¶
DecryptKeysFromKeystore extracts a set of validator private keys from an encrypted keystore directory and a password string.
func DefaultValidatorDir ¶
func DefaultValidatorDir() string
DefaultValidatorDir returns OS-specific default keystore directory.
func HandleEmptyFlags ¶
HandleEmptyFlags checks what the set flags are and allows the user to manually enter them if they're empty.
func NewValidatorAccount ¶
NewValidatorAccount sets up a validator client's secrets and generates the necessary deposit data parameters needed to deposit into the deposit contract on the ETH1.0 chain. Specifically, this generates a BLS private and public key, and then logs the serialized deposit input hex string to be used in an ETH1.0 transaction by the validator.
func PrintPublicAndPrivateKeys ¶
PrintPublicAndPrivateKeys uses the passed in path and prints out the public and private keys in that directory.
func VerifyAccountNotExists ¶
VerifyAccountNotExists checks if a validator has not yet created an account and keystore in the provided directory string.
Types ¶
This section is empty.