(depth distance-bytes)Given the XOR distance, count the left-most zero bits. This represents the point of divergence away from the measured infohash. Returns an integer.
Given the XOR distance, count the left-most zero bits. This represents the point of divergence away from the measured infohash. Returns an integer.
(distance a b)Get the XOR difference (abs (xor a b)) between two infohashes.
Get the XOR difference (abs (xor a b)) between two infohashes.
(generate!)Generates a random SHA1 infohash useful for clients. Returns a byte vector of the infohash
Generates a random SHA1 infohash useful for clients. Returns a byte vector of the infohash
(sha1 data)Returns a byte vector encoded SHA1 of the data
Returns a byte vector encoded SHA1 of the data
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |