nip44Encrypt method
Implementation
@override
Future<Map<dynamic, dynamic>> nip44Encrypt(
String plaintext,
String currentUser,
String pubKey,
String? id,
) async {
final arguments = {
"type": "nip44_encrypt",
"uri_data": plaintext,
"current_user": currentUser,
"pubKey": pubKey,
"id": id,
};
final data = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(
'nostrsigner',
arguments,
);
return data ?? {};
}