diff options
Diffstat (limited to '94.md')
| -rw-r--r-- | 94.md | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -21,6 +21,8 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 21 | * `magnet` (optional) URI to magnet file | 21 | * `magnet` (optional) URI to magnet file |
| 22 | * `i` (optional) torrent infohash | 22 | * `i` (optional) torrent infohash |
| 23 | * `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client | 23 | * `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client |
| 24 | * `preview` (optional) shorter file variant such as thumbnail, blurred image or text excerpt | ||
| 25 | * `caption` (optional) loose description not meant for accessibility | ||
| 24 | 26 | ||
| 25 | ```json | 27 | ```json |
| 26 | { | 28 | { |
| @@ -37,7 +39,9 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 37 | ["dim", <size of file in pixels>], | 39 | ["dim", <size of file in pixels>], |
| 38 | ["magnet",<magnet URI> ], | 40 | ["magnet",<magnet URI> ], |
| 39 | ["i",<torrent infohash>], | 41 | ["i",<torrent infohash>], |
| 40 | ["blurhash", <value>] | 42 | ["blurhash", <value>], |
| 43 | ["preview", <preview url/text>, <MIME type>], | ||
| 44 | ["caption", <string with loose description>] | ||
| 41 | ], | 45 | ], |
| 42 | "content": <description>, | 46 | "content": <description>, |
| 43 | "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> | 47 | "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> |