Trait ark_crypto_primitives::prf::PRF[][src]

pub trait PRF {
    type Input: FromBytes + Default;
    type Output: ToBytes + Eq + Clone + Debug + Default + Hash;
    type Seed: FromBytes + ToBytes + Clone + Default + Debug;
    fn evaluate(
        seed: &Self::Seed,
        input: &Self::Input
    ) -> Result<Self::Output, CryptoError>; }

Associated Types

Loading content...

Required methods

fn evaluate(
    seed: &Self::Seed,
    input: &Self::Input
) -> Result<Self::Output, CryptoError>
[src]

Loading content...

Implementors

impl PRF for Blake2s[src]

type Input = [u8; 32]

type Output = [u8; 32]

type Seed = [u8; 32]

Loading content...