lambdas-of-love / kademlia

A DHT using Kademlia for fun and zero profit.
Eclipse Public License 1.0
4 stars 0 forks source link

keyspace node ID conflict #13

Open trevorriles opened 8 years ago

trevorriles commented 8 years ago

Right now we are using the uuids which are 128 bits for our node id's. If we are going to use sha1 or sha256 to hash our keys, we also need to apply this hash to our uuids, and switch the 160 bit or 256 bit respectively.

Kademlia takes the basic approach of many DHTs. Keys are opaque, 160-bit quantities (e.g., the SHA-1 hash of some larger data). Participating computers each have a node ID in the 160-bit key space

- Kademlia Paper