Suggestion for Securing Group Creation
Hi sir,
I've been implementing NIP-29 groups in 0xchat and noticed some changes in relay29. Thank you for the updates! 🙏
However, I encountered an issue during group creation. Currently, groups can be created by simply inputting an `npub` and `name`. This allows others to potentially impersonate an `npub` and create a group as if they were the group owner.
I suggest enhancing the group creation process by requiring a JSON event to be sent to the server, which can also initialize some group information. Here’s a proposed structure for the JSON event:
```json
{
"pubkey": creator pubkey,
"kind": create group event kind,
"content": "",
"tags": [
["name", "Pizza Lovers"],
["picture", "https://pizza.com/pizza.png"],
["about", "A group for people who love pizza"],
["public"], // or ["private"]
["open"] // or ["closed"]
],
"sig": sig
}
```
关闭于 2025-10-15 4 条评论