Liking cljdoc? Tell your friends :D

dht-cljc.infohash


bit-position-lookupclj/s

source

depthclj/s

(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.
sourceraw docstring

distanceclj/s

(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.
sourceraw docstring

generate!clj/s

(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
sourceraw docstring

sha1clj/s

(sha1 data)

Returns a byte vector encoded SHA1 of the data

Returns a byte vector encoded SHA1 of the data
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close