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.8k stars 224 forks source link

RC and RouterID fetching #2225

Closed tewinget closed 12 months ago

tewinget commented 1 year 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