Why Nostr? What is Njump?
2024-01-03 17:54:37
in reply to

hodlbod on Nostr: Any hint is better than no hint, so I don't think there's any reason to overthink it ...

Any hint is better than no hint, so I don't think there's any reason to overthink it too much. But the heuristic Coracle uses is:

1. Get rid of non-shareable relay urls (localhost, tor, auth'd relays)
2. Grab a random write relay from the event's author's 10002 list
3. Fall back to the relay the note was seen on
4. Fall back to a random read relay from the user's list

Hints aren't really a complete solution unfortunately. They'll eventually rot as relays go away or user selections change. This doesn't matter for most notes, which are effectively ephemeral, but for older notes we do need a more robust strategy. This could be done using an indexer, or establishing conventions around copying a user's existing notes to their new relay selections.

This could even be done by the relays themselves — scan the network, when you find that a user has added your relay as a "write" relay, scrape the network for that user's notes and copy them to your database. That would be kind of interesting.
Author Public Key
npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn