pub trait Hash {
    type Input;
    type Output;

    fn hash(&self, input: &[Self::Input]) -> Result<Self::Output, Error>;
}
Expand description

A trait for a hash function.

Required Associated Types

Required Methods

Returns the hash of the given input.

Implementations on Foreign Types

Returns the cryptographic hash for a list of field elements as input.

Returns the Pedersen hash of the given input as a field element.

Returns the BHP hash of the given input as a field element.

Implementors