decryptAccount method

Future decryptAccount(
  1. String? passphrase
)

account decyption

Implementation

Future decryptAccount(String? passphrase) async {
  if (this.privateKey is String &&
      Account.isPrivateKey.hasMatch(this.privateKey!)) {
    return null;
  }
  // this.privateKey = await decrypt(json.decode(this.privateKey), passphrase);
  this.privateKey =
      await asyncDecrypt(json.decode(this.privateKey!), passphrase);

  // return this;
}