Global Feed Post Login
Replying to Avatar JeffG

Yes. But there are varying levels of encryption and metadata protection.

NIP-04 encrypts the content in a fairly naive way and does nothing to hide metadata.

NIP-44 encrypts the content in a much more robust way but does nothing to hide metadata.

NIP-59 is about "gift-wrapping" events, which uses nip-44 encryption but also hides metadata by nesting the real events in other events.

NIP-17 combines NIP-44 and NIP-59 to get encrypted DMs that hide most metadata but don't give you any forward or post-compromise secrecy (meaning, if you lose your keys, the attacker can decrypt all your past and future messages).

NIP-104 (double ratchet) Uses a format very similar to NIP-17 but a completely different encryption scheme that uses two independent key derivation functions (ratchets) to generate encryption keys and give forward and post-compromise secrecy.

TBH, you can use any of them based on your use case. I think we've been building towards double ratchet for a while though. You also hear the double-ratchet scheme referred to as E2EE (end-to-end encrypted).

Avatar
Louferlou 1y ago

So basically what you are saying is that you are trying to apply OTR to nostr which is a bit like NIP-104 but better or different ?

Reply to this note

Please Login to reply.

Discussion

Avatar
JeffG 1y ago

NIP-104 is the new NIP I'm proposing to do the OTR like double ratchet.

Avatar
Louferlou 1y ago

Understood thank you for your time sir

Thread collapsed
Thread collapsed