|
|
static constexpr std::string_view | NAME_STRING = "StandardPlonk" |
| |
|
static constexpr size_t | NUM_RESERVED_GATES = 4 |
| |
|
static constexpr size_t | program_width = CircuitBuilder::program_width |
| |
◆ compute_proving_key()
Compute proving key
- Load crs.
- Initialize this.circuit_proving_key.
- Create constraint selector polynomials from each of this composer's
selectors vectors and add them to the proving key.
- Compute sigma polynomial
- Returns
- Pointer to the initialized proving key updated with selector polynomials.
◆ compute_verification_key()
Compute verification key consisting of selector precommitments.
- Returns
- Pointer to created circuit verification key.
◆ compute_witness()
| void proof_system::plonk::StandardComposer::compute_witness |
( |
const CircuitBuilder & |
circuit_constructor, |
|
|
const size_t |
minimum_circuit_size = 0 |
|
) |
| |
Compute witness polynomials (w_1, w_2, w_3, w_4).
Fills 3 or 4 witness polynomials w_1, w_2, w_3, w_4 with the values of in-circuit variables. The beginning of w_1, w_2 polynomials is filled with public_input values.
- Returns
- Witness with computed witness polynomials.
- Template Parameters
-
| Program | settings needed to establish if w_4 is being used. |
◆ create_manifest()
| static transcript::Manifest proof_system::plonk::StandardComposer::create_manifest |
( |
const size_t |
num_public_inputs | ) |
|
|
inlinestatic |
Create a manifest, which specifies proof rounds, elements and who supplies them.
- Parameters
-
| num_public_inputs | The number of public inputs. |
- Returns
- Constructed manifest.
◆ create_prover()
Create prover.
- Compute the starting polynomials (q_l, etc, sigma, witness polynomials).
- Initialize StandardProver with them.
- Add Permutation and arithmetic widgets to the prover.
- Add KateCommitmentScheme to the prover.
- Returns
- Initialized prover.
◆ create_verifier()
Create verifier: compute verification key, initialize verifier with it and an initial manifest and initialize commitment_scheme.
- Returns
- The verifier.
The documentation for this class was generated from the following files:
- src/barretenberg/plonk/composer/standard_composer.hpp
- src/barretenberg/plonk/composer/standard_composer.cpp