karyon_p2p::routing_table::entry

Function xor_distance

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

Calculates the XOR distance between two provided keys.

The XOR distance is a metric used in Kademlia to measure the closeness of keys.