nips icon indicating copy to clipboard operation
nips copied to clipboard

NIP-122: Request For Events

Open cameri opened this issue 1 year ago • 8 comments

cameri avatar Jun 23 '24 21:06 cameri

Nice!

You should allow a tags as well.

vitorpamplona avatar Jun 23 '24 21:06 vitorpamplona

For direct requests?

On Sun, Jun 23, 2024 at 5:33 PM, Vitor Pamplona @.***(mailto:On Sun, Jun 23, 2024 at 5:33 PM, Vitor Pamplona < wrote:

Nice!

You should allow a tags as well.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

cameri avatar Jun 23 '24 21:06 cameri

Yep, you can ask using e tags and/or a tags for the newest version of a replaceable.

vitorpamplona avatar Jun 23 '24 21:06 vitorpamplona

If this becomes widely implemented, I could see someone posting an ephemeral public request for missing events, and then thousands of clients all responding with those events flooding the relay they are communicating with.

I'm not sure by what mechanism that can be avoided.

mikedilger avatar Jun 23 '24 22:06 mikedilger

If this becomes widely implemented, I could see someone posting an ephemeral public request for missing events, and then thousands of clients all responding with those events flooding the relay they are communicating with.

I'm not sure by what mechanism that can be avoided.

Clients can respond to a sample of the incoming requests, rate limit, have quotas for this function or data caps, require PoW, respond only from their Web of Trust.

There's plenty of solutions to mitigate that scenario.

cameri avatar Jun 23 '24 22:06 cameri

If this becomes widely implemented, I could see someone posting an ephemeral public request for missing events, and then thousands of clients all responding with those events flooding the relay they are communicating with.

I'm not sure by what mechanism that can be avoided.

Relays also mitigate the effect by not forwarding if the event ID is stored.

cameri avatar Jun 23 '24 22:06 cameri

It might also be a hint to the relay or to a relay service to find those events because your users want them.

There could be services that just connect to relays and re-broadcast events from other relays based on these requests.

vitorpamplona avatar Jun 23 '24 22:06 vitorpamplona

Interesting approach. Could maybe also eventually be extended to respond with wrapped events if events are not accepted (maybe too old or other reason).

fabianfabian avatar Jun 24 '24 08:06 fabianfabian