Trait snarkvm_algorithms::traits::crypto_hash::CryptoHash
source · [−]pub trait CryptoHash {
type Input: FromBytes + From<u64> + Clone;
type Output: Copy + Clone + Debug + ToBytes + Eq + Default;
type Parameters: Clone + Debug + Eq;
fn setup() -> Self;
fn evaluate(&self, input: &[Self::Input]) -> Self::Output;
fn parameters(&self) -> &Self::Parameters;
fn evaluate_with_len(&self, input: &[Self::Input]) -> Self::Output { ... }
}
Associated Types
type Parameters: Clone + Debug + Eq
Required methods
Evaluate the cryptographic hash function over a fixed-length vector as input.