Initialize a new user instnace
a secure password to encrypt/decrypt user's data
Optional options: Partial<IUserOptions>Options to work with user's instance
Optional hdWalletPathTemplate: stringOption to define a custom derivation path of HD wallet (default is m/PURPOSE'/COINT_TYPE'/INDEX')
Private _hdPrivate _hdPrivate _legacyPrivate _passwordPrivate _pwdSecret password (encrypted from user's password). To serialize/deserialize the wallet information
Private _underlyingHDWalletAdd a legacy wallet
Optional info: WalletDescriptorAdd an account for HD wallet
Optional info: WalletDescriptorGet the HD wallet
Get all current legacy wallets
Private getGet wallet information
could be id or uid of from wallet info
Private isHDWalletSet the HD wallet information
the master key, either keyPhrase (12-24 words) or seed of keyPhrase
the encryption type
Private setHDWalletOptional info: WalletDescriptorSet wallet information
coule be id or uid from wallet info in case of updating, otherwise it must be an id (private key of legacy wallet or path of hd wallet)
Private validateStatic deserializeDeserialize user information to an instance of user
Optional options: Partial<IUserOptions>Options to work with user's instance
Generated using TypeDoc
A user instance to manage HD wallet and legacy wallets with detailed information. A user serialized value is secured by a secured password which is given by user. We should never store user's password but its encrypted one to do extra actions.