mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 08:55:52 -05:00
add two new tags and fix some small typos
This commit is contained in:
parent
24ed654e4c
commit
3c2f2c6997
14
59.md
14
59.md
|
@ -17,7 +17,7 @@ To store relay meta-data and the result of subjective checks as queryable [NIP-1
|
||||||
`created_at` **should** be interpreted by consumers as `updated_at`
|
`created_at` **should** be interpreted by consumers as `updated_at`
|
||||||
|
|
||||||
### `event.tags`
|
### `event.tags`
|
||||||
Relay status events have **two** (1) required tags and **eight** (8) optional tags.
|
Relay status events have **one** (1) required tags and **nine** (9) optional tags.
|
||||||
|
|
||||||
The tags should be used to represent the Relay's abilities and meta at a point in time. Below the `tags schema` is expressed using pseudo-types for reasons of communication and brevity, for example `tagDescriptor[]`.
|
The tags should be used to represent the Relay's abilities and meta at a point in time. Below the `tags schema` is expressed using pseudo-types for reasons of communication and brevity, for example `tagDescriptor[]`.
|
||||||
|
|
||||||
|
@ -49,12 +49,22 @@ The tags should be used to represent the Relay's abilities and meta at a point i
|
||||||
```json
|
```json
|
||||||
["ssl", "true"] //tagSsl[]
|
["ssl", "true"] //tagSsl[]
|
||||||
```
|
```
|
||||||
8. `"ip" == tagIp[0]` Relay IP. `ip[]` **may** be included in the `event.tags[]` array. `tagIp[1]` **must** be string. There **may** be more than one (1) `tagIp[]`
|
8. `"ip" == tagIp[0]` Relay IP. `tagIp[]` **may** be included in the `event.tags[]` array. `tagIp[1]` **must** be string. There **may** be more than one (1) `tagIp[]`
|
||||||
```json
|
```json
|
||||||
["ip", "1.1.1.1"], //tagIp[]
|
["ip", "1.1.1.1"], //tagIp[]
|
||||||
["ip", "2001:db8:3333:4444:5555:6666:7777:8888"] //tagIp[]
|
["ip", "2001:db8:3333:4444:5555:6666:7777:8888"] //tagIp[]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
9. `"events" == tagEvents[0]` Number of events on relay. `tagEvents[]` **may** be included in the `event.tags[]` array. `tagEvents[1]` **must** be string. There **should** only be **one (1)** `tagEvents[]`
|
||||||
|
```json
|
||||||
|
["events", "502341"], //tagIp[]
|
||||||
|
```
|
||||||
|
|
||||||
|
10. `"users" == tagUsers[0]` Relay IP. `tagUsers[]` **may** be included in the `event.tags[]` array. `tagUsers[1]` **must** be string. There **should** be no more than **one (1)** `tagUsers[]`
|
||||||
|
```json
|
||||||
|
["users","37482"]
|
||||||
|
```
|
||||||
|
|
||||||
Example with Minimum Requirements:
|
Example with Minimum Requirements:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user