Trait ark_crypto_primitives::crh::FixedLengthCRH[][src]

pub trait FixedLengthCRH {
    type Output: ToBytes + Clone + Eq + Debug + Hash + Default;
    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>; }

Associated Types

Loading content...

Associated Constants

Loading content...

Required methods

fn setup<R: Rng>(r: &mut R) -> Result<Self::Parameters, Error>[src]

fn evaluate(
    parameters: &Self::Parameters,
    input: &[u8]
) -> Result<Self::Output, Error>
[src]

Loading content...

Implementors

impl<C: ProjectiveCurve, I: InjectiveMap<C>, W: Window> FixedLengthCRH for PedersenCRHCompressor<C, I, W>[src]

type Output = I::Output

type Parameters = Parameters<C>

impl<C: ProjectiveCurve, W: Window> FixedLengthCRH for ark_crypto_primitives::crh::pedersen::CRH<C, W>[src]

type Output = C::Affine

type Parameters = Parameters<C>

impl<F: PrimeField, P: PoseidonRoundParams<F>> FixedLengthCRH for PoseidonCRH<F, P>[src]

type Output = F

type Parameters = Poseidon<F, P>

impl<P: TEModelParameters, W: Window> FixedLengthCRH for ark_crypto_primitives::crh::bowe_hopwood::CRH<P, W>[src]

type Output = TEProjective<P>

type Parameters = Parameters<P>

Loading content...