jimbojw / memorelay

In-memory Nostr relay.
Apache License 2.0
0 stars 0 forks source link

Implement NIP-26 event delegation #29

Open jimbojw opened 1 year ago

jimbojw commented 1 year ago

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's matchFilter() method, confirm that that implementation satisfies this requirement (or write our own filter matching logic).