Struct snarkvm_wasm::marlin_pc::Commitment [−][src]
pub struct Commitment<E> where
E: PairingEngine, { /* fields omitted */ }Expand description
Commitment to a polynomial that optionally enforces a degree bound.
Trait Implementations
impl<TargetCurve, BaseCurve, PG> AllocGadget<Commitment<TargetCurve>, <BaseCurve as PairingEngine>::Fr> for CommitmentVar<TargetCurve, BaseCurve, PG> where
TargetCurve: PairingEngine,
BaseCurve: PairingEngine,
PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
<TargetCurve as PairingEngine>::G1Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>,
<TargetCurve as PairingEngine>::G2Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>, [src]
impl<TargetCurve, BaseCurve, PG> AllocGadget<Commitment<TargetCurve>, <BaseCurve as PairingEngine>::Fr> for CommitmentVar<TargetCurve, BaseCurve, PG> where
TargetCurve: PairingEngine,
BaseCurve: PairingEngine,
PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
<TargetCurve as PairingEngine>::G1Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>,
<TargetCurve as PairingEngine>::G2Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>, [src]pub fn alloc_constant<Fn, T, CS>(
cs: CS,
value_gen: Fn
) -> Result<CommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
T: Borrow<Commitment<TargetCurve>>, [src]
cs: CS,
value_gen: Fn
) -> Result<CommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
T: Borrow<Commitment<TargetCurve>>,
pub fn alloc<Fn, T, CS>(
cs: CS,
value_gen: Fn
) -> Result<CommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
T: Borrow<Commitment<TargetCurve>>, [src]
cs: CS,
value_gen: Fn
) -> Result<CommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
T: Borrow<Commitment<TargetCurve>>,
pub fn alloc_input<Fn, T, CS>(
cs: CS,
value_gen: Fn
) -> Result<CommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
T: Borrow<Commitment<TargetCurve>>, [src]
cs: CS,
value_gen: Fn
) -> Result<CommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
T: Borrow<Commitment<TargetCurve>>,
fn alloc_checked<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>, [src]
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
fn alloc_input_checked<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>, [src]
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
impl<E> CanonicalDeserialize for Commitment<E> where
E: PairingEngine, [src]
impl<E> CanonicalDeserialize for Commitment<E> where
E: PairingEngine, [src]pub fn deserialize<R>(
reader: &mut R
) -> Result<Commitment<E>, SerializationError> where
R: Read, [src]
pub fn deserialize<R>(
reader: &mut R
) -> Result<Commitment<E>, SerializationError> where
R: Read, [src]Reads Self from reader.
pub fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<Commitment<E>, SerializationError> where
R: Read, [src]
pub fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<Commitment<E>, SerializationError> where
R: Read, [src]Reads Self from reader without compression.
impl<E> CanonicalSerialize for Commitment<E> where
E: PairingEngine, [src]
impl<E> CanonicalSerialize for Commitment<E> where
E: PairingEngine, [src]pub fn serialize<W>(&self, writer: &mut W) -> Result<(), SerializationError> where
W: Write, [src]
pub fn serialize<W>(&self, writer: &mut W) -> Result<(), SerializationError> where
W: Write, [src]Serializes self into writer.
pub fn serialized_size(&self) -> usize[src]
pub fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write, [src]
pub fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write, [src]Serializes self into writer without compression.
pub fn uncompressed_size(&self) -> usize[src]
impl<E> Clone for Commitment<E> where
E: PairingEngine, [src]
impl<E> Clone for Commitment<E> where
E: PairingEngine, [src]pub fn clone(&self) -> Commitment<E>[src]
pub fn clone(&self) -> Commitment<E>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<E> Debug for Commitment<E> where
E: PairingEngine, [src]
impl<E> Debug for Commitment<E> where
E: PairingEngine, [src]impl<E> Default for Commitment<E> where
E: PairingEngine, [src]
impl<E> Default for Commitment<E> where
E: PairingEngine, [src]pub fn default() -> Commitment<E>[src]
pub fn default() -> Commitment<E>[src]Returns the “default value” for a type. Read more
impl<E> FromBytes for Commitment<E> where
E: PairingEngine, [src]
impl<E> FromBytes for Commitment<E> where
E: PairingEngine, [src]impl<E> Hash for Commitment<E> where
E: PairingEngine, [src]
impl<E> Hash for Commitment<E> where
E: PairingEngine, [src]impl<E> PCCommitment for Commitment<E> where
E: PairingEngine, [src]
impl<E> PCCommitment for Commitment<E> where
E: PairingEngine, [src]pub fn empty() -> Commitment<E>[src]
pub fn empty() -> Commitment<E>[src]Outputs a non-hiding commitment to the zero polynomial.
pub fn has_degree_bound(&self) -> bool[src]
pub fn has_degree_bound(&self) -> bool[src]Does this commitment have a degree bound?
pub fn is_in_correct_subgroup_assuming_on_curve(&self) -> bool[src]
pub fn is_in_correct_subgroup_assuming_on_curve(&self) -> bool[src]Does this commitment’s affine belong to the correct subgroup?
impl<E> PCPreparedCommitment<Commitment<E>> for PreparedCommitment<E> where
E: PairingEngine, [src]
impl<E> PCPreparedCommitment<Commitment<E>> for PreparedCommitment<E> where
E: PairingEngine, [src]pub fn prepare(commitment: &Commitment<E>) -> PreparedCommitment<E>[src]
pub fn prepare(commitment: &Commitment<E>) -> PreparedCommitment<E>[src]Prepare commitment to a polynomial that optionally enforces a degree bound.
impl<E> PartialEq<Commitment<E>> for Commitment<E> where
E: PairingEngine, [src]
impl<E> PartialEq<Commitment<E>> for Commitment<E> where
E: PairingEngine, [src]impl<E> ToBytes for Commitment<E> where
E: PairingEngine, [src]
impl<E> ToBytes for Commitment<E> where
E: PairingEngine, [src]impl<E> ToConstraintField<<E as PairingEngine>::Fq> for Commitment<E> where
E: PairingEngine,
<E as PairingEngine>::G1Affine: ToConstraintField<<E as PairingEngine>::Fq>, [src]
impl<E> ToConstraintField<<E as PairingEngine>::Fq> for Commitment<E> where
E: PairingEngine,
<E as PairingEngine>::G1Affine: ToConstraintField<<E as PairingEngine>::Fq>, [src]pub fn to_field_elements(
&self
) -> Result<Vec<<E as PairingEngine>::Fq, Global>, ConstraintFieldError>[src]
&self
) -> Result<Vec<<E as PairingEngine>::Fq, Global>, ConstraintFieldError>
impl<E> Copy for Commitment<E> where
E: PairingEngine, [src]
E: PairingEngine,
impl<E> Eq for Commitment<E> where
E: PairingEngine, [src]
E: PairingEngine,
Auto Trait Implementations
impl<E> RefUnwindSafe for Commitment<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe,
<E as PairingEngine>::G1Affine: RefUnwindSafe,
impl<E> Send for Commitment<E>
impl<E> Sync for Commitment<E>
impl<E> Unpin for Commitment<E> where
<E as PairingEngine>::G1Affine: Unpin,
<E as PairingEngine>::G1Affine: Unpin,
impl<E> UnwindSafe for Commitment<E> where
<E as PairingEngine>::G1Affine: UnwindSafe,
<E as PairingEngine>::G1Affine: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,