Module utils

Module utils 

Source

Functionsยง

bits_to_unsigned_int
bits_to_unsigned_ints
get_least_significant_bits
Gets the bits least significant bits of index, sorted from most significant to least significant.
hash
Hashes arbitrary bytes using SHA256
hmac
Computes the HMAC-SHA256 using the given key and data
slice_to_hash
Convert a &[u8] to a [u8; 32]
string_to_hash
string_to_hash_maybe