mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
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.
This commit is contained in:
parent
5e0cfb62ec
commit
17c67ef557
4
94.md
4
94.md
|
@ -6,7 +6,7 @@ File Metadata
|
||||||
|
|
||||||
`draft` `optional`
|
`draft` `optional`
|
||||||
|
|
||||||
The 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.
|
The 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.
|
||||||
|
|
||||||
## Event format
|
## Event format
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
|
||||||
|
|
||||||
* `url` the url to download the file
|
* `url` the url to download the file
|
||||||
* `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.
|
* `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.
|
||||||
* `"aes-256-gcm"` (optional) key and nonce for AES-GCM encryption with tagSize always 128bits
|
|
||||||
* `x` containing the SHA-256 hexencoded string of the file.
|
* `x` containing the SHA-256 hexencoded string of the file.
|
||||||
* `size` (optional) size of file in bytes
|
* `size` (optional) size of file in bytes
|
||||||
* `dim` (optional) size of file in pixels in the form `<width>x<height>`
|
* `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
|
||||||
"kind": 1063,
|
"kind": 1063,
|
||||||
"tags": [
|
"tags": [
|
||||||
["url",<string with URI of file>],
|
["url",<string with URI of file>],
|
||||||
["aes-256-gcm",<key>, <iv>],
|
|
||||||
["m", <MIME type>],
|
["m", <MIME type>],
|
||||||
["x",<Hash SHA-256>],
|
["x",<Hash SHA-256>],
|
||||||
["size", <size of file in bytes>],
|
["size", <size of file in bytes>],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user