better explainer of the event sending

This commit is contained in:
Vitor Pamplona 2024-10-07 18:25:37 -04:00
parent b0ee19e159
commit 98fa0406de

6
97.md
View File

@ -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