tenthash
Types
Functions
pub fn hash(data: String) -> Result(BigInt, Nil)
Takes a String and returns a BigInt result or Error(Nil) if hash failed for some reason
Examples
let assert Ok(h) = hash("abcdefghijklmnopqrstuvwxyz")
bigi.to_String(h)
// -> "1380110527555217708541196361393927539963735354394"
pub fn hash_bitarray(data: BitArray) -> Result(BigInt, Nil)
Takes a BitArray and returns a BigInt result or Error(Nil) if hash failed for some reason