Add room creation permission event to nip 29

This commit is contained in:
Jon Staab 2025-09-30 11:58:11 -07:00
parent b516adbf42
commit 5d9096c005
1 changed files with 19 additions and 0 deletions

19
29.md
View File

@ -223,6 +223,25 @@ The process through which the relay decides what roles to support and how to han
}
```
- *room creation permission* (`kind:39004`) (optional)
Defines who can create new rooms on the relay. This event MUST be signed by the pubkey specified in the `self` field of the relay's [NIP 11](./11.md) document.
A `p` tag must be included for every user with permission to create a new room. If this event does not exist, it should be assumed that anyone can create a room.
```jsonc
{
"kind": 39004,
"content": "list of people who can create rooms on this relay",
"tags": [
["-"],
["p", "<pubkey1-as-hex>"],
["p", "<pubkey2-as-hex>"],
],
// other fields...
}
```
## Implementation quirks
### Checking your own membership in a group