Trait snarkvm_circuit::Hash
source · [−]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.