diff options
| -rw-r--r-- | 71.md | 12 | ||||
| -rw-r--r-- | README.md | 4 |
2 files changed, 8 insertions, 8 deletions
| @@ -24,8 +24,8 @@ The format uses a _regular event_ kind `21` for _normal_ videos and `22` for _sh | |||
| 24 | 24 | ||
| 25 | For content that may need updates after publication (such as correcting metadata, descriptions, or handling URL migrations), addressable versions are available: | 25 | For 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 | ||
| 30 | These 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: | 30 | These 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 | |||
| 86 | Additionally `service nip96` may be included to allow clients to search the authors NIP-96 server list to find the file using the hash. | 86 | Additionally `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 | |||
| 197 | To reference an addressable video: | 197 | To 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 | ``` |
| @@ -248,9 +248,9 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | |||
| 248 | | `31925` | Calendar Event RSVP | [52](52.md) | | 248 | | `31925` | Calendar Event RSVP | [52](52.md) | |
| 249 | | `31989` | Handler recommendation | [89](89.md) | | 249 | | `31989` | Handler recommendation | [89](89.md) | |
| 250 | | `31990` | Handler information | [89](89.md) | | | 250 | | `31990` | Handler information | [89](89.md) | | |
| 251 | | `32221` | Addressable Video Event | [71](71.md) | | ||
| 252 | | `32222` | Addressable Short Video Event | [71](71.md) | | ||
| 253 | | `32267` | Software Application | | | | 251 | | `32267` | Software Application | | | |
| 252 | | `34235` | Addressable Video Event | [71](71.md) | | ||
| 253 | | `34236` | Addressable Short Video Event | [71](71.md) | | ||
| 254 | | `34550` | Community Definition | [72](72.md) | | 254 | | `34550` | Community Definition | [72](72.md) | |
| 255 | | `38383` | Peer-to-peer Order events | [69](69.md) | | 255 | | `38383` | Peer-to-peer Order events | [69](69.md) | |
| 256 | | `39000-9` | Group metadata events | [29](29.md) | | 256 | | `39000-9` | Group metadata events | [29](29.md) | |