31 execute_preamble_round();
32 execute_wire_commitments_round();
33 execute_sorted_list_accumulator_round();
34 execute_log_derivative_inverse_round();
35 execute_grand_product_computation_round();
37 verification_key->witness_commitments = witness_comms;
38 verification_key->relation_parameters = relation_parameters;
39 verification_key->alphas = generate_alphas_round();
40 verification_key->is_complete =
true;
49 FF vk_hash = verification_key->vk->hash_through_transcript(domain_separator, *transcript);
50 transcript->add_to_hash_buffer(domain_separator +
"vk_hash", vk_hash);
51 vinfo(
"vk hash in Oink verifier: ", vk_hash);
53 std::vector<FF> public_inputs;
54 for (
size_t i = 0; i < verification_key->vk->num_public_inputs; ++i) {
56 transcript->template receive_from_prover<FF>(domain_separator +
"public_input_" +
std::to_string(i));
57 public_inputs.emplace_back(public_input_i);
59 verification_key->public_inputs =
std::move(public_inputs);
70 witness_comms.w_l = transcript->template receive_from_prover<Commitment>(domain_separator + comm_labels.w_l);
71 witness_comms.w_r = transcript->template receive_from_prover<Commitment>(domain_separator + comm_labels.w_r);
72 witness_comms.w_o = transcript->template receive_from_prover<Commitment>(domain_separator + comm_labels.w_o);
77 for (
auto [commitment, label] :
zip_view(witness_comms.get_ecc_op_wires(), comm_labels.get_ecc_op_wires())) {
78 commitment = transcript->template receive_from_prover<Commitment>(domain_separator + label);
82 for (
auto [commitment, label] :
83 zip_view(witness_comms.get_databus_entities(), comm_labels.get_databus_entities())) {
84 commitment = transcript->template receive_from_prover<Commitment>(domain_separator + label);
96 auto [eta, eta_two, eta_three] = transcript->template get_challenges<FF>(
97 domain_separator +
"eta", domain_separator +
"eta_two", domain_separator +
"eta_three");
98 relation_parameters.eta = eta;
99 relation_parameters.eta_two = eta_two;
100 relation_parameters.eta_three = eta_three;
103 witness_comms.lookup_read_counts =
104 transcript->template receive_from_prover<Commitment>(domain_separator + comm_labels.lookup_read_counts);
105 witness_comms.lookup_read_tags =
106 transcript->template receive_from_prover<Commitment>(domain_separator + comm_labels.lookup_read_tags);
107 witness_comms.w_4 = transcript->template receive_from_prover<Commitment>(domain_separator + comm_labels.w_4);
117 auto [beta, gamma] = transcript->template get_challenges<FF>(domain_separator +
"beta", domain_separator +
"gamma");
118 relation_parameters.beta = beta;
119 relation_parameters.gamma = gamma;
121 witness_comms.lookup_inverses =
122 transcript->template receive_from_prover<Commitment>(domain_separator + comm_labels.lookup_inverses);
126 for (
auto [commitment, label] :
127 zip_view(witness_comms.get_databus_inverses(), comm_labels.get_databus_inverses())) {
128 commitment = transcript->template receive_from_prover<Commitment>(domain_separator + label);
139 const FF public_input_delta = compute_public_input_delta<Flavor>(verification_key->public_inputs,
140 relation_parameters.beta,
141 relation_parameters.gamma,
142 verification_key->vk->pub_inputs_offset);
144 relation_parameters.public_input_delta = public_input_delta;
147 witness_comms.z_perm = transcript->template receive_from_prover<Commitment>(domain_separator + comm_labels.z_perm);
156 challenge_labels[idx] = domain_separator +
"alpha_" +
std::to_string(idx);
167#ifdef STARKNET_GARAGA_FLAVORS
std::array< FF, NUM_SUBRELATIONS - 1 > SubrelationSeparators
static constexpr size_t NUM_SUBRELATIONS
Verifier class for all the presumcheck rounds, which are shared between the folding verifier and ultr...
void execute_wire_commitments_round()
Get the wire polynomials (part of the witness), with the exception of the fourth wire,...
void execute_preamble_round()
Get circuit size, public input size, and public inputs from transcript.
void verify()
Oink Verifier function that runs all the rounds of the verifier.
SubrelationSeparators generate_alphas_round()
void execute_log_derivative_inverse_round()
Get log derivative inverse polynomial and its commitment, if MegaFlavor.
typename Flavor::SubrelationSeparators SubrelationSeparators
void execute_grand_product_computation_round()
Compute lookup grand product delta and get permutation and lookup grand product commitments.
void execute_sorted_list_accumulator_round()
Get sorted witness-table accumulator and fourth wire commitments.
Entry point for Barretenberg command-line interface.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
std::string to_string(bb::avm2::ValueTag tag)