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
type Output: ToBytes + Clone + Eq + Debug + Hash + Default + CanonicalSerialize + CanonicalDeserialize
[src]type Parameters: Clone + Default
[src]Associated Constants
const INPUT_SIZE_BITS: usize
[src]Required methods
Implementors
type Parameters = Parameters<C>
type Parameters = Parameters<C>
impl<F: PrimeField, P: PoseidonRoundParams<F>> CRH for ark_crypto_primitives::crh::poseidon::CRH<F, P>
[src]
impl<F: PrimeField, P: PoseidonRoundParams<F>> CRH for ark_crypto_primitives::crh::poseidon::CRH<F, P>
[src]impl<P: TEModelParameters, W: Window> CRH for ark_crypto_primitives::crh::bowe_hopwood::CRH<P, W>
[src]
impl<P: TEModelParameters, W: Window> CRH for ark_crypto_primitives::crh::bowe_hopwood::CRH<P, W>
[src]type Output = TEProjective<P>
type Parameters = Parameters<P>