mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
better explainer of the event sending
This commit is contained in:
parent
b0ee19e159
commit
98fa0406de
6
97.md
6
97.md
|
@ -56,9 +56,11 @@ Servers SHOULD delete tokens after failure to deliver.
|
||||||
|
|
||||||
## Sending Events
|
## 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
|
## Event Watcher list
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user