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:
authorfiatjaf <faitjaf@gmail.com>2022-05-01 07:48:57 -0300
committerfiatjaf <faitjaf@gmail.com>2022-05-01 07:48:57 -0300
commitf25c7e672c23ca5463fa5c0fcb5e5f424d956862 (patch)
tree597462ec02ed56ef53f268279a31f62edd3f37eb /03.md
migrate nips from main nostr repo.
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]".