Trait snarkvm_circuit::PRF

source ·
pub trait PRF {
    type Seed;
    type Input;
    type Output;

    // Required method
    fn prf(&self, seed: &Self::Seed, input: &[Self::Input]) -> Self::Output;
}
Expand description

A trait for a pseudorandom function.

Required Associated Types§

Required Methods§

source

fn prf(&self, seed: &Self::Seed, input: &[Self::Input]) -> Self::Output

Returns the output for the given seed and input.

Implementors§

source§

impl<E, const RATE: usize> PRF for Poseidon<E, RATE>where E: Environment,

§

type Input = Field<E>

§

type Output = Field<E>

§

type Seed = Field<E>