22 using NativeFF =
typename Flavor::Curve::ScalarFieldNative;
81 alphas[alpha_idx] = FF::from_witness(
builder, verification_key->alphas[alpha_idx]);
84 auto other_comms = verification_key->witness_commitments.get_all();
87 comm = Commitment::from_witness(
builder, other_comms[comm_idx]);
91 size_t challenge_idx = 0;
92 gate_challenges = std::vector<FF>(verification_key->gate_challenges.size());
94 challenge = FF::from_witness(
builder, verification_key->gate_challenges[challenge_idx]);
103 FF::from_witness(
builder, verification_key->relation_parameters.public_input_delta);
118 native_honk_vk->log_circuit_size =
static_cast<uint64_t
>(
vk_and_hash->vk->log_circuit_size.get_value());
119 native_honk_vk->num_public_inputs =
static_cast<uint64_t
>(
vk_and_hash->vk->num_public_inputs.get_value());
120 native_honk_vk->pub_inputs_offset =
static_cast<uint64_t
>(
vk_and_hash->vk->pub_inputs_offset.get_value());
122 for (
auto [
vk, final_verifier_inst] :
zip_view(
vk_and_hash->vk->get_all(), native_honk_vk->get_all())) {
123 final_verifier_inst =
vk.get_value();
130 inst_alpha = alpha.get_value();
133 for (
auto [comm, inst_comm] :
135 inst_comm = comm.get_value();
141 inst_challenge = challenge.get_value();
150 return verifier_inst;
157 this->vk_and_hash->vk->log_circuit_size);
159 this->vk_and_hash->vk->num_public_inputs);
161 this->vk_and_hash->vk->pub_inputs_offset);
163 for (
const Commitment& commitment : this->vk_and_hash->vk->get_all()) {
171 this->relation_parameters.
eta);
173 this->relation_parameters.
eta_two);
177 this->relation_parameters.
beta);
179 this->relation_parameters.
gamma);
184 this->gate_challenges);
#define BB_ASSERT_EQ(actual, expected,...)
void add_to_independent_hash_buffer(const std::string &label, const T &element)
Adds an element to an independent hash buffer.
DataType hash_independent_buffer()
Hashes the independent hash buffer and clears it.
A container for commitment labels.
The verification key is responsible for storing the commitments to the precomputed (non-witness) poly...
WitnessEntities< Commitment > WitnessCommitments
A container for the witness commitments.
std::array< FF, NUM_SUBRELATIONS - 1 > SubrelationSeparators
static constexpr size_t NUM_SUBRELATIONS
NativeTranscript Transcript
MegaCircuitBuilder CircuitBuilder
Curve::AffineElement Commitment
The VerifierInstance encapsulates all the necessary information for a Mega Honk Verifier to verify a ...
std::vector< FF > gate_challenges
WitnessCommitments witness_commitments
SubrelationSeparators alphas
RelationParameters< FF > relation_parameters
The stdlib counterpart of VerifierInstance, used in recursive folding verification.
RecursiveVerifierInstance_(Builder *builder, std::shared_ptr< VKAndHash > vk_and_hash)
typename Flavor::VerificationKey VerificationKey
typename Flavor::Transcript Transcript
RecursiveVerifierInstance_(Builder *builder, std::shared_ptr< NativeVerifierInstance > verification_key)
WitnessCommitments witness_commitments
typename Flavor::VKAndHash VKAndHash
SubrelationSeparators alphas
typename Flavor::NativeFlavor NativeFlavor
typename Flavor::CommitmentLabels CommitmentLabels
typename NativeFlavor::VerifierCommitmentKey VerifierCommitmentKey
typename Flavor::Curve::ScalarFieldNative NativeFF
std::shared_ptr< VKAndHash > vk_and_hash
typename Flavor::NativeFlavor::VerificationKey NativeVerificationKey
std::vector< FF > public_inputs
RecursiveVerifierInstance_(Builder *builder, std::shared_ptr< NativeVerificationKey > vk)
std::vector< FF > gate_challenges
FF hash_through_transcript(const std::string &domain_separator, Transcript &transcript) const
RecursiveVerifierInstance_(Builder *builder)
typename Flavor::Commitment Commitment
RelationParameters< FF > relation_parameters
NativeVerifierInstance get_value()
Return the underlying native VerifierInstance.
typename Flavor::CircuitBuilder Builder
typename Flavor::WitnessCommitments WitnessCommitments
CommitmentLabels commitment_labels
typename Flavor::SubrelationSeparators SubrelationSeparators
std::shared_ptr< VerificationKey > get_vk() const
Get the verification key.
Base class templates for structures that contain data parameterized by the fundamental polynomials of...
void hash(State &state) noexcept
VerifierCommitmentKey< Curve > vk
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Container for parameters used by the grand product (permutation, lookup) Honk relations.