upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarthurfranca <arthur.a.franca@gmail.com>2023-09-12 09:50:25 -0300
committerarthurfranca <arthur.a.franca@gmail.com>2023-09-12 09:50:25 -0300
commit67cf855c8448c78010cd0d3ed8f19ddfeb1d2606 (patch)
tree42d21da7922c8072bbff9f2e455662a4a5c7a430
parent70ede5e67d3631b109dd16a811d236b4065eb44d (diff)
Add tags to nip94
-rw-r--r--94.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/94.md b/94.md
index c1b322a..e34a576 100644
--- a/94.md
+++ b/94.md
@@ -21,6 +21,8 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
21* `magnet` (optional) URI to magnet file 21* `magnet` (optional) URI to magnet file
22* `i` (optional) torrent infohash 22* `i` (optional) torrent infohash
23* `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client 23* `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client
24* `preview` (optional) shorter file variant such as thumbnail, blurred image or text excerpt
25* `caption` (optional) loose description not meant for accessibility
24 26
25```json 27```json
26{ 28{
@@ -37,7 +39,9 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
37 ["dim", <size of file in pixels>], 39 ["dim", <size of file in pixels>],
38 ["magnet",<magnet URI> ], 40 ["magnet",<magnet URI> ],
39 ["i",<torrent infohash>], 41 ["i",<torrent infohash>],
40 ["blurhash", <value>] 42 ["blurhash", <value>],
43 ["preview", <preview url/text>, <MIME type>],
44 ["caption", <string with loose description>]
41 ], 45 ],
42 "content": <description>, 46 "content": <description>,
43 "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> 47 "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>