pub struct Commitments(_);
Expand description

Commitments made by the prover during commit phase of the protocol.

These commitments include:

  • Commitment to the extended execution trace, which may include commitments to one or more execution trace segments.
  • Commitment to the evaluations of constraint composition polynomial over LDE domain.
  • Commitments to the evaluations of polynomials at all FRI layers.

Internally, the commitments are stored as a sequence of bytes. Thus, to retrieve the commitments, parse() function should be used.

Implementations

Returns a new Commitments struct initialized with the provided commitments.

Adds the specified commitment to the list of commitments.

Parses the serialized commitments into distinct parts.

The parts are (in the order in which they appear in the tuple):

  1. Extended execution trace commitments.
  2. Constraint composition polynomial evaluation commitment.
  3. FRI layer commitments.
Errors

Returns an error if the bytes stored in self could not be parsed into the requested number of commitments, or if there are any unconsumed bytes remaining after the parsing completes.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Reads commitments from the specified source and returns the result.

Errors

Returns an error of a valid Commitments struct could not be read from the specified source.

Reads a sequence of bytes from the provided source, attempts to deserialize these bytes into a vector with the specified number of Self elements, and returns the result. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Serializes self and writes the resulting bytes into the target.

Serializes self into a vector of bytes.
Serializes all elements of the source and writes these bytes into the target. Read more
Returns an estimate of how many bytes are needed to represent self. 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

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.