upleb.uk

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

summaryrefslogtreecommitdiff
path: root/C7.md
diff options
context:
space:
mode:
authorhodlbod <jstaab@protonmail.com>2024-11-21 06:55:23 -0800
committerGitHub <noreply@github.com>2024-11-21 11:55:23 -0300
commit1e47fd75572704b84cf484ce52394fc7ea7d4067 (patch)
treea95fbc731f2fdf9ac778a6a5be52b5389c2f8b2e /C7.md
parent84aeb10d395d0b9a3379c81aacf5b1ff4d675499 (diff)
Break out chat and threads from nip 29 (#1591)
Diffstat (limited to 'C7.md')
-rw-r--r--C7.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/C7.md b/C7.md
new file mode 100644
index 0000000..0d94f18
--- /dev/null
+++ b/C7.md
@@ -0,0 +1,29 @@
1NIP-C7
2======
3
4Chats
5-----
6
7`draft` `optional`
8
9A chat message is a `kind 9` event.
10
11```json
12{
13 "kind": 9,
14 "content": "GM",
15 "tags": []
16}
17```
18
19A reply to a `kind 9` is an additional `kind 9` which quotes the parent using a `q` tag.
20
21```json
22{
23 "kind": 9,
24 "content": "nostr:nevent1...\nyes",
25 "tags": [
26 ["q", <event-id>, <relay-url>, <pubkey>]
27 ]
28}
29```