Migrate private messaging from NIP-04 to NIP-17 #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
NIP-04 (the original Nostr direct message scheme) leaks significant metadata:
Solution
Migrate to NIP-17 which combines:
Privacy benefits of NIP-17:
References
Future Consideration
For large group messaging, consider NIP-EE (MLS-based) which provides better scalability and forward secrecy, though NIP-17 is sufficient for 1-to-1 and small group conversations.
Related: nostrmarket
This also affects
aiolabs/nostrmarketwhich uses private messaging for merchant/customer communication.Recommended approach: Implement backwards compatibility
This allows gradual migration without breaking existing conversations.