pub struct Proof<E: Pairing> {
pub wires_poly_comms: Vec<Commitment<E>>,
pub prod_perm_poly_comm: Commitment<E>,
pub split_quot_poly_comms: Vec<Commitment<E>>,
pub opening_proof: Commitment<E>,
pub shifted_opening_proof: Commitment<E>,
pub poly_evals: ProofEvaluations<E::ScalarField>,
pub plookup_proof: Option<PlookupProof<E>>,
}
Expand description
A Plonk SNARK proof.
Fields§
§wires_poly_comms: Vec<Commitment<E>>
Wire witness polynomials commitments.
prod_perm_poly_comm: Commitment<E>
The polynomial commitment for the wire permutation argument.
split_quot_poly_comms: Vec<Commitment<E>>
Split quotient polynomial commitments.
opening_proof: Commitment<E>
(Aggregated) proof of evaluations at challenge point zeta
.
shifted_opening_proof: Commitment<E>
(Aggregated) proof of evaluation at challenge point zeta * g
where g
is the root of unity.
poly_evals: ProofEvaluations<E::ScalarField>
Polynomial evaluations.
plookup_proof: Option<PlookupProof<E>>
The partial proof for Plookup argument
Trait Implementations§
Source§impl<E: Pairing> CanonicalDeserialize for Proof<E>
impl<E: Pairing> CanonicalDeserialize for Proof<E>
Source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
Source§impl<E: Pairing> CanonicalSerialize for Proof<E>
impl<E: Pairing> CanonicalSerialize for Proof<E>
Source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
Source§impl<'de, E: Pairing> Deserialize<'de> for Proof<E>
impl<'de, E: Pairing> Deserialize<'de> for Proof<E>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E: Pairing> From<Proof<E>> for BatchProof<E>
impl<E: Pairing> From<Proof<E>> for BatchProof<E>
Source§impl<E, P> From<Proof<E>> for Vec<E::BaseField>where
E: Pairing<G1Affine = Affine<P>>,
P: SWCurveConfig<BaseField = E::BaseField, ScalarField = E::ScalarField>,
impl<E, P> From<Proof<E>> for Vec<E::BaseField>where
E: Pairing<G1Affine = Affine<P>>,
P: SWCurveConfig<BaseField = E::BaseField, ScalarField = E::ScalarField>,
Source§impl<E, P> TryFrom<Vec<<E as Pairing>::BaseField>> for Proof<E>where
E: Pairing<G1Affine = Affine<P>>,
P: SWCurveConfig<BaseField = E::BaseField, ScalarField = E::ScalarField>,
impl<E, P> TryFrom<Vec<<E as Pairing>::BaseField>> for Proof<E>where
E: Pairing<G1Affine = Affine<P>>,
P: SWCurveConfig<BaseField = E::BaseField, ScalarField = E::ScalarField>,
impl<E: Eq + Pairing> Eq for Proof<E>where
E::ScalarField: Eq,
Auto Trait Implementations§
impl<E> Freeze for Proof<E>
impl<E> RefUnwindSafe for Proof<E>where
<E as Pairing>::G1Affine: RefUnwindSafe,
<E as Pairing>::ScalarField: RefUnwindSafe,
impl<E> Send for Proof<E>
impl<E> Sync for Proof<E>
impl<E> Unpin for Proof<E>
impl<E> UnwindSafe for Proof<E>where
<E as Pairing>::G1Affine: UnwindSafe,
<E as Pairing>::ScalarField: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more