I am trying to identify the best way to hide metadata from direct messages (NIP-04).

Has anyone used these techniques? #askNostr

https://0x46.net/thoughts/2023/03/27/nostr-private-messages/

Reply to this note

Please Login to reply.

Discussion

https://nips.nostr.com/17 with private (trusted) relays.

Thank you very much.

Would’ve been slaughtered if I posted on stack overflow…

I think, client support of alternatives varies but there is one using giftwrapps and then there is nip17 that fiatjaf sent your way already. I'm not sure about signalling support and general support with current clients but it's poor I think.

Coracle uses NIP44 (new encryption) and NIP59 (gift wrapping) for DM and group DM threads. But I’m not sure that it “follows” the NIP17 spec? nostr:npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn ?

If imma integrate private DMs into my “social onboarding” client … which wd be the best way to do this? Coracle way or NIP17? nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6

(or maybe I should just implement NIP04 and wait for dust to clear?)

Coracle should be following NIP 17, messages interoperate with Amethyst at least.

Private groups use a draft NIP 87, totally different. Use NIP 17, don't use NIP 04

also…

It’s just I didn’t find mention of Kind “14” anywhere in your codebase, nor in nostr-tools. So how is NIP17 implemented in coracle?

take a look at `sendMessage` in `src/engine/commands.ts`