mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
add checkpoint event
This commit is contained in:
parent
8d14490692
commit
739ba04e9f
13
37.md
13
37.md
|
@ -30,6 +30,19 @@ A blanked `.content` means this draft has been deleted by a client but relays st
|
||||||
|
|
||||||
Tags `e` and `a` identify one or more anchor events, such as parent events on replies.
|
Tags `e` and `a` identify one or more anchor events, such as parent events on replies.
|
||||||
|
|
||||||
|
## Checkpoints
|
||||||
|
`kind:1234` defines checkpoints that belong to a parent `kind:31234` event. These can serve to provide a revision history of a parent event.
|
||||||
|
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
"kind": 1234,
|
||||||
|
"tags": [
|
||||||
|
["a", "31234:<pubkey>:<identifier>"]
|
||||||
|
],
|
||||||
|
"content": nip44Encrypt(JSON.stringify(draft_event)),
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Relay List for Private Content
|
## Relay List for Private Content
|
||||||
|
|
||||||
Kind `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.
|
Kind `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.
|
||||||
|
|
|
@ -130,6 +130,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
||||||
| `818` | Merge Requests | [54](54.md) |
|
| `818` | Merge Requests | [54](54.md) |
|
||||||
| `1021` | Bid | [15](15.md) |
|
| `1021` | Bid | [15](15.md) |
|
||||||
| `1022` | Bid confirmation | [15](15.md) |
|
| `1022` | Bid confirmation | [15](15.md) |
|
||||||
|
| `1234` | Draft Checkpoint | [37](37.md) |
|
||||||
| `1040` | OpenTimestamps | [03](03.md) |
|
| `1040` | OpenTimestamps | [03](03.md) |
|
||||||
| `1059` | Gift Wrap | [59](59.md) |
|
| `1059` | Gift Wrap | [59](59.md) |
|
||||||
| `1063` | File Metadata | [94](94.md) |
|
| `1063` | File Metadata | [94](94.md) |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user