function decryptKeystoreJsonSync(json, _password): KeystoreAccount

Returns the account details for the JSON Keystore Wallet json using password.

It is preferred to use the async version instead, which allows a **ProgressCallback to keep the user informed as to the decryption status.

This method will block the event loop (freezing all UI) until decryption is complete, which can take quite some time, depending on the wallet paramters and platform.

Parameters

ParameterTypeDescription
jsonstringThe JSON data to decrypt.
_passwordstring | Uint8ArrayThe password to decrypt the JSON data.

Returns

KeystoreAccount

The decrypted account.

Source

wallet/json-keystore.ts:230