Skip to main content

xor_distance

Function xor_distance 

Source
pub fn xor_distance(a: &XorName, b: &XorName) -> XorName
Expand description

Compute the XOR distance between two 32-byte addresses.

Lexicographic comparison of the result gives correct Kademlia distance ordering.