aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-04-27 06:50:18 +0800
committerFelix Lange <fjl@twurst.com>2015-05-06 22:10:41 +0800
commit2adcc31bb48af0dee979f2b4ab255d9af21fd097 (patch)
treee13845f15c96a87ac0fc9345f3a0ee90cfd006da /eth
parentd457a1187dbbbf08bcce437789732dab02a73b0f (diff)
downloadgo-tangerine-2adcc31bb48af0dee979f2b4ab255d9af21fd097.tar
go-tangerine-2adcc31bb48af0dee979f2b4ab255d9af21fd097.tar.gz
go-tangerine-2adcc31bb48af0dee979f2b4ab255d9af21fd097.tar.bz2
go-tangerine-2adcc31bb48af0dee979f2b4ab255d9af21fd097.tar.lz
go-tangerine-2adcc31bb48af0dee979f2b4ab255d9af21fd097.tar.xz
go-tangerine-2adcc31bb48af0dee979f2b4ab255d9af21fd097.tar.zst
go-tangerine-2adcc31bb48af0dee979f2b4ab255d9af21fd097.zip
p2p/discover: new distance metric based on sha3(id)
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.
Diffstat (limited to 'eth')
0 files changed, 0 insertions, 0 deletions