Update NIP-115 implementation
This commit is contained in:
parent
669d9415e2
commit
f799f7e91a
29
66.md
29
66.md
|
@ -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"]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue