Skip to content

Commit

Permalink
Merge pull request #889 from nostr-protocol/nip11-restricted-writes
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf authored Nov 19, 2023
2 parents 5dcfe85 + 438812d commit ea6d277
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 11.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down Expand Up @@ -124,6 +125,12 @@ 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`).
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)

- `created_at_upper_limit`: 'created_at' upper limit as defined in [NIP-22](22.md)
Expand Down

0 comments on commit ea6d277

Please sign in to comment.