diff options
| author | Semisol <45574030+Semisol@users.noreply.github.com> | 2023-08-09 00:55:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-09 00:55:21 +0200 |
| commit | 77b626d74871fb195dfd7b211a75af97753333dd (patch) | |
| tree | f5efc5979775385c19394b0efc2ff24f28ba8c8a | |
| parent | 892fe9e4004dbb515d71729b92d0432665f8e823 (diff) | |
nips over nostr
| -rw-r--r-- | 17.md | 26 |
1 files changed, 26 insertions, 0 deletions
| @@ -0,0 +1,26 @@ | |||
| 1 | # NIPs over Nostr | ||
| 2 | |||
| 3 | `draft` `optional` `author:Semisol` | ||
| 4 | |||
| 5 | This NIP defines a method to do NIPs over Nostr. | ||
| 6 | |||
| 7 | ## NIP event | ||
| 8 | |||
| 9 | A NIP event is an event with kind 9777. The content is in Markdown and is the NIP text. | ||
| 10 | |||
| 11 | A NIP event can be identified in multiple ways: | ||
| 12 | - `50001:<author>:<d tag>`: Represents the NIP. | ||
| 13 | - `!50001:<author>:<version>@<id>:<d tag>`: Represents a specific version of this NIP. The ID may be omitted. | ||
| 14 | |||
| 15 | The following tags may be in a NIP event (bold ones are mandatory, and underlined ones may be used more than once): | ||
| 16 | - **`d`**: A distinguishing tag for this NIP. A NIP event is identified by the author's public key and this d tag. | ||
| 17 | - **`v`**: The version for this NIP, as a limited subset of SemVer in the format `major.minor.patch`. | ||
| 18 | - More than one event can exist for the same version of a NIP. This is intended for minor edits, and if this is encountered, the event with the higher created_at is used, | ||
| 19 | and this SHOULD be avoided when possible. | ||
| 20 | - **__`p`__**: An author or contributor of this NIP. The parameter after the public key can be specified the type of contribution (more may be added): | ||
| 21 | - `author`: An author of this NIP. | ||
| 22 | - `contrib`: Someone that contributed to this NIP. | ||
| 23 | - __`D`__: Depends on tag, in the format `["D", "50001:<author>:<d tag>", "<version>@<id>"]`. The ID may not be omitted. | ||
| 24 | - __`E`__: Extends tag, in the same format as the `D` tag. | ||
| 25 | - __`K`__: A kind or kind range this NIP uses, such as `0` or `10000-19999`. | ||
| 26 | - __**`license`**__: A license for this NIP as an SPDX license identifier. Multiple tags mean any can be chosen by the user. | ||