upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2026-03-12 10:26:19 -0300
committerfiatjaf <fiatjaf@gmail.com>2026-03-12 10:26:19 -0300
commitcde5d38f6d8ffbe004b35514433d6678eb715a57 (patch)
tree1fdfbdd32f39ada75d10a7c129910edeaa4f2876
parent133d7f9df8a5302085dfd5871e624380c4412a03 (diff)
`sub` must contain the pubkey again, leave the jwt identity out of 39004 for now.voice-rooms
-rw-r--r--29.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/29.md b/29.md
index cc8a0d4..21f2f10 100644
--- a/29.md
+++ b/29.md
@@ -58,6 +58,8 @@ The `Authorization` event should be of kind `27235` and contain a tag `["u", "ht
58 58
59Relays should enforce access control at the LiveKit JWT creation time according to the group settings. 59Relays should enforce access control at the LiveKit JWT creation time according to the group settings.
60 60
61Relays MUST set the `sub` property on the issued JWT (called "identity" in the standard LiveKit libraries) such that the initial 64 characters correspond to the lowercase hex public key of the Nostr user. The same user can be issued multiple JWTs and join the same LiveKit room multiple times, so relays are expected to appending a random identifier to those 64 characters.
62
61In order to inform clients about relay support for AV (so they can display that option for users when creating or editing groups) relays should serve a status code `204` at `https://relay.tld/.well-known/nip29/livekit`. 63In order to inform clients about relay support for AV (so they can display that option for users when creating or editing groups) relays should serve a status code `204` at `https://relay.tld/.well-known/nip29/livekit`.
62 64
63## Event definitions 65## Event definitions
@@ -238,7 +240,7 @@ This is an event that MAY be published by the relay informing users and clients
238 240
239This should be updated whenever a new user leaves or joins a group, clients are expected to be actively subscribed to it. 241This should be updated whenever a new user leaves or joins a group, clients are expected to be actively subscribed to it.
240 242
241The event MUST contain zero or more `participant` tags with the participant's public key as lowercase hex and their identity in the LiveKit context (the identity is defined by the relay at JWT creation time and recorded in the JWT `sub` field). 243The event MUST contain zero or more `participant` tags with the participant's public key as lowercase hex.
242 244
243```jsonc 245```jsonc
244{ 246{
@@ -246,7 +248,7 @@ The event MUST contain zero or more `participant` tags with the participant's pu
246 "content": "", 248 "content": "",
247 "tags": [ 249 "tags": [
248 ["d", "<group-id>"], 250 ["d", "<group-id>"],
249 ["participant", "<pubkey>", "<jwt-identity>"], 251 ["participant", "<pubkey>"],
250 // other participants... 252 // other participants...
251 ], 253 ],
252 // other fields... 254 // other fields...