-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Allow querying the owner of a key on the networking layer #1693
Comments
The Kademlia variant that libp2p uses has |
DHT = Distributed Hash Table? |
Yes |
Current plan / status:
A work in progress version of the above is in #3247. |
I am wondering how this plays with sentry node setup? i.e. validator node that is protected and only accessible via a sentry node |
The idea would be the following: An operator would configure its validator with a set of multi-addresses of its sentry nodes, e.g. via a command line flag or a configuration file. Instead of putting its own external address (which would not be routable on the public internet) on the dht, it would put the external addresses of its sentry nodes on the dht. With the above, validators trying to connect to other validators can find the multi-addresses of a validator or the multi-addresses of a validator's sentry nodes on the dht. Does that answer your question @xlc? |
Yes that makes total sense. |
Given that both the |
Add a DHT whose entries are keys, and whose associated values are a list of PeerId and listening addresses of nodes which own the key. The entries are signed.
This should be done by modifying
network-libp2p
. We can add a method toService
to start a request for a specific key. On success, we should automatically connect to the node which owns the key. TheOpenCustomProtocol
that reports the successful connection should indicate that this corresponds to a fulfilled request. Also add a new variant inServiceEvent
for requests that time out or fail.The text was updated successfully, but these errors were encountered: