mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
Adds the auth instruction for the new field.
This commit is contained in:
parent
e41c796182
commit
e456646675
2
42.md
2
42.md
|
@ -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>,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user