From 98fa0406de9842211c65acd6b97fc04def26b342 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 7 Oct 2024 18:25:37 -0400 Subject: [PATCH] better explainer of the event sending --- 97.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/97.md b/97.md index 600103c..a9edb10 100644 --- a/97.md +++ b/97.md @@ -56,9 +56,11 @@ Servers SHOULD delete tokens after failure to deliver. ## Sending Events -Servers send new events via the user's preferred system. The event is [NIP-59 GiftWrapped](59.md) to the receiver, but no `p`-tag is added to the wrap event. In that way, the chosen system cannot know which key is receiving this event. +Servers send new events as stringified JSONs in the user's preferred system. -Clients SHOULD try to decrypt the GiftWrap with all logged-in accounts. +The event MUST be [NIP-59 GiftWrapped](59.md) to the receiver. But since it already goes to the destination via the token, no `p`-tag is added to the wrap event. In this way, the chosen system cannot know which key is receiving a notification. + +Clients SHOULD decrypt the GiftWrap with all logged-in accounts to find the user this event is for. ## Event Watcher list