update to use nip05

This commit is contained in:
kehiy 2024-09-11 21:51:56 +03:30
parent ee48fdf814
commit 9ecc2b5739

13
29.md
View File

@ -8,7 +8,9 @@ Relay-based Groups
This NIP defines a standard for groups that are only writable by a closed set of users. They can be public for reading by external users or not.
Groups are identified by a random string of any length that serves as an _id_.
Groups are identified by a random string of any length that serves as an _id_, generated by client.
_id_: is restricted to the characters `a-z0-9-_.`, case-insensitive.
There is no way to create a group, what happens is just that relays (most likely when asked by users) will create rules around some specific ids so these ids can serve as an actual group, henceforth messages sent to that group will be subject to these rules.
@ -20,12 +22,9 @@ Relays are supposed to generate the events that describe group metadata and grou
## Group identifier
To identify a group, we can use NIP-05 like address. for example a group with _id_ of `<id>`, hosted on `<host>` can be
fined with address of `<id>@<host>`. For clients to don't get confuse with NIP-05 address, they can trait these address
based on where they are receiving or seeing it.
This makes an easy way to share groups everywhere.
_id_: should be restricted to the characters `a-z0-9-_.`, case-insensitive.
The _id_ is a random, not humanreadable string generated by client which may be too long to be shared, or used in URLs.
We can use a [NIP-05](nip-05.md) document to identfy the group with a short humanreadable name, the name can simply point to a group _id_.
The domain that serves the NIP-05 related to a group _id_ MUST be the host of the group as well. clients can interpret the address based on where and how they receiver them.
## The `h` tag