Update NIP-115 implementation

This commit is contained in:
Sandwich 2024-06-25 11:37:08 +02:00 committed by GitHub
parent 669d9415e2
commit f799f7e91a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 18 deletions

31
66.md
View File

@ -112,11 +112,9 @@ To provide a directory of monitors, their intent to publish, their criteria and
- `g`: `NIP-66` leverages a draft NIP for geo tags, which is backwards compatible with `0` collisions for legacy `g` tags from `NIP-52`. See [YAGT](https://github.com/nostr-protocol/nips/pull/952)
```json
[ "G", "countryCode" ]
[ "g", "US", "countryCode"]
[ "g", "USA", "countryCode" ]
[ "G", "regionCode" ]
[ "g", "US-CA", "regionCode"]
[ "G", "US", "countryCode"] //NIP-115
[ "G", "USA", "countryCode" ] //NIP-115
[ "G", "US-CA", "regionCode"] //NIP-115, ISO-3166-2
[ "g", "9r1652whz" ]
[ "g", "9r1652wh" ]
[ "g", "9r1652w" ]
@ -167,9 +165,9 @@ Monitors **should** have the following
[ "k", "30066" ],
[ "k", "30166" ],
["g", "ww8p1r4t8"],
["G", "countryCode"],
["g", "NL", "countryCode"]
["G", "NL", "countryCode"],
["g", "ww8p1r4t8"]
]
}
```
@ -190,7 +188,7 @@ Enables protocol-level discovery of relays on a variety of parameters while ommi
#### Indexed Tags
- `d` The relay URL. The `#d` tag **must** be included in the `event.tags[]` array. Index position `1` **must** be the relay websocket URL. The URL **SHOULD** be [normalized](https://datatracker.ietf.org/doc/html/rfc3986#section-6)
```json
[ "d", "wss://history.nostr.watch/"]
[ "d", "wss://somerelay.abc"]
```
- `n`: Network
@ -235,12 +233,10 @@ Enables protocol-level discovery of relays on a variety of parameters while ommi
- `g`: `NIP-66` leverages a draft NIP for geo tags, which is backwards compatible with `0` collisions for legacy `g` tags from `NIP-52`. See [YAGT](https://github.com/nostr-protocol/nips/pull/952)
```json
[ "G", "countryCode" ],
[ "g", "US", "countryCode"],
[ "g", "USA", "countryCode" ],
[ "G", "regionCode" ],
[ "g", "US-CA", "regionCode"],
[ "g", "9r1652whz" ],
[ "g", "US", "countryCode"], //NIP-115
[ "g", "USA", "countryCode" ], //NIP-115
[ "g", "US-CA", "regionCode"], //NIP-115
[ "g", "9r1652whz" ], //NIP-52
[ "g", "9r1652wh" ],
[ "g", "9r1652w" ],
[ "g", "9r1652" ],
@ -289,8 +285,7 @@ _Relay was online, and you can find it using a bunch of different indexable tags
["l", "es"],
["l", "fr"],
["g", "ww8p1r4t8"],
["G", "countryCode"],
["g", "NL", "countryCode"]
["G", "NL", "countryCode"]
]
}
```
@ -497,4 +492,4 @@ Any test results that cannot be expressed through `NIP-66` **should** be ammende
9. **Language and Content Filtering**: Identify relays catering to specific languages or content types, enabling users to engage in a more targeted and relevant social networking experience.
10. **Data-Driven Relay Selection**: Make informed choices about which relays to connect to, based on comprehensive metadata including user counts, event frequencies, network types and more.
10. **Data-Driven Relay Selection**: Make informed choices about which relays to connect to, based on comprehensive metadata including user counts, event frequencies, network types and more.