Struct snarkvm_polycommit::sonic_pc::commitment::prepared_labeled_commitment::PreparedLabeledCommitmentVar
source · [−]pub struct PreparedLabeledCommitmentVar<TargetCurve: PairingEngine, BaseCurve: PairingEngine, PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>> {
pub label: String,
pub prepared_commitment: PreparedCommitmentVar<TargetCurve, BaseCurve, PG>,
pub degree_bound: Option<FpGadget<<BaseCurve as PairingEngine>::Fr>>,
}
Expand description
Prepared gadget for a Sonic-KZG10 commitment, with a string label and degree bound.
Fields
label: String
A text label for the commitment.
prepared_commitment: PreparedCommitmentVar<TargetCurve, BaseCurve, PG>
The plain commitment.
degree_bound: Option<FpGadget<<BaseCurve as PairingEngine>::Fr>>
Optionally, a bound on the polynomial degree.
Trait Implementations
sourceimpl<TargetCurve, BaseCurve, PG> Clone for PreparedLabeledCommitmentVar<TargetCurve, BaseCurve, PG> where
TargetCurve: PairingEngine,
BaseCurve: PairingEngine,
PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
impl<TargetCurve, BaseCurve, PG> Clone for PreparedLabeledCommitmentVar<TargetCurve, BaseCurve, PG> where
TargetCurve: PairingEngine,
BaseCurve: PairingEngine,
PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
sourceimpl<TargetCurve, BaseCurve, PG> PrepareGadget<PreparedLabeledCommitmentVar<TargetCurve, BaseCurve, PG>, <BaseCurve as PairingEngine>::Fr> for LabeledCommitmentVar<TargetCurve, BaseCurve, PG> where
TargetCurve: PairingEngine,
BaseCurve: PairingEngine,
PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
impl<TargetCurve, BaseCurve, PG> PrepareGadget<PreparedLabeledCommitmentVar<TargetCurve, BaseCurve, PG>, <BaseCurve as PairingEngine>::Fr> for LabeledCommitmentVar<TargetCurve, BaseCurve, PG> where
TargetCurve: PairingEngine,
BaseCurve: PairingEngine,
PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
fn prepare<CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>>(
&self,
cs: CS
) -> Result<PreparedLabeledCommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError>
Auto Trait Implementations
impl<TargetCurve, BaseCurve, PG> RefUnwindSafe for PreparedLabeledCommitmentVar<TargetCurve, BaseCurve, PG> where
<BaseCurve as PairingEngine>::Fr: RefUnwindSafe,
<PG as PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>>::G1Gadget: RefUnwindSafe,
impl<TargetCurve, BaseCurve, PG> Send for PreparedLabeledCommitmentVar<TargetCurve, BaseCurve, PG> where
<PG as PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>>::G1Gadget: Send,
impl<TargetCurve, BaseCurve, PG> Sync for PreparedLabeledCommitmentVar<TargetCurve, BaseCurve, PG> where
<PG as PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>>::G1Gadget: Sync,
impl<TargetCurve, BaseCurve, PG> Unpin for PreparedLabeledCommitmentVar<TargetCurve, BaseCurve, PG> where
<BaseCurve as PairingEngine>::Fr: Unpin,
<PG as PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>>::G1Gadget: Unpin,
impl<TargetCurve, BaseCurve, PG> UnwindSafe for PreparedLabeledCommitmentVar<TargetCurve, BaseCurve, PG> where
<BaseCurve as PairingEngine>::Fr: UnwindSafe,
<PG as PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>>::G1Gadget: 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