Break out chat and threads from nip 29 (#1591)

This commit is contained in:
hodlbod
2024-11-21 06:55:23 -08:00
committed by GitHub
parent 84aeb10d39
commit 1e47fd7557
3 changed files with 64 additions and 33 deletions

29
C7.md Normal file
View File

@@ -0,0 +1,29 @@
NIP-C7
======
Chats
-----
`draft` `optional`
A chat message is a `kind 9` event.
```json
{
"kind": 9,
"content": "GM",
"tags": []
}
```
A reply to a `kind 9` is an additional `kind 9` which quotes the parent using a `q` tag.
```json
{
"kind": 9,
"content": "nostr:nevent1...\nyes",
"tags": [
["q", <event-id>, <relay-url>, <pubkey>]
]
}
```