oxen-io / lokinet

Lokinet is an anonymous, decentralized and IP based overlay network for the internet.
https://lokinet.org/
GNU General Public License v3.0
1.77k stars 220 forks source link

RC and RouterID fetching #2225

Closed tewinget closed 10 months ago

tewinget commented 10 months ago

Implements the mechanisms by which a client will fetch the current list of RouterIDs and RCs from the network. Relays will use the latter on bootstrap as well, confirming registration against the RouterIDs they get from oxend.

TODO: RouterIDs are fetched from 12 different relays (if possible); the logic to wait for all the responses is in place, but the logic to reconcile them is not.

TODO: RCs are fetched from a connected edge. The logic to distrust this edge if its RC list deviates too far from our known RouterID list is not yet implemented.

Depends #2224