decryptNip44 method
Implementation
@override
Future<String?> decryptNip44({
required String ciphertext,
required String senderPubKey,
}) async {
if (privateKey == null || privateKey!.isEmpty) {
throw Exception('Private key is required for decryption');
}
final crypto = await _getCrypto();
final result = await crypto
.nip44Decrypt(privateKey!.toJS, senderPubKey.toJS, ciphertext.toJS)
.toDart;
return result.toDart;
}