upleb.uk

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

summaryrefslogtreecommitdiff
path: root/03.md
diff options
context:
space:
mode:
Diffstat (limited to '03.md')
-rw-r--r--03.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/03.md b/03.md
new file mode 100644
index 0000000..578c351
--- /dev/null
+++ b/03.md
@@ -0,0 +1,23 @@
1NIP-03
2======
3
4OpenTimestamps Attestations for Events
5--------------------------------------
6
7`draft` `optional` `author:fiatjaf`
8
9When there is an OTS available it MAY be included in the existing event body under the `ots` key:
10
11```
12{
13 id: ...,
14 kind: ...,
15 ...,
16 ...,
17 ots: <base64-encoded OTS file data>
18}
19```
20
21The _event id_ MUST be used as the raw hash to be included in the OpenTimestamps merkle tree.
22
23The attestation can be either provided by relays automatically (and the OTS binary contents just appended to the events it receives) or by clients themselves when they first upload the event to relays — and used by clients to show that an event is really "at least as old as [OTS date]".