Skip to content

Use NIP65 to discover the current relays of each nostr pubkey / user #4

Description

@heri16

Issue:

Users may move between nostr relays at any time by just changing their relay config in any good nostr client. When they do this, a replaceable event using kind:10002 is sent by the user's nostr client to advertise the preferred relays. This is critical to ensure receiving fresh content from others.

Feature request:

Implement NIP65 on server-side to discover all READ relays where our nostr-user is currently configured / homed / connected to. This is critical to ensure nostr users continue receiving DMs from our server.

From: https://github.com/nostr-protocol/nips/blob/master/65.md#when-to-use-read-and-write

When broadcasting an event, Clients SHOULD:
- Broadcast the event to the WRITE relays of the author;
- Broadcast the event all READ relays of each tagged user (i.e. Direct Messages).

When seeking events authored by a user, Clients SHOULD use the WRITE relays of the user's kind:10002

When seeking events about a user, where the user was tagged, Clients SHOULD use (and publish to) the READ relays of the user's kind:10002

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions