pub struct StatefulRescueGadget<E: RescueEngine> { /* private fields */ }
Implementations§
Source§impl<E: RescueEngine> StatefulRescueGadget<E>where
<<E as RescueEngine>::Params as RescueHashParams<E>>::SBox0: PlonkCsSBox<E>,
<<E as RescueEngine>::Params as RescueHashParams<E>>::SBox1: PlonkCsSBox<E>,
impl<E: RescueEngine> StatefulRescueGadget<E>where
<<E as RescueEngine>::Params as RescueHashParams<E>>::SBox0: PlonkCsSBox<E>,
<<E as RescueEngine>::Params as RescueHashParams<E>>::SBox1: PlonkCsSBox<E>,
pub fn new(params: &E::Params) -> Self
pub fn rescue_mimc_over_nums<CS: ConstraintSystem<E>>( cs: &mut CS, state: &[Num<E>], params: &E::Params, ) -> Result<Vec<Num<E>>, SynthesisError>
pub fn rescue_mimc_over_lcs<CS: ConstraintSystem<E>>( cs: &mut CS, state: &[LinearCombination<E>], params: &E::Params, ) -> Result<Vec<LinearCombination<E>>, SynthesisError>
pub fn specizalize(&mut self, dst: u8)
pub fn absorb_single_value<CS: ConstraintSystem<E>>( &mut self, cs: &mut CS, value: Num<E>, params: &E::Params, ) -> Result<(), SynthesisError>
pub fn absorb<CS: ConstraintSystem<E>>( &mut self, cs: &mut CS, input: &[AllocatedNum<E>], params: &E::Params, ) -> Result<(), SynthesisError>
pub fn absorb_nums<CS: ConstraintSystem<E>>( &mut self, cs: &mut CS, input: &[Num<E>], params: &E::Params, ) -> Result<(), SynthesisError>
pub fn squeeze_out_single<CS: ConstraintSystem<E>>( &mut self, cs: &mut CS, params: &E::Params, ) -> Result<LinearCombination<E>, SynthesisError>
pub fn pad_if_necessary( &mut self, params: &E::Params, ) -> Result<(), SynthesisError>
Trait Implementations§
Source§impl<E: Clone + RescueEngine> Clone for StatefulRescueGadget<E>
impl<E: Clone + RescueEngine> Clone for StatefulRescueGadget<E>
Source§fn clone(&self) -> StatefulRescueGadget<E>
fn clone(&self) -> StatefulRescueGadget<E>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<E> Freeze for StatefulRescueGadget<E>
impl<E> RefUnwindSafe for StatefulRescueGadget<E>
impl<E> Send for StatefulRescueGadget<E>
impl<E> Sync for StatefulRescueGadget<E>
impl<E> Unpin for StatefulRescueGadget<E>
impl<E> UnwindSafe for StatefulRescueGadget<E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more