Commit 331e4332 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

keyspace XOR naming

parent f8d70f34
......@@ -31,11 +31,11 @@ func (id ID) less(other ID) bool {
}
func xor(a, b ID) ID {
return ID(ks.XOR(a, b))
return ID(u.XOR(a, b))
}
func commonPrefixLen(a, b ID) int {
return ks.ZeroPrefixLen(ks.XOR(a, b))
return ks.ZeroPrefixLen(u.XOR(a, b))
}
// ConvertPeerID creates a DHT ID by hashing a Peer ID (Multihash)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment