diff options
| author | Vitor Pamplona <vitor@vitorpamplona.com> | 2025-01-13 12:04:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-13 09:04:46 -0800 |
| commit | 0e3d1cd5d82754d0eb69ddb847f6532b4dade3be (patch) | |
| tree | b59e67b5ff3ebf5375ab8b112f9a2fcadd4fd0bc /01.md | |
| parent | 5b6ca881e24d5a6e089d3c577c6c7cab98bbb19d (diff) | |
Moves Kind:1 definition to NIP-10 (#1076)
Co-authored-by: Michael J <37635304+buttercat1791@users.noreply.github.com>
Diffstat (limited to '01.md')
| -rw-r--r-- | 01.md | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -85,10 +85,11 @@ As a convention, all single-letter (only english alphabet letters: a-z, A-Z) key | |||
| 85 | 85 | ||
| 86 | ### Kinds | 86 | ### Kinds |
| 87 | 87 | ||
| 88 | Kinds specify how clients should interpret the meaning of each event and the other fields of each event (e.g. an `"r"` tag may have a meaning in an event of kind 1 and an entirely different meaning in an event of kind 10002). Each NIP may define the meaning of a set of kinds that weren't defined elsewhere. This NIP defines two basic kinds: | 88 | Kinds specify how clients should interpret the meaning of each event and the other fields of each event (e.g. an `"r"` tag may have a meaning in an event of kind 1 and an entirely different meaning in an event of kind 10002). Each NIP may define the meaning of a set of kinds that weren't defined elsewhere. [NIP-10](10.md), for instance, especifies the `kind:1` text note for social media applications. |
| 89 | |||
| 90 | This NIP defines one basic kind: | ||
| 89 | 91 | ||
| 90 | - `0`: **user metadata**: the `content` is set to a stringified JSON object `{name: <username>, about: <string>, picture: <url, string>}` describing the user who created the event. [Extra metadata fields](24.md#kind-0) may be set. A relay may delete older events once it gets a new one for the same pubkey. | 92 | - `0`: **user metadata**: the `content` is set to a stringified JSON object `{name: <username>, about: <string>, picture: <url, string>}` describing the user who created the event. [Extra metadata fields](24.md#kind-0) may be set. A relay may delete older events once it gets a new one for the same pubkey. |
| 91 | - `1`: **text note**: the `content` is set to the **plaintext** content of a note (anything the user wants to say). Content that must be parsed, such as Markdown and HTML, should not be used. Clients should also not parse content as those. | ||
| 92 | 93 | ||
| 93 | And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation: | 94 | And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation: |
| 94 | 95 | ||