Add xx tag

This commit is contained in:
arthurfranca 2023-09-14 12:04:02 -03:00
parent 30c799b001
commit cf764ee7e5

4
94.md
View File

@ -15,7 +15,8 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
* `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.
* `"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 **original** file before any server transformations
* `xx` containing the SHA-256 hexencoded string of the **transformed** file after any server transformations
* `size` (optional) size of file in bytes
* `dim` (optional) size of file in pixels in the form `<width>x<height>`
* `magnet` (optional) URI to magnet file
@ -37,6 +38,7 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
["aes-256-gcm",<key>, <iv>],
["m", <MIME type>],
["x",<Hash SHA-256>],
["xx",<Hash SHA-256>],
["size", <size of file in bytes>],
["dim", <size of file in pixels>],
["magnet",<magnet URI> ],