encryptAccount method

Future encryptAccount(
  1. String? passphrase, [
  2. Map<String, dynamic>? options
])

account encryption

Implementation

Future encryptAccount(String? passphrase,
    [Map<String, dynamic>? options]) async {
  if (this.privateKey is String &&
      Account.isPrivateKey.hasMatch(this.privateKey!)) {
    // this.privateKey = await encrypt(this.privateKey, passphrase, options);
    this.privateKey =
        await asyncEncrypt(this.privateKey, passphrase, options);
  } else {
    return null;
  }
}