External module "account/wallet"
Type aliases
EncryptOptions
EncryptOptions: object
Type declaration
-
Optional c?: undefined | number
-
Optional cipher?: undefined | string
-
Optional dklen?: undefined | number
-
Optional iv?: undefined | string
-
Optional kdf?: undefined | string
-
Optional n?: undefined | number
-
Optional p?: undefined | number
-
Optional r?: undefined | number
-
Optional salt?: undefined | string
-
Optional uuid?: undefined | string
Kdfparams
Kdfparams: object
Type declaration
-
Optional c?: undefined | number
-
dklen: number
-
Optional n?: undefined | number
-
Optional p?: undefined | number
-
Optional prf?: undefined | string
-
Optional r?: undefined | number
-
salt: string
Functions
decrypt
- decrypt(privateKey: PrivateKey, password: string): object
-
Parameters
Returns object
-
address: string
-
privateKey: string
-
publicKey: string
encrypt
-
Parameters
-
privateKey: string
-
password: string
-
runCipherBuffer
- runCipherBuffer(cipher: Cipher | Decipher, data: crypto.Binary): Buffer
-
Parameters
-
cipher: Cipher | Decipher
-
data: crypto.Binary
Returns Buffer