sha3 xor metric#1781
Conversation
…EC point encoding.
|
Wouldn't it be better to directly use the sha3 of the address as NodeId, or at least store it inside Nodeid? |
|
@chriseth Perhaps as an optimization. The output of the distance is already being stored. |
There was a problem hiding this comment.
is this called often? sha3 is not an especially quick function to be calling...
There was a problem hiding this comment.
Not often. It's called by the constructor of NodeEntry and the result is stored in a property.
|
For cross-reference, the go-ethereum PR is here: ethereum/go-ethereum#791. Will submit a devp2p PR for that. If you don't accept this change, I'll roll it back in Go. |
|
ethereum/devp2p#25 is the protocol change request. |
No description provided.