[][src]Struct bulletproofs::r1cs::proof::R1CSProof

pub struct R1CSProof {
    pub(super) A_I: CompressedRistretto,
    pub(super) A_O: CompressedRistretto,
    pub(super) S: CompressedRistretto,
    pub(super) T_1: CompressedRistretto,
    pub(super) T_3: CompressedRistretto,
    pub(super) T_4: CompressedRistretto,
    pub(super) T_5: CompressedRistretto,
    pub(super) T_6: CompressedRistretto,
    pub(super) t_x: Scalar,
    pub(super) t_x_blinding: Scalar,
    pub(super) e_blinding: Scalar,
    pub(super) ipp_proof: InnerProductProof,
}

A proof of some statement specified by a ConstraintSystem.

Statements are specified by writing gadget functions which add constraints to a ConstraintSystem implementation. To construct an R1CSProof, a prover constructs a ProverCS, then passes it to gadget functions to build the constraint system, then consumes the constraint system using ProverCS::prove to produce an R1CSProof. To verify an R1CSProof, a verifier constructs a VerifierCS, then passes it to the same gadget functions to (re)build the constraint system, then consumes the constraint system using VerifierCS::verify to verify the proof.

Fields

A_I: CompressedRistretto

Commitment to the values of input wires

A_O: CompressedRistretto

Commitment to the values of output wires

S: CompressedRistretto

Commitment to the blinding factors

T_1: CompressedRistretto

Commitment to the \(t_1\) coefficient of \( t(x) \)

T_3: CompressedRistretto

Commitment to the \(t_3\) coefficient of \( t(x) \)

T_4: CompressedRistretto

Commitment to the \(t_4\) coefficient of \( t(x) \)

T_5: CompressedRistretto

Commitment to the \(t_5\) coefficient of \( t(x) \)

T_6: CompressedRistretto

Commitment to the \(t_6\) coefficient of \( t(x) \)

t_x: Scalar

Evaluation of the polynomial \(t(x)\) at the challenge point \(x\)

t_x_blinding: Scalar

Blinding factor for the synthetic commitment to \( t(x) \)

e_blinding: Scalar

Blinding factor for the synthetic commitment to the inner-product arguments

ipp_proof: InnerProductProof

Proof data for the inner-product argument.

Trait Implementations

impl Clone for R1CSProof[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for R1CSProof[src]

Auto Trait Implementations

impl Send for R1CSProof

impl Sync for R1CSProof

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self