Find best provider in Kademlia #2185
-
In my understanding of Kadmlia the location of a value to a key is determined by the nearest distance between a keys hash and a nodes id. Following that it must be possible to determine a node for providing a key, from a key. Is there a way to perform such a lookup? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
by the nearest distance between a keys hash and a nodes id hash.
Do I understand correctly that you want the closest nodes only? In that case you can just use |
Beta Was this translation helpful? Give feedback.
by the nearest distance between a keys hash and a nodes id hash.
Do I understand correctly that you want the closest nodes only? In that case you can just use
Kademlia::find_closest
.