Add content restriction to NIP-26

This commit is contained in:
Pablo Fernandez 2023-02-04 11:46:18 +07:00 committed by pablof7z
parent 025beb332c
commit b71a190db5

5
26.md
View File

@ -43,6 +43,9 @@ The following fields and operators are supported in the above query string:
- *Operators*:
- `<${TIMESTAMP}` - delegatee may only sign events created ***before*** the specified timestamp
- `>${TIMESTAMP}` - delegatee may only sign events created ***after*** the specified timestamp
3. `content`
- *Operators*:
- `=${CONTENT}` - delegatee may only sign events with this content
In order to create a single condition, you must use a supported field and operator. Multiple conditions can be used in a single query string, including on the same field. Conditions must be combined with `&`.
@ -103,4 +106,4 @@ Clients should display the delegated note as if it was published directly by the
#### Relay & Client Querying Support
Relays should answer requests such as `["REQ", "", {"authors": ["A"]}]` by querying both the `pubkey` and delegation tags `[1]` value.
Relays should answer requests such as `["REQ", "", {"authors": ["A"]}]` by querying both the `pubkey` and delegation tags `[1]` value.