Files
buzz/mobile/test/shared/crypto/nip44_interop_test.dart
Tom Brow a94ebece0e Revert "fix(mobile): push every message in your own Solo chats (#8615)" (#8690)
Reverts [#8615](https://github.com/block/buzz/pull/8615).

Mobile push for Solo chats returns to mention-only, matching buzz-app,
which alerts on every message only in DMs. This also removes the
lease-size guards #8615 added, since they existed to fit Solo chats into
the lease.

### Validation

- Clean revert of bad9d26142 with no conflicts.
- Mobile lint and the full mobile test suite pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Tom Brow <tomb@squareup.com>
2026-10-29 15:36:16 -07:00

22 lines
872 B
Dart

import 'package:buzz/shared/crypto/nip44.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
test('decrypts a desktop nostr-rs NIP-44 v2 self-encrypted payload', () {
const privateKey =
'0000000000000000000000000000000000000000000000000000000000000001';
const publicKey =
'79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798';
const desktopCiphertext =
'Au0C/BZ3gT83RnPFiPYGr70BuEyKDlZrk1nEJUDZbkoNgpSjE7JUKRb3VRbegcQYUvNT2Qayf3DkfuSb1M6l70IDpsQ25y8xwDA+uEreyRxDdZ5tQF+C9iB3Qr0vinFQpbR9f0SIvUahwAzyHBMdZ1butlCHi9aqv0C1/w1MWMWeoGaPm4XtkhJSPawCGMuFVw1Z8r64bxMSI6EThc4HtR9p4Q==';
expect(
nip44Decrypt(
getConversationKey(privateKey, publicKey),
desktopCiphertext,
),
'{"version":1,"theme":"catppuccin-latte","accent":"#f97316","followSystem":false}',
);
});
}