fn hash_array(elements: Vec<RawHttpRequestVal>) -> Vec<u8> {
    let mut hasher = Sha256::new();
    elements
        .into_iter()
        // Hash the encoding of all the array elements.
        .for_each(|e| hasher.write(hash_val(e).as_slice()));
    hasher.finish().to_vec() // hash the concatenation of the hashes.
}
// arrays, encoded as the concatenation of the hashes of the encodings of the
// array elements.
arrays, encoded as the concatenation of the hashes of the encodings of the
array elements.
arrays encoded as the concatenation of the hashes of the encodings of the array elements .
fn hash_array(elements: Vec<RawHttpRequestVal>) -> Vec<u8> {
    let mut hasher = Sha256::new();
    elements
        .into_iter()
        // Hash the encoding of all the array elements.
        .for_each(|e| hasher.write(hash_val(e).as_slice()));
    hasher.finish().to_vec() // hash the concatenation of the hashes.
}
fn hash_array ( elements : Vec < RawHttpRequestVal > ) -> Vec < u8 > { let mut hasher = Sha256 :: new ( ) ; elements . into_iter ( ) // Hash the encoding of all the array elements. . for_each ( | e | hasher . write ( hash_val ( e ) . as_slice ( ) ) ) ; hasher . finish ( ) . to_vec ( ) // hash the concatenation of the hashes. }
arrays, encoded as the concatenation of the hashes of the encodings of the
array elements.
arrays encoded as the concatenation of the hashes of the encodings of the array elements .
elements
Vec<RawHttpRequestVal>
elements
Vec<RawHttpRequestVal>