From b1a241b0b065bc81d59dac802fa3b25653396713 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 7 Apr 2023 16:58:00 +0300 Subject: [PATCH] doc: initial commit --- 704.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 704.md diff --git a/704.md b/704.md new file mode 100644 index 0000000..032fff9 --- /dev/null +++ b/704.md @@ -0,0 +1,19 @@ +NIP-704 +====== + +Key derivation for Encrypted Direct Messages +----------------------------------- + +`draft` `optional` `author:motorina0` + +This NIP defines a way for two clients to derive `one-use-only` keys for sending and recieving `kind:4` events. + +## Motivation +The content of `Direct Messages` (NIP-04)[https://github.com/nostr-protocol/nips/blob/master/04.md] is encrypted, but everyone can see who is chatting with whom. This is far from ideal from a privacy perspective. + +## Suggestion +For the maximum of privacy the two participants of a `Direct Message` exchange SHOULD use a different public key for each `kind:4` event. +This means that each participant has to: + - build a `direct message top key` from which it will derive keys to send `kind:4` events and keys where to recieve (listen for) `kind:4` events + - share this `direct message top key` with its DM peer +