"restricted_writes" on NIP-11.

This commit is contained in:
fiatjaf 2023-11-18 09:36:59 -03:00
parent 5dcfe85306
commit 50d20123e2
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

4
11.md
View File

@ -79,6 +79,7 @@ are rejected or fail immediately.
"min_pow_difficulty": 30, "min_pow_difficulty": 30,
"auth_required": true, "auth_required": true,
"payment_required": true, "payment_required": true,
"restricted_writes": true,
"created_at_lower_limit": 31536000, "created_at_lower_limit": 31536000,
"created_at_upper_limit": 3 "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. - `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_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) - `created_at_upper_limit`: 'created_at' upper limit as defined in [NIP-22](22.md)