pub trait HashMany {
    type Input;
    type Output;

    // Required method
    fn hash_many(
        &self,
        input: &[Self::Input],
        num_outputs: u16
    ) -> Vec<Self::Output, Global>;
}
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, Global>

Returns the hash of the given input.

Implementors§

source§

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

§

type Input = Field<E>

§

type Output = Field<E>