diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2024-01-20 21:25:24 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2024-02-23 20:52:15 -0300 |
| commit | e4d7618ace09557ff8de6b61174e3626e0152d59 (patch) | |
| tree | 360d8af375b44acc17848d9db9a1c325581f8d1a | |
| parent | dc290d51bc9bcd1933b0fcd9e2f84e9e5fb21c04 (diff) | |
remove naddr stuff, use a different identifier format.
| -rw-r--r-- | 29.md | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -18,6 +18,10 @@ Normally a group will originally belong to one specific relay, but the community | |||
| 18 | 18 | ||
| 19 | Relays are supposed to generate the events that describe group metadata and group admins. These are parameterized replaceable events signed by the relay keypair directly, with the group _id_ as the `d` tag. | 19 | Relays are supposed to generate the events that describe group metadata and group admins. These are parameterized replaceable events signed by the relay keypair directly, with the group _id_ as the `d` tag. |
| 20 | 20 | ||
| 21 | ## Group identifier | ||
| 22 | |||
| 23 | A group may be identified by a string in the format `<host>'<group-id>`. For example, a group with _id_ `abcdef` hosted at the relay `wss://groups.nostr.com` would be identified by the string `groups.nostr.com'abcdef`. | ||
| 24 | |||
| 21 | ## The `h` tag | 25 | ## The `h` tag |
| 22 | 26 | ||
| 23 | Events sent by users to groups (chat messages, text notes, moderation events etc) must have an `h` tag with the value set to the group _id_. | 27 | Events sent by users to groups (chat messages, text notes, moderation events etc) must have an `h` tag with the value set to the group _id_. |
| @@ -151,8 +155,6 @@ If the group is forked and hosted in multiple relays, there will be multiple ver | |||
| 151 | 155 | ||
| 152 | `name`, `picture` and `about` are basic metadata for the group for display purposes. `public` signals the group can be _read_ by anyone, while `private` signals that only AUTHed users can read. `open` signals that anyone can request to join and the request will be automatically granted, while `closed` signals that members must be pre-approved or that requests to join will be manually handled. | 156 | `name`, `picture` and `about` are basic metadata for the group for display purposes. `public` signals the group can be _read_ by anyone, while `private` signals that only AUTHed users can read. `open` signals that anyone can request to join and the request will be automatically granted, while `closed` signals that members must be pre-approved or that requests to join will be manually handled. |
| 153 | 157 | ||
| 154 | The [NIP-19](19.md) `naddr` pointer for this event including with a mandatory relay can be used as the canonical group identifier. | ||
| 155 | |||
| 156 | - *group admins* (`kind:39001`) (optional) | 158 | - *group admins* (`kind:39001`) (optional) |
| 157 | 159 | ||
| 158 | Similar to the group metadata, this event is supposed to be generated by relays that host the group. | 160 | Similar to the group metadata, this event is supposed to be generated by relays that host the group. |