Struct ark_marlin::Proof[][src]

pub struct Proof<F: PrimeField, PC: PolynomialCommitment<F, DensePolynomial<F>>> {
    pub commitments: Vec<Vec<PC::Commitment>>,
    pub evaluations: Vec<F>,
    pub prover_messages: Vec<ProverMsg<F>>,
    pub pc_proof: BatchLCProof<F, DensePolynomial<F>, PC>,
}
Expand description

A zkSNARK proof.

Fields

commitments: Vec<Vec<PC::Commitment>>

Commitments to the polynomials produced by the AHP prover.

evaluations: Vec<F>

Evaluations of these polynomials.

prover_messages: Vec<ProverMsg<F>>

The field elements sent by the prover.

pc_proof: BatchLCProof<F, DensePolynomial<F>, PC>

An evaluation proof from the polynomial commitment.

Implementations

Construct a new proof.

Prints information about the size of the proof.

Trait Implementations

Reads Self from reader.

Reads Self from reader without compression.

Reads self from reader without compression, and without performing validity checks. Should be used only when the input is trusted. Read more

Serializes self into writer. It is left up to a particular type for how it strikes the serialization efficiency vs compression tradeoff. For standard types (e.g. bool, lengths, etc.) typically an uncompressed form is used, whereas for algebraic types compressed forms are used. Read more

Serializes self into writer without compression.

Serializes self into writer without compression, and without performing validity checks. Should be used only when there is no danger of adversarial manipulation of the output. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.