# Functions
Exists checks if directory at walletDir exists.
InputPassword prompts for a password and optionally for password confirmation.
IsValid checks if a folder contains a single key directory such as `derived`, `remote` or `imported`.
New creates a struct from config values.
NewWalletForWeb3Signer returns a new wallet for web3 signer which is temporary and not stored locally.
OpenOrCreateNewWallet takes a cli and returns a wallet either opening an existing valid wallet or creating a new one.
OpenWallet instantiates a wallet from a specified path.
OpenWalletOrElseCli tries to open the wallet and if it fails or no wallet is found, invokes a callback function.
# Constants
CheckExistsErrMsg for when there is an error while checking for a wallet.
CheckValidityErrMsg for when there is an error while checking wallet validity.
ConfirmPasswordPromptText for confirming a wallet password.
DefaultWalletPasswordFile used to store a wallet password with appropriate permissions if a user signs up via the Prysm web UI via RPC.
InvalidWalletErrMsg for when a directory does not contain a valid wallet.
KeymanagerConfigFileName for the keymanager used by the wallet: imported, derived, remote, or web3signer.
NewWalletPasswordPromptText for wallet creation.
PasswordPromptText for wallet unlocking.
# Variables
ErrNoWalletFound signifies there was no wallet directory found on-disk.
KeymanagerKindSelections as friendly text.
ValidateExistingPass checks that an input cannot be empty.
# Structs
Config to open a wallet programmatically.
Wallet is a primitive in Prysm's account management which has the capability of creating new accounts, reading existing accounts, and providing secure access to Ethereum proof of stake secrets depending on an associated keymanager (either imported, derived, or remote signing enabled).