nip-29: restriction for _id_

This commit is contained in:
kehiy 2024-09-12 16:29:12 +03:30
parent 8a427ea6d6
commit 33e9e43948

6
29.md
View File

@ -8,7 +8,11 @@ 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. 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.
the relays MUST decide to reject creation of a group if an _id_ issued by client is not following the above restriction or MAY reject the creation if it's already exist or that's not acceptable based on their policies. (e.g. length of _id_ is too long).
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. 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.