Module hash_chain

Module hash_chain 

Source

Functionsยง

create_hash_chain_from_array
Creates a hash chain from an array of [u8;32] arrays.
create_hash_chain_from_slice
Creates a hash chain from a slice of [u8;32] arrays.
create_two_inputs_hash_chain
Creates a two inputs hash chain from two slices of [u8;32] arrays. The two slices must have the same length. Hashes are hashed in pairs, with the first hash from the first slice and the second hash from the second slice. H(i) = H(H(i-1), hashes_first[i], hashes_second[i])