upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Staab <shtaab@gmail.com>2023-04-28 10:21:18 -0500
committerfiatjaf_ <fiatjaf@gmail.com>2023-04-28 13:05:35 -0300
commit346036208ccca6f31313f1e909ff17ea3563fb46 (patch)
tree225636a99ba41495dfe0b4f70327d889c7a0758a
parentbadabd513e659964d5fb357fab97dd8319acc98a (diff)
Add dim tag to NIP 94
-rw-r--r--94.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/94.md b/94.md
index d29548e..24dd346 100644
--- a/94.md
+++ b/94.md
@@ -4,7 +4,7 @@ NIP-94
4File Metadata 4File Metadata
5------------- 5-------------
6 6
7`draft` `optional` `author:frbitten` `author:kieran` `author:lovvtide` `author:fiatjaf` 7`draft` `optional` `author:frbitten` `author:kieran` `author:lovvtide` `author:fiatjaf` `author:staab`
8 8
9The purpose of this NIP is to allow an organization and classification of shared files. So that relays can filter and organize in any way that is of interest. With that, multiple types of filesharing clients can be created. NIP-94 support is not expected to be implemented by "social" clients that deal with kind:1 notes or by longform clients that deal with kind:30023 articles. 9The purpose of this NIP is to allow an organization and classification of shared files. So that relays can filter and organize in any way that is of interest. With that, multiple types of filesharing clients can be created. NIP-94 support is not expected to be implemented by "social" clients that deal with kind:1 notes or by longform clients that deal with kind:30023 articles.
10 10
@@ -17,6 +17,7 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
17* `"aes-256-gcm"` (optional) key and nonce for AES-GCM encryption with tagSize always 128bits 17* `"aes-256-gcm"` (optional) key and nonce for AES-GCM encryption with tagSize always 128bits
18* `x` containing the SHA-256 hexencoded string of the file. 18* `x` containing the SHA-256 hexencoded string of the file.
19* `size` (optional) size of file in bytes 19* `size` (optional) size of file in bytes
20* `dim` (optional) size of file in pixels in the form `<width>x<height>`
20* `magnet` (optional) URI to magnet file 21* `magnet` (optional) URI to magnet file
21* `i` (optional) torrent infohash 22* `i` (optional) torrent infohash
22* `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
@@ -33,6 +34,7 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
33 ["m", <MIME type>], 34 ["m", <MIME type>],
34 ["x",<Hash SHA-256>], 35 ["x",<Hash SHA-256>],
35 ["size", <size of file in bytes>], 36 ["size", <size of file in bytes>],
37 ["dim", <size of file in pixels>],
36 ["magnet",<magnet URI> ], 38 ["magnet",<magnet URI> ],
37 ["i",<torrent infohash>], 39 ["i",<torrent infohash>],
38 ["blurhash", <value>] 40 ["blurhash", <value>]