upleb.uk

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

summaryrefslogtreecommitdiff
path: root/71.md
diff options
context:
space:
mode:
Diffstat (limited to '71.md')
-rw-r--r--71.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/71.md b/71.md
index 2097c7e..a8ec1ee 100644
--- a/71.md
+++ b/71.md
@@ -24,8 +24,8 @@ The format uses a _regular event_ kind `21` for _normal_ videos and `22` for _sh
24 24
25For content that may need updates after publication (such as correcting metadata, descriptions, or handling URL migrations), addressable versions are available: 25For content that may need updates after publication (such as correcting metadata, descriptions, or handling URL migrations), addressable versions are available:
26 26
27- Kind `32221` for _addressable normal videos_ 27- Kind `34235` for _addressable normal videos_
28- Kind `32222` for _addressable short videos_ 28- Kind `34236` for _addressable short videos_
29 29
30These addressable events follow the same format as their regular counterparts but include a `d` tag as a unique identifier and can be updated while maintaining the same addressable reference. This is particularly useful for: 30These addressable events follow the same format as their regular counterparts but include a `d` tag as a unique identifier and can be updated while maintaining the same addressable reference. This is particularly useful for:
31 31
@@ -86,7 +86,7 @@ The `image` tag contains a preview image (at the same resolution). Multiple `ima
86Additionally `service nip96` may be included to allow clients to search the authors NIP-96 server list to find the file using the hash. 86Additionally `service nip96` may be included to allow clients to search the authors NIP-96 server list to find the file using the hash.
87 87
88### Required tags for addressable events: 88### Required tags for addressable events:
89* `d` - Unique identifier for this video (user-chosen string, required for kinds 32221, 32222) 89* `d` - Unique identifier for this video (user-chosen string, required for kinds 34235, 34236)
90 90
91### Other tags: 91### Other tags:
92* `title` (required) title of the video 92* `title` (required) title of the video
@@ -155,7 +155,7 @@ Additionally `service nip96` may be included to allow clients to search the auth
155 "id": <32-bytes lowercase hex-encoded SHA-256 of the the serialized event data>, 155 "id": <32-bytes lowercase hex-encoded SHA-256 of the the serialized event data>,
156 "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>, 156 "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>,
157 "created_at": <Unix timestamp in seconds>, 157 "created_at": <Unix timestamp in seconds>,
158 "kind": 32221 | 32222, 158 "kind": 34235 | 34236,
159 "content": "<summary / description of video>", 159 "content": "<summary / description of video>",
160 "tags": [ 160 "tags": [
161 ["d", "<unique-identifier>"], 161 ["d", "<unique-identifier>"],
@@ -197,6 +197,6 @@ Additionally `service nip96` may be included to allow clients to search the auth
197To reference an addressable video: 197To reference an addressable video:
198 198
199``` 199```
200["a", "32221:<pubkey>:<d-tag-value>", "<relay-url>"] // for normal videos 200["a", "34235:<pubkey>:<d-tag-value>", "<relay-url>"] // for normal videos
201["a", "32222:<pubkey>:<d-tag-value>", "<relay-url>"] // for short videos 201["a", "34236:<pubkey>:<d-tag-value>", "<relay-url>"] // for short videos
202``` 202```