Expand description
This module contains struct definition, utility functions around private keys, password, and keystores.
Keystore file is often referred as HOPR node identity file, which is an encrypted private key for an Ethereum wallet. This identity file uses password (received from PasswordArgs) for encryption.
Location of identity files can be provided with IdentityFileArgs.
This module also contains definition of argument for private key, defined in PrivateKeyArgs.
Structs§
- Identity
File Args - CLI arguments to specify the directory of one or multiple identity files
- Identity
From Directory Args - CLI arguments to specify the directory of one or multiple identity files
- Manager
Private KeyArgs - Arguments for private key.
- NewPassword
Args - Arguments for new password.
- Password
Args - Arguments for password.
- Private
KeyArgs - Arguments for private key.
Traits§
Functions§
- create_
identity - Create one identity file and return the ethereum address
- read_
identities - Decrypts identity files and returns an vec of PeerIds and Ethereum Addresses
- read_
identity - update_
identity_ password - encrypt HoprKeys with a new password to an identity file