diff options
| author | fiatjaf_ <fiatjaf@gmail.com> | 2023-08-13 13:47:45 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-13 13:47:45 -0300 |
| commit | 72bb8a128b2d7d3c2c654644cd68d0d0fe58a3b1 (patch) | |
| tree | 9d2ee236bf72d540b5eca364a1ff60449dd9aa04 /11.md | |
| parent | a5047326d4d7c28e66c5d1262c252b86a1c8fe67 (diff) | |
merge nips 12, 16, 20 and 33 into nip 01 (#703)
Co-authored-by: Viktor Vsk <me@viktorvsk.com>
Diffstat (limited to '11.md')
| -rw-r--r-- | 11.md | 13 |
1 files changed, 6 insertions, 7 deletions
| @@ -118,7 +118,7 @@ field of any event. This is a count of unicode characters. After | |||
| 118 | serializing into JSON it may be larger (in bytes), and is still | 118 | serializing into JSON it may be larger (in bytes), and is still |
| 119 | subject to the `max_message_length`, if defined. | 119 | subject 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, |
| 122 | based on [NIP-13](13.md), or they will be rejected by this server. | 122 | based 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 | ||
| 132 | There may be a cost associated with storing data forever, so relays | 132 | There may be a cost associated with storing data forever, so relays |
| 133 | may wish to state retention times. The values stated here are defaults | 133 | may wish to state retention times. The values stated here are defaults |
| 134 | for unauthenticated users and visitors. Paid users would likely have | 134 | for unauthenticated users and visitors. Paid users would likely have |
| 135 | other policies. | 135 | other 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 |
| 155 | a subset of kinds. Ranges may be specified for the kind field as a tuple of inclusive | 155 | a subset of kinds. Ranges may be specified for the kind field as a tuple of inclusive |
| 156 | start and end values. Events of indicated kind (or all) are then limited to a `count` | 156 | start and end values. Events of indicated kind (or all) are then limited to a `count` |
| 157 | and/or time period. | 157 | and/or time period. |
| @@ -161,8 +161,7 @@ a specific `kind` number, by giving a retention time of zero for those `kind` va | |||
| 161 | While that is unfortunate, it does allow clients to discover servers that will | 161 | While that is unfortunate, it does allow clients to discover servers that will |
| 162 | support their protocol quickly via a single HTTP fetch. | 162 | support their protocol quickly via a single HTTP fetch. |
| 163 | 163 | ||
| 164 | There is no need to specify retention times for _ephemeral events_ as defined | 164 | There is no need to specify retention times for _ephemeral events_ since they are not retained. |
| 165 | in [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 | |||
| 271 | As of 2 May 2023 the following `curl` command provided these results. | 270 | As 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" |