diff options
| author | arthurfranca <arthur.a.franca@gmail.com> | 2023-09-14 12:04:02 -0300 |
|---|---|---|
| committer | arthurfranca <arthur.a.franca@gmail.com> | 2023-09-14 12:04:02 -0300 |
| commit | cf764ee7e5922167d944752678d2d8ab10314d3d (patch) | |
| tree | c79385895db28c680b98ea208d394b3ddee097cf | |
| parent | 30c799b00148c687b693331cd169c9ed20b93515 (diff) | |
Add xx tag
| -rw-r--r-- | 94.md | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -15,7 +15,8 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 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 | 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 **original** file before any server transformations |
| 19 | * `xx` containing the SHA-256 hexencoded string of the **transformed** file after any server transformations | ||
| 19 | * `size` (optional) size of file in bytes | 20 | * `size` (optional) size of file in bytes |
| 20 | * `dim` (optional) size of file in pixels in the form `<width>x<height>` | 21 | * `dim` (optional) size of file in pixels in the form `<width>x<height>` |
| 21 | * `magnet` (optional) URI to magnet file | 22 | * `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 | |||
| 37 | ["aes-256-gcm",<key>, <iv>], | 38 | ["aes-256-gcm",<key>, <iv>], |
| 38 | ["m", <MIME type>], | 39 | ["m", <MIME type>], |
| 39 | ["x",<Hash SHA-256>], | 40 | ["x",<Hash SHA-256>], |
| 41 | ["xx",<Hash SHA-256>], | ||
| 40 | ["size", <size of file in bytes>], | 42 | ["size", <size of file in bytes>], |
| 41 | ["dim", <size of file in pixels>], | 43 | ["dim", <size of file in pixels>], |
| 42 | ["magnet",<magnet URI> ], | 44 | ["magnet",<magnet URI> ], |