What is Nostr?
Anthony Accioly
npub1a6w…0tyc
2024-10-15 20:39:15

Anthony Accioly on Nostr: Hi folks, I'm trying to figure out the expected behaviour for NIP-17 enabled clients ...

Hi folks,

I'm trying to figure out the expected behaviour for NIP-17 enabled clients when posting GiftWrapped DMs.

Assume two users:

Alice: Configured "relay1.example.com" as her preferred DM relay (the only relay listed in Alice's 10050 DM list).
Bob: Configured "relay2.example.com" as his preferred DM relay.

When Alice sends a GiftWrapped DM to Bob, should Alice's Nostr client:

1. Send a Kind 1059 event, tagging Bob's pubkey, to "relay2.example.com"?
2. Also send a copy of the above event to "relay1.example.com" for Alice's own record?

Is that correct? If it is, should the Kind 1059 event sent to "relay1.example.com" still be tagged with Bob's (the receiver's) pubkey? Or should it be tagged with Alice's (the sender's) pubkey?

#asknostr #cryptography #dms #giftwrap #nip17 #nip59
Author Public Key
npub1a6we08n7zsv2na689whc9hykpq4q6sj3kaauk9c2dm8vj0adlajq7w0tyc