Trait snarkvm_wasm::traits::algorithms::PRFGadget [−][src]
Associated Types
type OutputGadget: AllocGadget<<P as PRF>::Output, F> + EqGadget<F> + ToBytesGadget<F> + Clone + Debug[src]
Required methods
pub fn new_seed<CS>(cs: CS, output: &<P as PRF>::Seed) -> Vec<UInt8, Global> where
CS: ConstraintSystem<F>, [src]
CS: ConstraintSystem<F>,
pub fn check_evaluation_gadget<CS>(
cs: CS,
seed: &[UInt8],
input: &[UInt8]
) -> Result<Self::OutputGadget, SynthesisError> where
CS: ConstraintSystem<F>, [src]
cs: CS,
seed: &[UInt8],
input: &[UInt8]
) -> Result<Self::OutputGadget, SynthesisError> where
CS: ConstraintSystem<F>,
Implementors
impl<F> PRFGadget<Blake2s, F> for Blake2sGadget where
F: PrimeField, [src]
F: PrimeField,
type OutputGadget = Blake2sOutputGadget
pub fn new_seed<CS>(cs: CS, seed: &[u8; 32]) -> Vec<UInt8, Global> where
CS: ConstraintSystem<F>, [src]
CS: ConstraintSystem<F>,
pub fn check_evaluation_gadget<CS>(
cs: CS,
seed: &[UInt8],
input: &[UInt8]
) -> Result<<Blake2sGadget as PRFGadget<Blake2s, F>>::OutputGadget, SynthesisError> where
CS: ConstraintSystem<F>, [src]
cs: CS,
seed: &[UInt8],
input: &[UInt8]
) -> Result<<Blake2sGadget as PRFGadget<Blake2s, F>>::OutputGadget, SynthesisError> where
CS: ConstraintSystem<F>,