create_hash_chain_from_array

Function create_hash_chain_from_array 

Source
pub fn create_hash_chain_from_array<const T: usize>(
    inputs: [[u8; 32]; T],
) -> Result<[u8; 32], HasherError>
Expand description

Creates a hash chain from an array of [u8;32] arrays.

§Parameters

  • inputs: An array of [u8;32] arrays to be hashed.

§Returns

  • Result<[u8; 32], HasherError>: The resulting hash chain or an error.