jf_plonk::proof_system::structs

Struct Proof

Source
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>

Source§

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>

Source§

fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>

The general serialize method that takes in customization flags.
Source§

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<E: Clone + Pairing> Clone for Proof<E>
where E::ScalarField: Clone,

Source§

fn clone(&self) -> Proof<E>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<E: Debug + Pairing> Debug for Proof<E>
where E::ScalarField: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, E: Pairing> Deserialize<'de> for Proof<E>

Source§

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> Display for Proof<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: Pairing> From<&Proof<E>> for TaggedBase64

Source§

fn from(x: &Proof<E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Pairing> From<Proof<E>> for BatchProof<E>

Source§

fn from(proof: Proof<E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Pairing> From<Proof<E>> for TaggedBase64

Source§

fn from(x: Proof<E>) -> Self

Converts to this type from the input type.
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>,

Source§

fn from(proof: Proof<E>) -> Self

Converts to this type from the input type.
Source§

impl<E: Pairing> FromStr for Proof<E>

Source§

type Err = Tb64Error

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl<E> Hash for Proof<E>
where E: Pairing,

Source§

fn hash<__HE>(&self, __state: &mut __HE)
where __HE: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<E> PartialEq for Proof<E>
where E: PartialEq + Pairing,

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<E: Pairing> Serialize for Proof<E>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<E: Pairing> Tagged for Proof<E>

Source§

impl<E: Pairing> TryFrom<&TaggedBase64> for Proof<E>

Source§

type Error = Tb64Error

The type returned in the event of a conversion error.
Source§

fn try_from(t: &TaggedBase64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<E: Pairing> TryFrom<TaggedBase64> for Proof<E>

Source§

type Error = Tb64Error

The type returned in the event of a conversion error.
Source§

fn try_from(t: TaggedBase64) -> Result<Self, Self::Error>

Performs the conversion.
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>,

Source§

type Error = SnarkError

The type returned in the event of a conversion error.
Source§

fn try_from(value: Vec<E::BaseField>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<E: Pairing> Valid for Proof<E>

Source§

fn check(&self) -> Result<(), SerializationError>

Source§

fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send, ) -> Result<(), SerializationError>
where Self: 'a,

Source§

impl<E: Eq + Pairing> Eq for Proof<E>
where E::ScalarField: Eq,

Auto Trait Implementations§

§

impl<E> Freeze for Proof<E>
where <E as Pairing>::G1Affine: Freeze, <E as Pairing>::ScalarField: Freeze,

§

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>
where <E as Pairing>::G1Affine: Unpin, <E as Pairing>::ScalarField: Unpin,

§

impl<E> UnwindSafe for Proof<E>
where <E as Pairing>::G1Affine: UnwindSafe, <E as Pairing>::ScalarField: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CanonicalSerializeHashExt for T
where T: CanonicalSerialize,

§

fn hash<H>(&self) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>
where H: Digest,

§

fn hash_uncompressed<H>( &self, ) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>
where H: Digest,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> Downcast for T
where T: 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>

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)

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)

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
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,