convex icon indicating copy to clipboard operation
convex copied to clipboard

Add client ID to Query messages to allow peers to identify them?

Open mikera opened this issue 3 years ago • 2 comments

It would be potentially valuable to add extra identifying information to queries to allow peers to distinguish between clients. Plausible reasons:

  • charge costs for computation
  • offer better QoS to subscribers

Would require some sort of Auth, probably a signature on queries.

Unidentified queries would still be possible, but Peers could give them lesser / no QoS

mikera avatar Oct 04 '22 12:10 mikera

Could have an overridable method in Server e.g. shouldAllowQuery

mikera avatar Oct 04 '22 12:10 mikera

A similar shouldAllowTransaction is also desirable for the same reasons.

Unlike queries, transactions are signed by users. Thus, a client ID (or similar) is not strictly required but it might be more convenient in some situations.

helins avatar Dec 19 '22 12:12 helins