convex
convex copied to clipboard
Add client ID to Query messages to allow peers to identify them?
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
Could have an overridable method in Server e.g. shouldAllowQuery
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.