Skip to main content

xor_distance

Function xor_distance 

Source
pub fn xor_distance(a: &[u8; 32], b: &[u8; 32]) -> [u8; 32]
Expand description

Compute the XOR distance between two 32-byte addresses.

Lexicographic comparison of the result gives correct Kademlia distance ordering.