snarkvm_console_types_string

Trait HashMany

Source
pub trait HashMany {
    type Input;
    type Output;

    // Required method
    fn hash_many(
        &self,
        input: &[Self::Input],
        num_outputs: u16,
    ) -> Vec<Self::Output>;
}
Expand description

A trait for a hash function that produces multiple outputs.

Required Associated Types§

Required Methods§

Source

fn hash_many( &self, input: &[Self::Input], num_outputs: u16, ) -> Vec<Self::Output>

Returns the hash of the given input.

Implementors§