NIP-26 describes a new tag ["delegation",...] which offers a way for a delegator to allow a delegatee to publish messages on their behalf, with conditions.
To be compliant with NIP-26, the relay must:
Check for delegation tags.
Confirm that each tag is valid (has the expected number of entries, signature is valid).
Parse the conditions query.
Assert that the event satisfies the conditions.
Note: NIP-26 does not specify how to handle multiple delegations tags. Probably best to assert all of them when there are more than one.
Note: NIP-26 specifies that author filter queries should match delegatee signed messages. Since Memorelay uses nostr-tools's matchFilter() method, confirm that that implementation satisfies this requirement (or write our own filter matching logic).
NIP-26 describes a new tag
["delegation",...]
which offers a way for a delegator to allow a delegatee to publish messages on their behalf, with conditions.To be compliant with NIP-26, the relay must:
Note: NIP-26 does not specify how to handle multiple delegations tags. Probably best to assert all of them when there are more than one.
Note: NIP-26 specifies that
author
filter queries should match delegatee signed messages. Since Memorelay uses nostr-tools'smatchFilter()
method, confirm that that implementation satisfies this requirement (or write our own filter matching logic).