diff --git a/43.md b/43.md index 1e74d5df..b1a9387c 100644 --- a/43.md +++ b/43.md @@ -143,23 +143,7 @@ Some examples: ["OK", , true, "info: welcome to wss://relay.bunk.skunk!"] ``` -## Invite Request - -Users may request a claim string from a relay by making a request for `kind 28935` events. This event MUST be signed by the pubkey specified in the `self` field of the relay's [NIP 11](./11.md) document. - -```yaml -{ - "kind": 28935, - "pubkey": "", - "tags": [ - ["-"], - ["claim", ""], - ], - // ...other fields -} -``` - -Note that these events are in the `ephemeral` range, which means relays must explicitly opt-in to this behavior by generating claims on the fly when requested. This allows relays to improve security by issuing a different claim for each request, only issuing claims to certain users, or expiring claims. +Users can request a `claim` using the [NIP 86](./86.md) `createclaim` method. ## Leave Request diff --git a/86.md b/86.md index 460c58fe..40056f5c 100644 --- a/86.md +++ b/86.md @@ -112,6 +112,27 @@ Removes a role from a pubkey. - params: `["<32-byte-hex-public-key>", ""]` - result: `true` (a boolean always set to `true`) +### `listclaims` + +Lists [NIP 43](./43.md) invite codes currently accepted by the relay. + +- params: `[]` +- result: `[claim, ...]`, an array of NIP 43 invite codes + +### `createclaim` + +Creates a new [NIP 43](./43.md) invite code. + +- params: `[claim]` +- result: `true` (boolean true) + +### `deleteclaim` + +Revokes a [NIP 43](./43.md) invite code. + +- params: `[claim]` +- result: `true` (boolean true) + ### `listeventsneedingmoderation` Lists events awaiting moderation.