hash_elements

Function hash_elements 

Source
pub fn hash_elements(elements: Vec<Felt>) -> Digest
Expand description

Computes the hash of a sequence of field elements using the Rescue Prime Optimized (RPO) hash function.

This maps to the std::crypto::rpo::hash_memory procedure in the Miden stdlib and to the std::crypto::hashes::rpo::hash_memory_words word-optimized variant when the input length is a multiple of 4.

ยงArguments

  • elements - A Vec of field elements to be hashed