From 50d20123e2271e2d33323105414b01a0a69559d5 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 18 Nov 2023 09:36:59 -0300 Subject: [PATCH 1/2] "restricted_writes" on NIP-11. --- 11.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/11.md b/11.md index ab05f31d..fe9f0e48 100644 --- a/11.md +++ b/11.md @@ -79,6 +79,7 @@ are rejected or fail immediately. "min_pow_difficulty": 30, "auth_required": true, "payment_required": true, + "restricted_writes": true, "created_at_lower_limit": 31536000, "created_at_upper_limit": 3 }, @@ -124,6 +125,9 @@ Even if set to False, authentication may be required for specific actions. - `payment_required`: this relay requires payment before a new connection may perform any action. +- `restricted_writes`: this relay requires some kind of condition to be fulfilled in order to +accept events (not necessarily, but including `payment_required` and `min_pow_difficulty`). + - `created_at_lower_limit`: 'created_at' lower limit as defined in [NIP-22](22.md) - `created_at_upper_limit`: 'created_at' upper limit as defined in [NIP-22](22.md) From 438812d0a4a9afa5b4985e07771ae2919765b514 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 19 Nov 2023 10:17:57 -0300 Subject: [PATCH 2/2] clarify that `restricted_writes` do not include normal anti-spam heuristics and other kinds of soft-restrictions. --- 11.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/11.md b/11.md index fe9f0e48..615e796f 100644 --- a/11.md +++ b/11.md @@ -127,6 +127,9 @@ Even if set to False, authentication may be required for specific actions. - `restricted_writes`: this relay requires some kind of condition to be fulfilled in order to accept events (not necessarily, but including `payment_required` and `min_pow_difficulty`). +This should only be set to `true` when users are expected to know the relay policy before trying +to write to it -- like belonging to a special pubkey-based whitelist or writing only events of +a specific niche kind or content. Normal anti-spam heuristics, for example, do not qualify. - `created_at_lower_limit`: 'created_at' lower limit as defined in [NIP-22](22.md)