upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/59.md
diff options
context:
space:
mode:
Diffstat (limited to '59.md')
-rw-r--r--59.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/59.md b/59.md
index c990236..7eff2b8 100644
--- a/59.md
+++ b/59.md
@@ -58,7 +58,7 @@ Tags MUST must always be empty in a `kind:13`. The inner event MUST always be un
58## 3. Gift Wrap Event Kind 58## 3. Gift Wrap Event Kind
59 59
60A `gift wrap` event is a `kind:1059` event that wraps any other event. `tags` SHOULD include any information 60A `gift wrap` event is a `kind:1059` event that wraps any other event. `tags` SHOULD include any information
61needed to route the event to its intended recipient, including the recipient's `p` tag or NIP-13 proof of work. 61needed to route the event to its intended recipient, including the recipient's `p` tag or [NIP-13](13.md) proof of work.
62 62
63```js 63```js
64{ 64{
@@ -74,7 +74,7 @@ needed to route the event to its intended recipient, including the recipient's `
74 74
75# Encrypting Payloads 75# Encrypting Payloads
76 76
77Encryption is done following NIP-44 on the JSON-encoded event. Place the the encryption payload in the `.content` 77Encryption is done following [NIP-44](44.md) on the JSON-encoded event. Place the encryption payload in the `.content`
78of the wrapper event (either a `seal` or a `gift wrap`). 78of the wrapper event (either a `seal` or a `gift wrap`).
79 79
80# Other Considerations 80# Other Considerations
@@ -87,13 +87,13 @@ time-analysis attacks. Note that some relays don't serve events dated in the fut
87SHOULD be in the past. 87SHOULD be in the past.
88 88
89Relays may choose not to store gift wrapped events due to them not being publicly useful. Clients MAY choose 89Relays may choose not to store gift wrapped events due to them not being publicly useful. Clients MAY choose
90to attach a certain amount of proof-of-work to the wrapper event per NIP-13 in a bid to demonstrate that 90to attach a certain amount of proof-of-work to the wrapper event per [NIP-13](13.md) in a bid to demonstrate that
91the event is not spam or a denial-of-service attack. 91the event is not spam or a denial-of-service attack.
92 92
93To protect recipient metadata, relays SHOULD guard access to kind 1059 events based on user AUTH. When 93To protect recipient metadata, relays SHOULD guard access to `kind 1059` events based on user AUTH. When
94possible, clients should only send wrapped events to relays that offer this protection. 94possible, clients should only send wrapped events to relays that offer this protection.
95 95
96To protect recipient metadata, relays SHOULD only serve kind 1059 events intended for the marked recipient. 96To protect recipient metadata, relays SHOULD only serve `kind 1059` events intended for the marked recipient.
97When possible, clients should only send wrapped events to `read` relays for the recipient that implement 97When possible, clients should only send wrapped events to `read` relays for the recipient that implement
98AUTH, and refuse to serve wrapped events to non-recipients. 98AUTH, and refuse to serve wrapped events to non-recipients.
99 99