upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/94.md
diff options
context:
space:
mode:
authorKieran <kieran@harkin.me>2025-01-28 13:23:39 +0000
committerGitHub <noreply@github.com>2025-01-28 13:23:39 +0000
commit56f6919faae485a995bde7df5c0c9a3949e4edc0 (patch)
tree7d23cc9f8b2956cc3642b093a03d76332ca0c140 /94.md
parenta7f30b1eb232786263c5ff4ea7b9589c1ec3868f (diff)
Add NIP-71 tags to NIP-94 spec
Adding `duration` and `bitrate` to NIP-94 to cover NIP-71 content
Diffstat (limited to '94.md')
-rw-r--r--94.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/94.md b/94.md
index 4cd7c82..723c32f 100644
--- a/94.md
+++ b/94.md
@@ -15,7 +15,7 @@ This NIP specifies the use of the `1063` event kind, 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* `ox` (optional) containing the SHA-256 hexencoded string of the original file, before any transformations done by the upload server
19* `size` (optional) size of file in bytes 19* `size` (optional) size of file in bytes
20* `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>`
21* `magnet` (optional) URI to magnet file 21* `magnet` (optional) URI to magnet file
@@ -27,6 +27,8 @@ This NIP specifies the use of the `1063` event kind, having in `content` a descr
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* `service` (optional) service type which is serving the file (eg. [NIP-96](96.md))
30* `duration` (optional) duration of media (video/audio) in seconds
31* `bitrate` (optional) average bitrate of media (video/audio) in seconds
30 32
31```jsonc 33```jsonc
32{ 34{