upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemisol <45574030+Semisol@users.noreply.github.com>2023-08-09 00:55:21 +0200
committerGitHub <noreply@github.com>2023-08-09 00:55:21 +0200
commit77b626d74871fb195dfd7b211a75af97753333dd (patch)
treef5efc5979775385c19394b0efc2ff24f28ba8c8a
parent892fe9e4004dbb515d71729b92d0432665f8e823 (diff)
nips over nostr
-rw-r--r--17.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/17.md b/17.md
new file mode 100644
index 0000000..6b5f3fc
--- /dev/null
+++ b/17.md
@@ -0,0 +1,26 @@
1# NIPs over Nostr
2
3`draft` `optional` `author:Semisol`
4
5This NIP defines a method to do NIPs over Nostr.
6
7## NIP event
8
9A NIP event is an event with kind 9777. The content is in Markdown and is the NIP text.
10
11A 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
15The 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.