Replies (7)

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:
Thanks!! What happens if a NIP44 (v1 or v2) message gets sent to a legacy NIP4 receiver? Does that client handle it?
Ah, giftwraps is NIP24, and that's still there in the latest Amethyst. So, what's the new thing for DMs?