diff options
Diffstat (limited to '94.md')
| -rw-r--r-- | 94.md | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -15,6 +15,7 @@ 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 | * `x` containing the SHA-256 hexencoded string of the file. | 17 | * `x` containing the SHA-256 hexencoded string of the file. |
| 18 | * `ox` containing the SHA-256 hexencoded string of the original file, before any transformations done by the upload server | ||
| 18 | * `size` (optional) size of file in bytes | 19 | * `size` (optional) size of file in bytes |
| 19 | * `dim` (optional) size of file in pixels in the form `<width>x<height>` | 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 |
| @@ -32,6 +33,7 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 32 | ["url",<string with URI of file>], | 33 | ["url",<string with URI of file>], |
| 33 | ["m", <MIME type>], | 34 | ["m", <MIME type>], |
| 34 | ["x",<Hash SHA-256>], | 35 | ["x",<Hash SHA-256>], |
| 36 | ["ox",<Hash SHA-256>], | ||
| 35 | ["size", <size of file in bytes>], | 37 | ["size", <size of file in bytes>], |
| 36 | ["dim", <size of file in pixels>], | 38 | ["dim", <size of file in pixels>], |
| 37 | ["magnet",<magnet URI> ], | 39 | ["magnet",<magnet URI> ], |