upleb.uk

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

summaryrefslogtreecommitdiff
path: root/35.md
diff options
context:
space:
mode:
Diffstat (limited to '35.md')
-rw-r--r--35.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/35.md b/35.md
new file mode 100644
index 0000000..ba2c786
--- /dev/null
+++ b/35.md
@@ -0,0 +1,25 @@
1NIP-35
2======
3
4Draft Events
5------------
6
7`draft` `optional`
8
9This NIP defines kind `31234` as a private draft event for any other event kind.
10
11The draft event is JSON-stringified, [NIP44-encrypted](44.md) to the owner's public key and placed inside the `.content` of the event.
12
13An additional `k` tag identifies the kind of the draft event.
14
15```js
16{
17 "kind": 31234,
18 "tags": [
19 ["d", "<identifier>"],
20 ["k", "<kind of the draft event>"],
21 ],
22 "content": nip44Encrypt(JSON.stringify(draft_event)),
23 // other fields
24}
25``` \ No newline at end of file