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