Adds the auth instruction for the new field.

This commit is contained in:
Vitor Pamplona 2024-02-08 10:30:14 -05:00
parent e41c796182
commit e456646675

2
42.md
View File

@ -22,6 +22,8 @@ A relay may want to require clients to authenticate to access restricted resourc
Clients that want to force an authentication in any event can add a `requires_auth_by` with array of authorized pubkeys to the base event object. Clients that want to force an authentication in any event can add a `requires_auth_by` with array of authorized pubkeys to the base event object.
Relays MUST authenticate connections with at least one of the pubkeys listed in `requires_auth_by` to return events.
```jsonc ```jsonc
{ {
"id": <32-bytes lowercase hex-encoded sha256 of the serialized event data>, "id": <32-bytes lowercase hex-encoded sha256 of the serialized event data>,