upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Fernandez <p@f7z.io>2023-10-29 11:43:19 +0100
committerPablo Fernandez <p@f7z.io>2023-10-29 11:43:19 +0100
commitc88a620fe7049d86c867a0087d4b5257a8891634 (patch)
tree36be7506269603af70ce0ea5a01245e04c7c27d0
parenta482f47ae4c36d38062cd0fd3ee6235e57691673 (diff)
parentca73c5dd5ea19dec29a2781f1d3bd93ef95985f9 (diff)
Merge branch 'master' into vending-machine
-rw-r--r--03.md2
-rw-r--r--07.md3
2 files changed, 2 insertions, 3 deletions
diff --git a/03.md b/03.md
index 4faf3f1..680cc8b 100644
--- a/03.md
+++ b/03.md
@@ -13,7 +13,6 @@ This NIP defines an event with `kind:1040` that can contain an [OpenTimestamps](
13 "kind": 1040 13 "kind": 1040
14 "tags": [ 14 "tags": [
15 ["e", <event-id>, <relay-url>], 15 ["e", <event-id>, <relay-url>],
16 ["block", <block-height-as-string>, <block-hash>],
17 ["alt", "opentimestamps attestation"] 16 ["alt", "opentimestamps attestation"]
18 ], 17 ],
19 "content": <base64-encoded OTS file data> 18 "content": <base64-encoded OTS file data>
@@ -21,7 +20,6 @@ This NIP defines an event with `kind:1040` that can contain an [OpenTimestamps](
21``` 20```
22 21
23- The OpenTimestamps proof MUST prove the referenced `e` event id as its digest. 22- The OpenTimestamps proof MUST prove the referenced `e` event id as its digest.
24- The `block` tag is optional, it exists to establish a minimum date since which the given event has existed.
25- The `content` MUST be the full content of an `.ots` file containing at least one Bitcoin attestation. This file SHOULD contain a **single** Bitcoin attestation and no reference to "pending" attestations since they are useless in this context. 23- The `content` MUST be the full content of an `.ots` file containing at least one Bitcoin attestation. This file SHOULD contain a **single** Bitcoin attestation and no reference to "pending" attestations since they are useless in this context.
26 24
27### Example OpenTimestamps proof verification flow 25### Example OpenTimestamps proof verification flow
diff --git a/07.md b/07.md
index 0c8c402..24d8d45 100644
--- a/07.md
+++ b/07.md
@@ -12,7 +12,7 @@ That object must define the following methods:
12 12
13``` 13```
14async window.nostr.getPublicKey(): string // returns a public key as hex 14async window.nostr.getPublicKey(): string // returns a public key as hex
15async window.nostr.signEvent(event: Event): Event // takes an event object, adds `id`, `pubkey` and `sig` and returns it 15async window.nostr.signEvent(event: { created_at: number, kind: number, tags: string[][], content: string }): Event // takes an event object, adds `id`, `pubkey` and `sig` and returns it
16``` 16```
17 17
18Aside from these two basic above, the following functions can also be implemented optionally: 18Aside from these two basic above, the following functions can also be implemented optionally:
@@ -34,3 +34,4 @@ async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext
34- [TokenPocket](https://www.tokenpocket.pro/) (Android, IOS, Chrome and derivatives) 34- [TokenPocket](https://www.tokenpocket.pro/) (Android, IOS, Chrome and derivatives)
35- [Nostrmo](https://github.com/haorendashu/nostrmo_faq#download) (Android, IOS) 35- [Nostrmo](https://github.com/haorendashu/nostrmo_faq#download) (Android, IOS)
36- [Spring Browser](https://spring.site) (Android) 36- [Spring Browser](https://spring.site) (Android)
37- [nodestr](https://github.com/lightning-digital-entertainment/nodestr) (NodeJS polyfill)