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 /53.md | |
| parent | f72a2f69ed93cf442e83bf9e7e16f6c06da40384 (diff) | |
| parent | 6bcd89c097e97e65dbc95e7c6b7b8348e8dd6b5c (diff) | |
Merge branch 'master' into p2p-nip
Diffstat (limited to '53.md')
| -rw-r--r-- | 53.md | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -12,11 +12,11 @@ Service providers want to offer live activities to the Nostr network in such a w | |||
| 12 | 12 | ||
| 13 | ### Live Event | 13 | ### Live Event |
| 14 | 14 | ||
| 15 | A special event with `kind:30311` "Live Event" is defined as a _parameterized replaceable event_ of public `p` tags. Each `p` tag SHOULD have a **displayable** marker name for the current role (e.g. `Host`, `Speaker`, `Participant`) of the user in the event and the relay information MAY be empty. This event will be constantly updated as participants join and leave the activity. | 15 | A special event with `kind:30311` "Live Event" is defined as an _addressable event_ of public `p` tags. Each `p` tag SHOULD have a **displayable** marker name for the current role (e.g. `Host`, `Speaker`, `Participant`) of the user in the event and the relay information MAY be empty. This event will be constantly updated as participants join and leave the activity. |
| 16 | 16 | ||
| 17 | For example: | 17 | For example: |
| 18 | 18 | ||
| 19 | ```json | 19 | ```jsonc |
| 20 | { | 20 | { |
| 21 | "kind": 30311, | 21 | "kind": 30311, |
| 22 | "tags": [ | 22 | "tags": [ |
| @@ -35,10 +35,10 @@ For example: | |||
| 35 | ["p", "91cf9..4e5ca", "wss://provider1.com/", "Host", "<proof>"], | 35 | ["p", "91cf9..4e5ca", "wss://provider1.com/", "Host", "<proof>"], |
| 36 | ["p", "14aeb..8dad4", "wss://provider2.com/nostr", "Speaker"], | 36 | ["p", "14aeb..8dad4", "wss://provider2.com/nostr", "Speaker"], |
| 37 | ["p", "612ae..e610f", "ws://provider3.com/ws", "Participant"], | 37 | ["p", "612ae..e610f", "ws://provider3.com/ws", "Participant"], |
| 38 | ["relays", "wss://one.com", "wss://two.com", ...] | 38 | ["relays", "wss://one.com", "wss://two.com", /*...*/] |
| 39 | ], | 39 | ], |
| 40 | "content": "", | 40 | "content": "", |
| 41 | ... | 41 | // other fields... |
| 42 | } | 42 | } |
| 43 | ``` | 43 | ``` |
| 44 | 44 | ||
| @@ -64,14 +64,14 @@ This feature is important to avoid malicious event owners adding large account h | |||
| 64 | 64 | ||
| 65 | Event `kind:1311` is live chat's channel message. Clients MUST include the `a` tag of the activity with a `root` marker. Other Kind-1 tags such as `reply` and `mention` can also be used. | 65 | Event `kind:1311` is live chat's channel message. Clients MUST include the `a` tag of the activity with a `root` marker. Other Kind-1 tags such as `reply` and `mention` can also be used. |
| 66 | 66 | ||
| 67 | ```json | 67 | ```jsonc |
| 68 | { | 68 | { |
| 69 | "kind": 1311, | 69 | "kind": 1311, |
| 70 | "tags": [ | 70 | "tags": [ |
| 71 | ["a", "30311:<Community event author pubkey>:<d-identifier of the community>", "<Optional relay url>", "root"], | 71 | ["a", "30311:<Community event author pubkey>:<d-identifier of the community>", "<Optional relay url>", "root"], |
| 72 | ], | 72 | ], |
| 73 | "content": "Zaps to live streams is beautiful.", | 73 | "content": "Zaps to live streams is beautiful.", |
| 74 | ... | 74 | // other fields... |
| 75 | } | 75 | } |
| 76 | ``` | 76 | ``` |
| 77 | 77 | ||
| @@ -119,4 +119,4 @@ Common use cases include meeting rooms/workshops, watch-together activities, or | |||
| 119 | "content": "Zaps to live streams is beautiful.", | 119 | "content": "Zaps to live streams is beautiful.", |
| 120 | "sig": "997f62ddfc0827c121043074d50cfce7a528e978c575722748629a4137c45b75bdbc84170bedc723ef0a5a4c3daebf1fef2e93f5e2ddb98e5d685d022c30b622" | 120 | "sig": "997f62ddfc0827c121043074d50cfce7a528e978c575722748629a4137c45b75bdbc84170bedc723ef0a5a4c3daebf1fef2e93f5e2ddb98e5d685d022c30b622" |
| 121 | } | 121 | } |
| 122 | ```` | 122 | ``` |