Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
witness_computation_test_utils.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: Planned, auditors: [], commit: }
3// external_1: { status: not started, auditors: [], commit: }
4// external_2: { status: not started, auditors: [], commit: }
5// =====================
6
7#pragma once
8
10
11namespace bb {
12
19template <typename Flavor>
20void complete_prover_instance_for_test(const std::shared_ptr<ProverInstance_<Flavor>>& prover_inst)
21{
22 using FF = typename Flavor::FF;
23
24 // Generate random eta, beta, gamma, compute powers
25 prover_inst->relation_parameters.compute_eta_powers(FF::random_element());
26 prover_inst->relation_parameters.compute_beta_powers(FF::random_element());
27 prover_inst->relation_parameters.gamma = FF::random_element();
28
32}
33
34} // namespace bb
typename Curve::ScalarField FF
static void compute_logderivative_inverses(ProverInstance &instance)
Compute the inverse polynomials used in the log derivative lookup relations.
static void add_ram_rom_memory_records_to_wire_4(ProverInstance &instance)
Add RAM/ROM memory records to the fourth wire polynomial.
static void compute_grand_product_polynomial(ProverInstance &instance)
Computes public_input_delta and the permutation grand product polynomial.
Contains all the information required by a Honk prover to create a proof, constructed from a finalize...
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
void complete_prover_instance_for_test(const std::shared_ptr< ProverInstance_< Flavor > > &prover_inst)
TEST only helper for completing computation of the prover polynomials using random challenges.
static field random_element(numeric::RNG *engine=nullptr) noexcept