Struct snarkvm_gadgets::algorithms::crh::poseidon::PoseidonCRHGadget
source · [−]pub struct PoseidonCRHGadget<F: PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> { /* private fields */ }
Trait Implementations
sourceimpl<F: PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> AllocGadget<PoseidonCRH<F, INPUT_SIZE_FE>, F> for PoseidonCRHGadget<F, INPUT_SIZE_FE>
impl<F: PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> AllocGadget<PoseidonCRH<F, INPUT_SIZE_FE>, F> for PoseidonCRHGadget<F, INPUT_SIZE_FE>
fn alloc_constant<Fn: FnOnce() -> Result<T, SynthesisError>, T: Borrow<PoseidonCRH<F, INPUT_SIZE_FE>>, CS: ConstraintSystem<F>>(
_cs: CS,
value_gen: Fn
) -> Result<Self, SynthesisError>
fn alloc<Fn: FnOnce() -> Result<T, SynthesisError>, T: Borrow<PoseidonCRH<F, INPUT_SIZE_FE>>, CS: ConstraintSystem<F>>(
_cs: CS,
_f: Fn
) -> Result<Self, SynthesisError>
fn alloc_input<Fn: FnOnce() -> Result<T, SynthesisError>, T: Borrow<PoseidonCRH<F, INPUT_SIZE_FE>>, CS: ConstraintSystem<F>>(
_cs: CS,
_f: Fn
) -> Result<Self, SynthesisError>
fn alloc_checked<Fn: FnOnce() -> Result<T, SynthesisError>, T: Borrow<V>, CS: ConstraintSystem<F>>(
cs: CS,
f: Fn
) -> Result<Self, SynthesisError>
fn alloc_input_checked<Fn: FnOnce() -> Result<T, SynthesisError>, T: Borrow<V>, CS: ConstraintSystem<F>>(
cs: CS,
f: Fn
) -> Result<Self, SynthesisError>
sourceimpl<F: PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> CRHGadget<PoseidonCRH<F, INPUT_SIZE_FE>, F> for PoseidonCRHGadget<F, INPUT_SIZE_FE>
impl<F: PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> CRHGadget<PoseidonCRH<F, INPUT_SIZE_FE>, F> for PoseidonCRHGadget<F, INPUT_SIZE_FE>
type OutputGadget = FpGadget<F>
fn check_evaluation_gadget_on_bits<CS: ConstraintSystem<F>>(
&self,
cs: CS,
input: Vec<Boolean>
) -> Result<Self::OutputGadget, SynthesisError>
fn check_evaluation_gadget_on_field_elements<CS: ConstraintSystem<F>>(
&self,
cs: CS,
input: Vec<FpGadget<F>>
) -> Result<Self::OutputGadget, SynthesisError>
fn check_evaluation_gadget<CS: ConstraintSystem<F>>(
&self,
cs: CS,
input: Vec<UInt8>
) -> Result<Self::OutputGadget, SynthesisError>
sourceimpl<F: Clone + PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> Clone for PoseidonCRHGadget<F, INPUT_SIZE_FE>
impl<F: Clone + PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> Clone for PoseidonCRHGadget<F, INPUT_SIZE_FE>
sourcefn clone(&self) -> PoseidonCRHGadget<F, INPUT_SIZE_FE>
fn clone(&self) -> PoseidonCRHGadget<F, INPUT_SIZE_FE>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<F: Debug + PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> Debug for PoseidonCRHGadget<F, INPUT_SIZE_FE>
impl<F: Debug + PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> Debug for PoseidonCRHGadget<F, INPUT_SIZE_FE>
sourceimpl<F: PartialEq + PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> PartialEq<PoseidonCRHGadget<F, INPUT_SIZE_FE>> for PoseidonCRHGadget<F, INPUT_SIZE_FE>
impl<F: PartialEq + PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> PartialEq<PoseidonCRHGadget<F, INPUT_SIZE_FE>> for PoseidonCRHGadget<F, INPUT_SIZE_FE>
sourcefn eq(&self, other: &PoseidonCRHGadget<F, INPUT_SIZE_FE>) -> bool
fn eq(&self, other: &PoseidonCRHGadget<F, INPUT_SIZE_FE>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PoseidonCRHGadget<F, INPUT_SIZE_FE>) -> bool
fn ne(&self, other: &PoseidonCRHGadget<F, INPUT_SIZE_FE>) -> bool
This method tests for !=
.
impl<F: Eq + PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> Eq for PoseidonCRHGadget<F, INPUT_SIZE_FE>
impl<F: PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> StructuralEq for PoseidonCRHGadget<F, INPUT_SIZE_FE>
impl<F: PrimeField + PoseidonDefaultParametersField, const INPUT_SIZE_FE: usize> StructuralPartialEq for PoseidonCRHGadget<F, INPUT_SIZE_FE>
Auto Trait Implementations
impl<F, const INPUT_SIZE_FE: usize> RefUnwindSafe for PoseidonCRHGadget<F, INPUT_SIZE_FE> where
F: RefUnwindSafe,
impl<F, const INPUT_SIZE_FE: usize> Send for PoseidonCRHGadget<F, INPUT_SIZE_FE>
impl<F, const INPUT_SIZE_FE: usize> Sync for PoseidonCRHGadget<F, INPUT_SIZE_FE>
impl<F, const INPUT_SIZE_FE: usize> Unpin for PoseidonCRHGadget<F, INPUT_SIZE_FE>
impl<F, const INPUT_SIZE_FE: usize> UnwindSafe for PoseidonCRHGadget<F, INPUT_SIZE_FE> where
F: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more