Trait snarkvm_circuit::Hash

source ·
pub trait Hash {
    type Input: Inject + Eject + Clone;
    type Output: Inject + Eject + Ternary<Output = Self::Output> + ToBits + Clone;

    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