Struct poly_commit::Proof
source · pub struct Proof<P: Pairing> {
pub commitment_to_witness: Commitment<P::G1Affine>,
pub evaluated_point: P::ScalarField,
pub commitment_to_polynomial: Commitment<P::G1Affine>,
}Expand description
Proof that a polynomial p was correctly evaluated at a point z
producing the evaluated point p(z).
Fields§
§commitment_to_witness: Commitment<P::G1Affine>This is a commitment to the witness polynomial.
evaluated_point: P::ScalarFieldThis is the result of evaluating a polynomial at the point z.
commitment_to_polynomial: Commitment<P::G1Affine>This is the commitment to the polynomial that you want to prove a statement about.
Trait Implementations§
source§impl<P: Pairing> Decode for Proof<P>where
Commitment<P::G1Affine>: Decode,
P::ScalarField: Decode,
impl<P: Pairing> Decode for Proof<P>where Commitment<P::G1Affine>: Decode, P::ScalarField: Decode,
source§impl<P: Pairing> Encode for Proof<P>where
Commitment<P::G1Affine>: Encode,
P::ScalarField: Encode,
impl<P: Pairing> Encode for Proof<P>where Commitment<P::G1Affine>: Encode, P::ScalarField: Encode,
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
impl<P: Pairing> EncodeLike<Proof<P>> for Proof<P>where Commitment<P::G1Affine>: Encode, P::ScalarField: Encode,
Auto Trait Implementations§
impl<P> RefUnwindSafe for Proof<P>where <P as Pairing>::G1Affine: RefUnwindSafe, <P as Pairing>::ScalarField: RefUnwindSafe,
impl<P> Send for Proof<P>
impl<P> Sync for Proof<P>
impl<P> Unpin for Proof<P>where <P as Pairing>::G1Affine: Unpin, <P as Pairing>::ScalarField: Unpin,
impl<P> UnwindSafe for Proof<P>where <P as Pairing>::G1Affine: UnwindSafe, <P 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