upleb.uk

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

summaryrefslogtreecommitdiff
path: root/11.md
diff options
context:
space:
mode:
Diffstat (limited to '11.md')
-rw-r--r--11.md13
1 files changed, 6 insertions, 7 deletions
diff --git a/11.md b/11.md
index ec46b36..c71f89e 100644
--- a/11.md
+++ b/11.md
@@ -118,7 +118,7 @@ field of any event. This is a count of unicode characters. After
118serializing into JSON it may be larger (in bytes), and is still 118serializing into JSON it may be larger (in bytes), and is still
119subject to the `max_message_length`, if defined. 119subject to the `max_message_length`, if defined.
120 120
121- `min_pow_difficulty`: new events will require at least this difficulty of PoW, 121- `min_pow_difficulty`: new events will require at least this difficulty of PoW,
122based on [NIP-13](13.md), or they will be rejected by this server. 122based on [NIP-13](13.md), or they will be rejected by this server.
123 123
124- `auth_required`: this relay requires [NIP-42](42.md) authentication 124- `auth_required`: this relay requires [NIP-42](42.md) authentication
@@ -129,7 +129,7 @@ Even if set to False, authentication may be required for specific actions.
129 129
130### Event Retention ### 130### Event Retention ###
131 131
132There may be a cost associated with storing data forever, so relays 132There may be a cost associated with storing data forever, so relays
133may wish to state retention times. The values stated here are defaults 133may wish to state retention times. The values stated here are defaults
134for unauthenticated users and visitors. Paid users would likely have 134for unauthenticated users and visitors. Paid users would likely have
135other policies. 135other policies.
@@ -151,7 +151,7 @@ all, and preferably an error will be provided when those are received.
151} 151}
152``` 152```
153 153
154`retention` is a list of specifications: each will apply to either all kinds, or 154`retention` is a list of specifications: each will apply to either all kinds, or
155a subset of kinds. Ranges may be specified for the kind field as a tuple of inclusive 155a subset of kinds. Ranges may be specified for the kind field as a tuple of inclusive
156start and end values. Events of indicated kind (or all) are then limited to a `count` 156start and end values. Events of indicated kind (or all) are then limited to a `count`
157and/or time period. 157and/or time period.
@@ -161,8 +161,7 @@ a specific `kind` number, by giving a retention time of zero for those `kind` va
161While that is unfortunate, it does allow clients to discover servers that will 161While that is unfortunate, it does allow clients to discover servers that will
162support their protocol quickly via a single HTTP fetch. 162support their protocol quickly via a single HTTP fetch.
163 163
164There is no need to specify retention times for _ephemeral events_ as defined 164There is no need to specify retention times for _ephemeral events_ since they are not retained.
165in [NIP-16](16.md) since they are not retained.
166 165
167 166
168### Content Limitations ### 167### Content Limitations ###
@@ -271,7 +270,7 @@ A URL pointing to an image to be used as an icon for the relay. Recommended to b
271As of 2 May 2023 the following `curl` command provided these results. 270As of 2 May 2023 the following `curl` command provided these results.
272 271
273 >curl -H "Accept: application/nostr+json" https://eden.nostr.land 272 >curl -H "Accept: application/nostr+json" https://eden.nostr.land
274 273
275 {"name":"eden.nostr.land", 274 {"name":"eden.nostr.land",
276 "description":"Eden Nostr Land - Toronto 1-01", 275 "description":"Eden Nostr Land - Toronto 1-01",
277 "pubkey":"00000000827ffaa94bfea288c3dfce4422c794fbb96625b6b31e9049f729d700", 276 "pubkey":"00000000827ffaa94bfea288c3dfce4422c794fbb96625b6b31e9049f729d700",
@@ -293,5 +292,5 @@ As of 2 May 2023 the following `curl` command provided these results.
293 "payment_required":true}, 292 "payment_required":true},
294 "payments_url":"https://eden.nostr.land/invoices", 293 "payments_url":"https://eden.nostr.land/invoices",
295 "fees":{"admission":[{"amount":5000000,"unit":"msats"}], 294 "fees":{"admission":[{"amount":5000000,"unit":"msats"}],
296 "publication":[]}}, 295 "publication":[]}},
297 "icon": "https://nostr.build/i/53866b44135a27d624e99c6165cabd76ac8f72797209700acb189fce75021f47.jpg" 296 "icon": "https://nostr.build/i/53866b44135a27d624e99c6165cabd76ac8f72797209700acb189fce75021f47.jpg"