(infra): Support Querying Delegated Nostr Events (NIP-26)
Ticket(s) / Related Merge Requests
Issue: #2414 (closed)
Summary of Changes
This MR allows for querying delegated Nostr events, so that when requesting for an author's public key we will also check for events with this key in the delegation
tag.
Testing Considerations
Try creating a NIP-01 REQ event asking for a user-managed public key. Assuming that delegation is configured, you should see your Minds posts.
["REQ", "subscription-id", {"authors":["<delegate_public_key"]}] | websocat wss://relay.minds.io/nostr/v1/ws -tn
Deployment Considerations
None
Regression Scope
Nostr relay
Platform Affected (web, mobile, etc)
Web
Developer Testing Completed
Tested querying delegated keys
Screenshots / Screen Recording
Does this impact
-
Localization -
Dark/light mode -
Guest mode
Definition of Done Checklist
-
The Acceptance Criteria has been met -
Code is tested: Testing includes unit/spec, E2E/automated and manual testing -
Merge requests description has been filled out
Edited by Zack Wynne