mirror of
https://github.com/edufeed-org/nips.git
synced 2025-12-10 00:34:32 +00:00
538 B
538 B
NIP-35
Draft Events
draft optional
This NIP defines kind 31234 as a private wrap for drafts of any other event kind.
The draft event is JSON-stringified, NIP44-encrypted to the signer's public key and placed inside the .content of the event.
An additional k tag identifies the kind of the draft event.
{
"kind": 31234,
"tags": [
["d", "<identifier>"],
["k", "<kind of the draft event>"],
],
"content": nip44Encrypt(JSON.stringify(draft_event)),
// other fields
}