upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpablof7z <pfer@me.com>2024-12-19 15:22:39 +0000
committerpablof7z <pfer@me.com>2024-12-19 15:23:12 +0000
commit739ba04e9f1cbb2083cb6b58079458126a2059bd (patch)
treea1eed69f2af5650f88d3f9a5b3e54c519d75dc8a
parent8d144906923132a245e50951464e1841478c923b (diff)
add checkpoint event
-rw-r--r--37.md13
-rw-r--r--README.md1
2 files changed, 14 insertions, 0 deletions
diff --git a/37.md b/37.md
index 1ade59d..9ef728b 100644
--- a/37.md
+++ b/37.md
@@ -30,6 +30,19 @@ A blanked `.content` means this draft has been deleted by a client but relays st
30 30
31Tags `e` and `a` identify one or more anchor events, such as parent events on replies. 31Tags `e` and `a` identify one or more anchor events, such as parent events on replies.
32 32
33## Checkpoints
34`kind:1234` defines checkpoints that belong to a parent `kind:31234` event. These can serve to provide a revision history of a parent event.
35
36```js
37{
38 "kind": 1234,
39 "tags": [
40 ["a", "31234:<pubkey>:<identifier>"]
41 ],
42 "content": nip44Encrypt(JSON.stringify(draft_event)),
43}
44```
45
33## Relay List for Private Content 46## Relay List for Private Content
34 47
35Kind `10013` indicates the user's preferred relays to store private events like Drafts. The event MUST include a list of `relay` URLs in private tags. Private tags are JSON Stringified, NIP-44-encrypted to the signer's keys and placed inside the .content of the event. 48Kind `10013` indicates the user's preferred relays to store private events like Drafts. The event MUST include a list of `relay` URLs in private tags. Private tags are JSON Stringified, NIP-44-encrypted to the signer's keys and placed inside the .content of the event.
diff --git a/README.md b/README.md
index 55de842..e356f1f 100644
--- a/README.md
+++ b/README.md
@@ -130,6 +130,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
130| `818` | Merge Requests | [54](54.md) | 130| `818` | Merge Requests | [54](54.md) |
131| `1021` | Bid | [15](15.md) | 131| `1021` | Bid | [15](15.md) |
132| `1022` | Bid confirmation | [15](15.md) | 132| `1022` | Bid confirmation | [15](15.md) |
133| `1234` | Draft Checkpoint | [37](37.md) |
133| `1040` | OpenTimestamps | [03](03.md) | 134| `1040` | OpenTimestamps | [03](03.md) |
134| `1059` | Gift Wrap | [59](59.md) | 135| `1059` | Gift Wrap | [59](59.md) |
135| `1063` | File Metadata | [94](94.md) | 136| `1063` | File Metadata | [94](94.md) |