encodePrivateKey function
Implementation
Future<String> encodePrivateKey(
String prvKey,
String psw, [
Map<String, dynamic>? options,
]) async {
try {
final response = ReceivePort();
await Isolate.spawn(
_encodePrivateKey,
[response.sendPort, prvKey, psw, options],
);
return (await response.first) as String;
} catch (e) {
rethrow;
}
}