pub trait Hash {
    type Input: Inject + Eject + Clone;
    type Output: Inject + Eject + Ternary + ToBits + Clone
    where
        <Self::Output as Ternary>::Output == Self::Output
; fn hash(&self, input: &[Self::Input]) -> Self::Output; }
Expand description

A trait for a hash function.

Required Associated Types

Required Methods

Returns the hash of the given input.

Trait Implementations

Returns the number of constants, public inputs, private inputs, and constraints.

Returns the mode of the output.

Implementors