function decryptKeystoreJson(
   json, 
   _password, 
progress?): Promise<KeystoreAccount>

Resolves to the decrypted JSON Keystore Wallet json using the password.

If provided, progress will be called periodically during the decrpytion to provide feedback, and if the function returns false will halt decryption.

The progressCallback will always receive 0 before decryption begins and 1 when complete.

Parameters

ParameterTypeDescription
jsonstringThe JSON data to decrypt.
_passwordstring | Uint8ArrayThe password to decrypt the JSON data.
progress?ProgressCallbackThe callback to receive progress updates.

Returns

Promise<KeystoreAccount>

The decrypted account.

Source

wallet/json-keystore.ts:279