Versions in this module Expand all Collapse all v1 v1.3.3 Mar 28, 2024 Changes in this version + const DepositDataFileName + const KeystorePasswordFileName + const ValidatorKeysDirName + var ErrDepositDataNotFound = errors.New("deposit_data.json not found") + var ErrInvalidKeystoreFile = errors.New("invalid keystore file") + var ErrInvalidKeystoreFileSchema = errors.New("file does not match keystore schema (EIP-2335)") + var ErrKeystorePasswordNotFound = errors.New("keystore_password.txt not found") + var ErrValidatorKeysDirNotFound = errors.New("validator_keys directory not found") + var ErrValidatorKeysDirWithoutKeystores = errors.New("validator_keys directory does not contain any keystores") + func CreateDepositData(vkgd ValidatorKeysGenData) error + func CreateKeystores(vkgd ValidatorKeysGenData) error + func CreateMnemonic() (string, error) + func ValidateKeystoreDir(dir string) (errors []error) + type KeyEntry struct + func NewKeyEntry(priv e2types.PrivateKey, keyPath string, ww *WalletWriter, insecure bool) (*KeyEntry, error) + func (ke *KeyEntry) MarshalJSON() ([]byte, error) + type KeyFile struct + type ValidatorKeysGenData struct + AmountGwei uint64 + AsJsonList bool + ForkVersion string + Insecure bool + MaxIndex uint64 + MinIndex uint64 + Mnemonic string + NetworkName string + OutputPath string + Passphrase string + UseUniquePassphrase bool + type WalletOutput interface + InsertAccount func(priv e2types.PrivateKey, keyPath string, insecure bool, idx uint64) error + type WalletWriter struct + func NewWalletWriter(entries uint64, passphrase string) *WalletWriter + func (ww *WalletWriter) InsertAccount(priv e2types.PrivateKey, keyPath string, insecure bool, idx uint64) error + func (ww *WalletWriter) WriteOutputs(fpath string) error