upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf_ <fiatjaf@gmail.com>2023-11-19 11:18:19 -0300
committerGitHub <noreply@github.com>2023-11-19 11:18:19 -0300
commitea6d277c7ceaf21aec077e521c2251bb03f6e651 (patch)
tree5ecc4ce75ef98d1c7af3adecca4a9d35844485bd
parent5dcfe85306434f21ecb1e7a47edd92b2e3e64f9a (diff)
parent438812d0a4a9afa5b4985e07771ae2919765b514 (diff)
Merge pull request #889 from nostr-protocol/nip11-restricted-writes
-rw-r--r--11.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/11.md b/11.md
index ab05f31..615e796 100644
--- a/11.md
+++ b/11.md
@@ -79,6 +79,7 @@ are rejected or fail immediately.
79 "min_pow_difficulty": 30, 79 "min_pow_difficulty": 30,
80 "auth_required": true, 80 "auth_required": true,
81 "payment_required": true, 81 "payment_required": true,
82 "restricted_writes": true,
82 "created_at_lower_limit": 31536000, 83 "created_at_lower_limit": 31536000,
83 "created_at_upper_limit": 3 84 "created_at_upper_limit": 3
84 }, 85 },
@@ -124,6 +125,12 @@ Even if set to False, authentication may be required for specific actions.
124 125
125- `payment_required`: this relay requires payment before a new connection may perform any action. 126- `payment_required`: this relay requires payment before a new connection may perform any action.
126 127
128- `restricted_writes`: this relay requires some kind of condition to be fulfilled in order to
129accept events (not necessarily, but including `payment_required` and `min_pow_difficulty`).
130This should only be set to `true` when users are expected to know the relay policy before trying
131to write to it -- like belonging to a special pubkey-based whitelist or writing only events of
132a specific niche kind or content. Normal anti-spam heuristics, for example, do not qualify.
133
127- `created_at_lower_limit`: 'created_at' lower limit as defined in [NIP-22](22.md) 134- `created_at_lower_limit`: 'created_at' lower limit as defined in [NIP-22](22.md)
128 135
129- `created_at_upper_limit`: 'created_at' upper limit as defined in [NIP-22](22.md) 136- `created_at_upper_limit`: 'created_at' upper limit as defined in [NIP-22](22.md)