diff options
Diffstat (limited to '17.md')
| -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. | ||