function encryptKeystoreJson(
   account, 
   password, 
options?): Promise<string>

Resolved to the JSON Keystore Wallet for account encrypted with password.

The options can be used to tune the password-based key derivation function parameters, explicitly set the random values used and provide a ProgressCallback to receive periodic updates on the completion status..

Parameters

ParameterTypeDescription
accountKeystoreAccountThe account to encrypt.
passwordstring | Uint8ArrayThe password to encrypt the JSON data.
options?EncryptOptionsThe options to use when encrypting the JSON data.

Returns

Promise<string>

The encrypted JSON data.

Source

wallet/json-keystore.ts:491