Struct snarkvm_gadgets::algorithms::commitment::bhp::BHPRandomnessGadget
source · [−]pub struct BHPRandomnessGadget<G: ProjectiveCurve>(pub Vec<UInt8>, _);
Tuple Fields
0: Vec<UInt8>
Trait Implementations
sourceimpl<G: ProjectiveCurve, F: PrimeField> AllocGadget<<G as Group>::ScalarField, F> for BHPRandomnessGadget<G>
impl<G: ProjectiveCurve, F: PrimeField> AllocGadget<<G as Group>::ScalarField, F> for BHPRandomnessGadget<G>
fn alloc<Fn: FnOnce() -> Result<T, SynthesisError>, T: Borrow<G::ScalarField>, CS: ConstraintSystem<F>>(
cs: CS,
value_gen: Fn
) -> Result<Self, SynthesisError>
fn alloc_input<Fn: FnOnce() -> Result<T, SynthesisError>, T: Borrow<G::ScalarField>, CS: ConstraintSystem<F>>(
cs: CS,
value_gen: Fn
) -> Result<Self, SynthesisError>
fn alloc_constant<Fn: FnOnce() -> Result<T, SynthesisError>, T: Borrow<V>, 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<G: Clone + ProjectiveCurve> Clone for BHPRandomnessGadget<G>
impl<G: Clone + ProjectiveCurve> Clone for BHPRandomnessGadget<G>
sourcefn clone(&self) -> BHPRandomnessGadget<G>
fn clone(&self) -> BHPRandomnessGadget<G>
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<G: Debug + ProjectiveCurve> Debug for BHPRandomnessGadget<G>
impl<G: Debug + ProjectiveCurve> Debug for BHPRandomnessGadget<G>
sourceimpl<G: ProjectiveCurve, F: PrimeField> ToBytesGadget<F> for BHPRandomnessGadget<G>
impl<G: ProjectiveCurve, F: PrimeField> ToBytesGadget<F> for BHPRandomnessGadget<G>
fn to_bytes<CS: ConstraintSystem<F>>(
&self,
_: CS
) -> Result<Vec<UInt8>, SynthesisError>
sourcefn to_bytes_strict<CS: ConstraintSystem<F>>(
&self,
_: CS
) -> Result<Vec<UInt8>, SynthesisError>
fn to_bytes_strict<CS: ConstraintSystem<F>>(
&self,
_: CS
) -> Result<Vec<UInt8>, SynthesisError>
Additionally checks if the produced list of booleans is ‘valid’.
Auto Trait Implementations
impl<G> RefUnwindSafe for BHPRandomnessGadget<G> where
G: RefUnwindSafe,
impl<G> Send for BHPRandomnessGadget<G>
impl<G> Sync for BHPRandomnessGadget<G>
impl<G> Unpin for BHPRandomnessGadget<G> where
G: Unpin,
impl<G> UnwindSafe for BHPRandomnessGadget<G> where
G: UnwindSafe,
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
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