Trait ark_crypto_primitives::crh::CRH[][src]

pub trait CRH {
    type Output: ToBytes + Clone + Eq + Debug + Hash + Default + CanonicalSerialize + CanonicalDeserialize;
    type Parameters: Clone + Default;

    const INPUT_SIZE_BITS: usize;

    fn setup<R: Rng>(r: &mut R) -> Result<Self::Parameters, Error>;
fn evaluate(
        parameters: &Self::Parameters,
        input: &[u8]
    ) -> Result<Self::Output, Error>; }
Expand description

Interface to CRH. Note that in this release, while all implementations of CRH have fixed length, variable length CRH may also implement this trait in future.

Associated Types

Associated Constants

Required methods

Implementors