From de9e41077ca2e44f2a08a0d0f47a9b2627c390d9 Mon Sep 17 00:00:00 2001 From: dskvr Date: Tue, 7 Feb 2023 15:12:03 +0100 Subject: [PATCH] A use case, fix text formatting --- 59.md | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/59.md b/59.md index 25942cc3..3786df5f 100644 --- a/59.md +++ b/59.md @@ -25,21 +25,21 @@ The tags should be used to represent the Relay's abilities and meta at a point i ```json ["d", "wss://history.nostr.watch/"] //tagId[] ``` -2. `"o" == tagOnline[0]` Is the relay online (`#o`). `tagOnline[]` **may** be included in the `event.tags[]` array. `tagOnline[1]` **should** be type string as exactly `true` or `false` +2. `"o" == tagOnline[0]` Is the relay online (`#o`). `tagOnline[]` **may** be included in the `event.tags[]` array. `tagOnline[1]` **must** be type string as exactly `true` or `false` ```json ["o", "true"] //tagOnline[] ``` -3. `"r" == tagRead[0]` Was able to read from the relay. `tagRead[]` **may** be included in the `event.tags[]` array. `tagRead[1]` **should** be type string as exactly `true` or `false` +3. `"r" == tagRead[0]` Was able to read from the relay. `tagRead[]` **may** be included in the `event.tags[]` array. `tagRead[1]` **must** be type string as exactly `true` or `false` ```json ["r", "true"] //tagRead[] ``` -4. `"w" == tagWrite[0]` Was able to write to the relay. `tagWrite[]` **may** be included in the `event.tags[]` array. `tagWrite[1]` **should** be type string as exactly `true` or `false` +4. `"w" == tagWrite[0]` Was able to write to the relay. `tagWrite[]` **may** be included in the `event.tags[]` array. `tagWrite[1]` **must** be type string as exactly `true` or `false` ```json ["w", "false"] //tagWrite[] ``` -5. `"s" == tagSsl[0]` Is the relay's SSL valid (`#s`). `tagSsl[]` **may** be included in the `event.tags[]` array. `tagSsl[1]` **should** be type string as exactly `true` or `false` +5. `"s" == tagSsl[0]` Is the relay's SSL valid. `tagSsl[]` **may** be included in the `event.tags[]` array. `tagSsl[1]` **must** be type string as exactly `true` or `false` ```json -["s", "true"] //tagSSL[] +["s", "true"] //tagSsl[] ``` 6. `"t" == tagTopic[0]` Topics relavant to the relay. `tagTopic[]` **may** be included in the `event.tags[]` array. `tagTopic[1]` **should** be string ```json @@ -58,11 +58,25 @@ The tags should be used to represent the Relay's abilities and meta at a point i ["y", "2001:db8:3333:4444:5555:6666:7777:8888"] //tagIPv6[] ``` +Minimal Requirements: +```json +{ + "id": "", + "pubkey": "", + "created_at": "", + "signature": "", + "content": "{}", + "tags": [ + ["d","wss://relay.snort.social/"] + ] +} +``` + Example Event: ```json { "id": "", - "pubkey": "", + "pubkey": "", "created_at": "", "signature": "", "content": "{}", @@ -88,9 +102,10 @@ The `.content` of these events **may** be empty. `.content` **may** contain stri The testing criteria to determine conditions defined in event's tags **may** be subjective and **may** vary between publishers. ## Consumption -The data in `30303` **may** be erroneous, intentionally or otherwise. When accuracy is required, the data in `30303` events **should** be subscribed to by populating tthe `authors` filter array with the pubkeys of trusted **publishers** +The data in `30303` **may** be erroneous, intentionally or otherwise. When accuracy is required, the data in `30303` events **should** be subscribed to by populating the `authors` filter array with the pubkeys of trusted **publishers** ## Use Cases +- Aggregate relays quickly. - A lite social client identifies relays that were recently reported to be online without client-side tests - A social client may find relays where a particular topic is popular. - A social client may find relays based on their geographic proximity