diff options
| author | Francisco Calderón <fjcalderon@gmail.com> | 2024-11-04 15:39:21 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-04 15:39:21 -0300 |
| commit | 03f3bc39678262ecbd5d870c9da44723023557ff (patch) | |
| tree | e75ecf32d3bc906a8b26314488a1ae90996169c1 /94.md | |
| parent | f72a2f69ed93cf442e83bf9e7e16f6c06da40384 (diff) | |
| parent | 6bcd89c097e97e65dbc95e7c6b7b8348e8dd6b5c (diff) | |
Merge branch 'master' into p2p-nip
Diffstat (limited to '94.md')
| -rw-r--r-- | 94.md | 17 |
1 files changed, 9 insertions, 8 deletions
| @@ -26,27 +26,28 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 26 | * `summary` (optional) text excerpt | 26 | * `summary` (optional) text excerpt |
| 27 | * `alt` (optional) description for accessibility | 27 | * `alt` (optional) description for accessibility |
| 28 | * `fallback` (optional) zero or more fallback file sources in case `url` fails | 28 | * `fallback` (optional) zero or more fallback file sources in case `url` fails |
| 29 | * `service` (optional) service type which is serving the file (eg. [NIP-96](96.md)) | ||
| 29 | 30 | ||
| 30 | ```json | 31 | ```jsonc |
| 31 | { | 32 | { |
| 32 | "kind": 1063, | 33 | "kind": 1063, |
| 33 | "tags": [ | 34 | "tags": [ |
| 34 | ["url",<string with URI of file>], | 35 | ["url",<string with URI of file>], |
| 35 | ["m", <MIME type>], | 36 | ["m", <MIME type>], |
| 36 | ["x",<Hash SHA-256>], | 37 | ["x", <Hash SHA-256>], |
| 37 | ["ox",<Hash SHA-256>], | 38 | ["ox", <Hash SHA-256>], |
| 38 | ["size", <size of file in bytes>], | 39 | ["size", <size of file in bytes>], |
| 39 | ["dim", <size of file in pixels>], | 40 | ["dim", <size of file in pixels>], |
| 40 | ["magnet",<magnet URI> ], | 41 | ["magnet", <magnet URI> ], |
| 41 | ["i",<torrent infohash>], | 42 | ["i", <torrent infohash>], |
| 42 | ["blurhash", <value>], | 43 | ["blurhash", <value>], |
| 43 | ["thumb", <string with thumbnail URI>], | 44 | ["thumb", <string with thumbnail URI>, <Hash SHA-256>], |
| 44 | ["image", <string with preview URI>], | 45 | ["image", <string with preview URI>, <Hash SHA-256>], |
| 45 | ["summary", <excerpt>], | 46 | ["summary", <excerpt>], |
| 46 | ["alt", <description>] | 47 | ["alt", <description>] |
| 47 | ], | 48 | ], |
| 48 | "content": "<caption>", | 49 | "content": "<caption>", |
| 49 | ... | 50 | // other fields... |
| 50 | } | 51 | } |
| 51 | ``` | 52 | ``` |
| 52 | 53 | ||