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§

type Input

type Output

Required Methods§

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

Returns the hash of the given input.

Implementors§

source§

impl<E: Environment, const RATE: usize> HashMany for Poseidon<E, RATE>

§

type Input = Field<E>

§

type Output = Field<E>