encryptAccount method
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;
}
}