RebelOfBabylon on Nostr: An invite link could be an encoded event that a user already part of a given ...
An invite link could be an encoded event that a user already part of a given community generates. The user already in the community requests a challenge string from the relay, put that challenge string somewhere in a special event with unique kind, then encode it. That encoded event is then given to a new user that we want joining the community. The event should contain a relay URL and the challenge string (maybe an expiration date too). Then they create an auth message with that challenge string before it expires and send it to the relay to register.
Published at
2024-10-21 10:19:19Event JSON
{
"id": "e140eff06edd7ca25678d0bb38d16e92456d03d5c046be1ab3a63bdf7b449f26",
"pubkey": "d06e6018c1fcf7d80d4f18ae7ea669fa10f84389f95f6d1bdcea9727cb266c33",
"created_at": 1729505959,
"kind": 1,
"tags": [
[
"e",
"a03b9f4496101ea960e6a6a17a83849f934b13a2e1c28af0d6f42971b4587475",
"",
"root"
],
[
"e",
"22c51ece358b18630ce37be3574fe59c47c3870de2b5a3ac0514931f8ce491be"
],
[
"e",
"53a7082f72ceae6d5040a79e9bbd81450dfe3ba9302f6078c5a71b50206c8ac5",
"",
"reply"
],
[
"p",
"3e294d2fd339bb16a5403a86e3664947dd408c4d87a0066524f8a573ae53ca8e"
],
[
"p",
"7fa56f5d6962ab1e3cd424e758c3002b8665f7b0d8dcee9fe9e288d7751ac194"
],
[
"p",
"78ce6faa72264387284e647ba6938995735ec8c7d5c5a65737e55130f026307d"
],
[
"p",
"a9434ee165ed01b286becfc2771ef1705d3537d051b387288898cc00d5c885be"
]
],
"content": "An invite link could be an encoded event that a user already part of a given community generates. The user already in the community requests a challenge string from the relay, put that challenge string somewhere in a special event with unique kind, then encode it. That encoded event is then given to a new user that we want joining the community. The event should contain a relay URL and the challenge string (maybe an expiration date too). Then they create an auth message with that challenge string before it expires and send it to the relay to register.",
"sig": "105c83e4b6f721f61bb25b8f0724582ee1e06fb8c438c51c3befc23954f99bdc675364c6130b2c13309e82133d44d5912b75022f965c401837fb3729ab7e2b6a"
}