add information about Authorization event.

This commit is contained in:
fiatjaf 2024-07-09 17:05:23 -03:00
parent 6a9f0d2ff0
commit fe5ce66e73

4
86.md
View File

@ -82,3 +82,7 @@ This is the list of **methods** that may be supported:
* `listblockedips`:
- params: `[]`
- result: `[{"ip": "<ip-address>", "reason": "<optional-reason>"}, ...]`, an array of objects
### Authorization
The request must contain an `Authorization` header with the value set to `Nostr <base64(auth-event)>` in which `<auth-event>` is an event of kind `27235` with a tag `["u", <url-of-the-relay-being-called>]` and a tag `["payload", <sha256-hash-of-the-request-body-as-lowercase-hex>]` and `created_at` set to the current timestamp.