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

Required methods

Initializes a new instance of the cryptographic hash function.

Evaluate the cryptographic hash function over a fixed-length vector as input.

Provided methods

Evaluate the cryptographic hash function over a non-fixed-length vector, in which the length also needs to be hashed.

Implementors