pub struct MixerCircuit<F: PrimeField, H: CRH, HG: CRHGadget<H, F>, C: MerkleConfig, LHGT: CRHGadget<C::LeafH, F>, HGT: CRHGadget<C::H, F>, const N: usize> { /* private fields */ }Implementations§
Source§impl<F, H, HG, C, LHGT, HGT, const N: usize> MixerCircuit<F, H, HG, C, LHGT, HGT, N>where
F: PrimeField,
H: CRH,
HG: CRHGadget<H, F>,
C: MerkleConfig,
LHGT: CRHGadget<C::LeafH, F>,
HGT: CRHGadget<C::H, F>,
impl<F, H, HG, C, LHGT, HGT, const N: usize> MixerCircuit<F, H, HG, C, LHGT, HGT, N>where
F: PrimeField,
H: CRH,
HG: CRHGadget<H, F>,
C: MerkleConfig,
LHGT: CRHGadget<C::LeafH, F>,
HGT: CRHGadget<C::H, F>,
pub fn new( arbitrary_input: ArbitraryInput<F>, leaf_private_inputs: LeafPrivate<F>, hasher_params: H::Parameters, path: Path<C, N>, root: <C::H as CRH>::Output, nullifier_hash: H::Output, ) -> Self
Trait Implementations§
Source§impl<F, H, HG, C, LHGT, HGT, const N: usize> Clone for MixerCircuit<F, H, HG, C, LHGT, HGT, N>where
F: PrimeField,
H: CRH,
HG: CRHGadget<H, F>,
C: MerkleConfig,
LHGT: CRHGadget<C::LeafH, F>,
HGT: CRHGadget<C::H, F>,
impl<F, H, HG, C, LHGT, HGT, const N: usize> Clone for MixerCircuit<F, H, HG, C, LHGT, HGT, N>where
F: PrimeField,
H: CRH,
HG: CRHGadget<H, F>,
C: MerkleConfig,
LHGT: CRHGadget<C::LeafH, F>,
HGT: CRHGadget<C::H, F>,
Source§impl<F, H, HG, C, LHGT, HGT, const N: usize> ConstraintSynthesizer<F> for MixerCircuit<F, H, HG, C, LHGT, HGT, N>where
F: PrimeField,
H: CRH,
HG: CRHGadget<H, F>,
C: MerkleConfig,
LHGT: CRHGadget<C::LeafH, F>,
HGT: CRHGadget<C::H, F>,
impl<F, H, HG, C, LHGT, HGT, const N: usize> ConstraintSynthesizer<F> for MixerCircuit<F, H, HG, C, LHGT, HGT, N>where
F: PrimeField,
H: CRH,
HG: CRHGadget<H, F>,
C: MerkleConfig,
LHGT: CRHGadget<C::LeafH, F>,
HGT: CRHGadget<C::H, F>,
Source§fn generate_constraints(
self,
cs: ConstraintSystemRef<F>,
) -> Result<(), SynthesisError>
fn generate_constraints( self, cs: ConstraintSystemRef<F>, ) -> Result<(), SynthesisError>
Drives generation of new constraints inside
cs.Auto Trait Implementations§
impl<F, H, HG, C, LHGT, HGT, const N: usize> Freeze for MixerCircuit<F, H, HG, C, LHGT, HGT, N>
impl<F, H, HG, C, LHGT, HGT, const N: usize> RefUnwindSafe for MixerCircuit<F, H, HG, C, LHGT, HGT, N>where
<H as CRH>::Parameters: RefUnwindSafe,
<<C as Config>::H as CRH>::Output: RefUnwindSafe,
<H as CRH>::Output: RefUnwindSafe,
F: RefUnwindSafe,
H: RefUnwindSafe,
HG: RefUnwindSafe,
LHGT: RefUnwindSafe,
HGT: RefUnwindSafe,
C: RefUnwindSafe,
<<C as Config>::LeafH as CRH>::Parameters: RefUnwindSafe,
<<C as Config>::H as CRH>::Parameters: RefUnwindSafe,
<<C as Config>::LeafH as CRH>::Output: RefUnwindSafe,
impl<F, H, HG, C, LHGT, HGT, const N: usize> !Send for MixerCircuit<F, H, HG, C, LHGT, HGT, N>
impl<F, H, HG, C, LHGT, HGT, const N: usize> !Sync for MixerCircuit<F, H, HG, C, LHGT, HGT, N>
impl<F, H, HG, C, LHGT, HGT, const N: usize> Unpin for MixerCircuit<F, H, HG, C, LHGT, HGT, N>
impl<F, H, HG, C, LHGT, HGT, const N: usize> UnwindSafe for MixerCircuit<F, H, HG, C, LHGT, HGT, N>where
<H as CRH>::Parameters: UnwindSafe,
<<C as Config>::H as CRH>::Output: UnwindSafe,
<H as CRH>::Output: UnwindSafe,
F: UnwindSafe,
H: UnwindSafe,
HG: UnwindSafe,
LHGT: UnwindSafe,
HGT: UnwindSafe,
C: UnwindSafe,
<<C as Config>::LeafH as CRH>::Parameters: RefUnwindSafe,
<<C as Config>::H as CRH>::Parameters: RefUnwindSafe,
<<C as Config>::LeafH as CRH>::Output: UnwindSafe,
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