Add NIP-17 gift-wrapped direct messages
Add outbound NIP-17 private messaging: build the kind-14 rumor -> kind-13 seal -> kind-1059 gift wrap chain on the existing NIP-44 primitives, wrapped in NostrDmActor (WrapDirectMessage/GiftWrapped). Publishing is left to NostrPublishActor. Extract nostrEventId() from signNostrEvent so the unsigned rumor can compute its id without a signature. Export the new actor and nip17 helpers. Add a round-trip test (wrap -> unwrap) and a negative decryption test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
582b0505cb
commit
f8ccd5d56b
5 changed files with 293 additions and 3 deletions
|
|
@ -10,3 +10,5 @@ export 'src/nostr_account_actor.dart';
|
|||
export 'src/nip46_signer_actor.dart';
|
||||
export 'src/nip19.dart';
|
||||
export 'src/nip05.dart';
|
||||
export 'src/nip17.dart';
|
||||
export 'src/nostr_dm_actor.dart';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue