Struct snarkvm_polycommit::kzg10::PreparedCommitment
source · [−]pub struct PreparedCommitment<E: PairingEngine>(pub Vec<E::G1Affine>);
Expand description
PreparedCommitment
commits to a polynomial and prepares for mul_bits.
Tuple Fields
0: Vec<E::G1Affine>
The commitment is a group element.
Implementations
sourceimpl<E: PairingEngine> PreparedCommitment<E>
impl<E: PairingEngine> PreparedCommitment<E>
sourcepub fn prepare(comm: &Commitment<E>) -> Self
pub fn prepare(comm: &Commitment<E>) -> Self
prepare PreparedCommitment
from Commitment
Trait Implementations
sourceimpl<TargetCurve, BaseCurve, PG> AllocGadget<PreparedCommitment<TargetCurve>, <BaseCurve as PairingEngine>::Fr> for PreparedCommitmentVar<TargetCurve, BaseCurve, PG> where
TargetCurve: PairingEngine,
BaseCurve: PairingEngine,
PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
impl<TargetCurve, BaseCurve, PG> AllocGadget<PreparedCommitment<TargetCurve>, <BaseCurve as PairingEngine>::Fr> for PreparedCommitmentVar<TargetCurve, BaseCurve, PG> where
TargetCurve: PairingEngine,
BaseCurve: PairingEngine,
PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
fn alloc_constant<Fn: FnOnce() -> Result<T, SynthesisError>, T: Borrow<PreparedCommitment<TargetCurve>>, CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>>(
cs: CS,
value_gen: Fn
) -> Result<Self, SynthesisError>
fn alloc<Fn: FnOnce() -> Result<T, SynthesisError>, T: Borrow<PreparedCommitment<TargetCurve>>, CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>>(
cs: CS,
value_gen: Fn
) -> Result<Self, SynthesisError>
fn alloc_input<Fn: FnOnce() -> Result<T, SynthesisError>, T: Borrow<PreparedCommitment<TargetCurve>>, CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>>(
cs: CS,
value_gen: Fn
) -> Result<Self, SynthesisError>
fn alloc_checked<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<V>,
CS: ConstraintSystem<F>,
fn alloc_input_checked<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
T: Borrow<V>,
CS: ConstraintSystem<F>,
sourceimpl<E: PairingEngine> Clone for PreparedCommitment<E>
impl<E: PairingEngine> Clone for PreparedCommitment<E>
sourceimpl<E: PairingEngine> Debug for PreparedCommitment<E>
impl<E: PairingEngine> Debug for PreparedCommitment<E>
sourceimpl<E: PairingEngine> Default for PreparedCommitment<E>
impl<E: PairingEngine> Default for PreparedCommitment<E>
sourceimpl<E: PairingEngine> Hash for PreparedCommitment<E>
impl<E: PairingEngine> Hash for PreparedCommitment<E>
sourceimpl<E: PairingEngine> PartialEq<PreparedCommitment<E>> for PreparedCommitment<E>
impl<E: PairingEngine> PartialEq<PreparedCommitment<E>> for PreparedCommitment<E>
sourceimpl<E: PairingEngine> Prepare<PreparedCommitment<E>> for Commitment<E>
impl<E: PairingEngine> Prepare<PreparedCommitment<E>> for Commitment<E>
sourcefn prepare(&self) -> PreparedCommitment<E>
fn prepare(&self) -> PreparedCommitment<E>
prepare PreparedCommitment
from Commitment
impl<E: PairingEngine> Eq for PreparedCommitment<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for PreparedCommitment<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe,
impl<E> Send for PreparedCommitment<E>
impl<E> Sync for PreparedCommitment<E>
impl<E> Unpin for PreparedCommitment<E> where
<E as PairingEngine>::G1Affine: Unpin,
impl<E> UnwindSafe for PreparedCommitment<E> where
<E as PairingEngine>::G1Affine: 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
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