In Kademlia, why is it recommended to have 160-bit node IDs and keys and not 128-bit?
问题 The Kademlia paper states that nodes are assigned random 160-bit IDs as well as the keys. Is this a strict restriction? Can I still go ahead and use a 128-bit keyspace if that's good enough from me? 回答1: The length was chosen because SHA1, used as hash function for the hash table keys, outputs 160bits and that was the most widely used hash function at the time. The routing algorithm itself does not require that specific length to work, all it needs is the key space being large enough to avoid