upleb.uk

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

summaryrefslogtreecommitdiff
path: root/94.md
diff options
context:
space:
mode:
authorVitor Pamplona <vitor@vitorpamplona.com>2023-12-26 09:09:18 -0500
committerfiatjaf_ <fiatjaf@gmail.com>2023-12-27 11:21:27 -0300
commit17c67ef5577c8ac5419a1081aadea57e30f8c133 (patch)
tree542a4a382c94b45812f58f6c4e30a69a9bbf8deb /94.md
parent5e0cfb62ece24ea55346f5fdcdc62ddc824139fb (diff)
Removes the `aes-256-gcm` tag since no one seems to be using. People that wish to use encryption can now use the new NIP-44 scheme.
Diffstat (limited to '94.md')
-rw-r--r--94.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/94.md b/94.md
index 95b6a3b..84a3d12 100644
--- a/94.md
+++ b/94.md
@@ -6,7 +6,7 @@ File Metadata
6 6
7`draft` `optional` 7`draft` `optional`
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
11## Event format 11## Event format
12 12
@@ -14,7 +14,6 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
14 14
15* `url` the url to download the file 15* `url` the url to download the file
16* `m` a string indicating the data type of the file. The [MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types) format must be used, and they should be lowercase. 16* `m` a string indicating the data type of the file. The [MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types) format must be used, and they should be lowercase.
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. 17* `x` containing the SHA-256 hexencoded string of the file.
19* `size` (optional) size of file in bytes 18* `size` (optional) size of file in bytes
20* `dim` (optional) size of file in pixels in the form `<width>x<height>` 19* `dim` (optional) size of file in pixels in the form `<width>x<height>`
@@ -31,7 +30,6 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
31 "kind": 1063, 30 "kind": 1063,
32 "tags": [ 31 "tags": [
33 ["url",<string with URI of file>], 32 ["url",<string with URI of file>],
34 ["aes-256-gcm",<key>, <iv>],
35 ["m", <MIME type>], 33 ["m", <MIME type>],
36 ["x",<Hash SHA-256>], 34 ["x",<Hash SHA-256>],
37 ["size", <size of file in bytes>], 35 ["size", <size of file in bytes>],