nips/35.md

25 lines
534 B
Markdown
Raw Normal View History

2024-03-14 08:38:37 -04:00
NIP-35
======
Draft Events
------------
`draft` `optional`
This NIP defines kind `31234` as a private draft event for any other event kind.
The draft event is JSON-stringified, [NIP44-encrypted](44.md) to the owner's public key and placed inside the `.content` of the event.
An additional `k` tag identifies the kind of the draft event.
```js
{
"kind": 31234,
"tags": [
["d", "<identifier>"],
["k", "<kind of the draft event>"],
],
"content": nip44Encrypt(JSON.stringify(draft_event)),
// other fields
}
```