What is Nostr?
hamsi / Karadenizli
npub15r9…7dpl
2024-03-21 04:15:01
in reply to nevent1q…nrvy

hamsi on Nostr: NIP idea: A preview request that's like a normal request but instead of sending you ...

NIP idea:
A preview request that's like a normal request but instead of sending you everything you asked for right away, the relay responds with a hash of all the events it's bout to send you.
This way you can add all the relays you want but it only downloads posts from relays with unique hashes.

Now the problem with this would be that in a world where your average relay doesn't store the entirety of nostr, you might still have tens of relays responding with different hashes when they have much of the same notes but a few differences.

To solve that we could have a request type that will ask for just a list of the signatures of each event.

You could use the first to filter out relays with no unique posts, then the second to requests posts individually so you never download anything more than once.

The second proposal would also facilitate premium relays where apps could request notes from them like anywhere else, but only pay them if there isn't any free relay hosting the same note.
Author Public Key
npub15r9hp5eq3a0heantnja4sth3ug277nhse9f3scu937mxfh0mpw8snt7dpl