diff --git a/42.md b/42.md index fdc5d104..24f7f5d9 100644 --- a/42.md +++ b/42.md @@ -32,6 +32,8 @@ And, when sent by clients, the following form: ["AUTH", ] ``` +Clients MAY provide signed events from multiple pubkeys in a sequence of `AUTH` messages. Relays MUST treat all pubkeys as authenticated accordingly. + `AUTH` messages sent by clients MUST be answered with an `OK` message, like any `EVENT` message. ### Canonical authentication event @@ -69,7 +71,9 @@ relay: ["AUTH", ""] client: ["REQ", "sub_1", {"kinds": [4]}] relay: ["CLOSED", "sub_1", "auth-required: we can't serve DMs to unauthenticated users"] client: ["AUTH", {"id": "abcdef...", ...}] +client: ["AUTH", {"id": "abcde2...", ...}] relay: ["OK", "abcdef...", true, ""] +relay: ["OK", "abcde2...", true, ""] client: ["REQ", "sub_1", {"kinds": [4]}] relay: ["EVENT", "sub_1", {...}] relay: ["EVENT", "sub_1", {...}]