Trait snarkvm_circuit::Hash
source · pub trait Hash {
type Input: Inject + Eject + Clone;
type Output: Inject + Eject + Ternary<Output = Self::Output> + ToBits + Clone;
// Required method
fn hash(&self, input: &[Self::Input]) -> Self::Output;
}
Expand description
A trait for a hash function.