Do you have a link to the diff of v2?
Login to reply
Replies (6)
People want to forget v1 existed so there is no good doc to show. But essentially, v2 fixed some issues with message length (smaller messages would yield smaller encrypted bytes, which is not ideal). We also got rid XChaCha because it is not standardized and the added protections aren't needed inside Nostr messages.
v1: XChaCha20 with sha256(parity + ecdh) as a shared key per conversation
v2: secp256k1 ECDH, HKDF, padding, ChaCha20, HMAC-SHA256, base64
v1:
v2: 
GitHub
nips/44.md at 7f98a7b8849c16f9d324e0ea15db4efda0ee84fb · coracle-social/nips
Nostr Implementation Possibilities. Contribute to coracle-social/nips development by creating an account on GitHub.
GitHub
nips/44.md at master · nostr-protocol/nips
Nostr Implementation Possibilities. Contribute to nostr-protocol/nips development by creating an account on GitHub.
No. The encryption is not backwards compatible so each other client will have to decide to support it or not.
And this replaces the giftwraps which were previously implemented in Amethyst Incognito DMs?
Ah, giftwraps is NIP24, and that's still there in the latest Amethyst.
So, what's the new thing for DMs?
Nip44 is used by GiftWraps, which is used by nip 24. :)
Of course, that makes sense!
Nipception