• Felix Lange's avatar
    p2p/discover: new distance metric based on sha3(id) · 2adcc31b
    Felix Lange authored
    The previous metric was pubkey1^pubkey2, as specified in the Kademlia
    paper. We missed that EC public keys are not uniformly distributed.
    Using the hash of the public keys addresses that. It also makes it
    a bit harder to generate node IDs that are close to a particular node.
    2adcc31b
Name
Last commit
Last update
..
discover Loading commit data...
nat Loading commit data...
handshake.go Loading commit data...
handshake_test.go Loading commit data...
message.go Loading commit data...
message_test.go Loading commit data...
peer.go Loading commit data...
peer_error.go Loading commit data...
peer_test.go Loading commit data...
protocol.go Loading commit data...
rlpx.go Loading commit data...
rlpx_test.go Loading commit data...
server.go Loading commit data...
server_test.go Loading commit data...
testlog_test.go Loading commit data...