31 std::shared_ptr<VerificationKey>
vk;
55 std::shared_ptr<VerificationKey>
get_vk()
const {
return vk; }
71 std::vector<FF> instance_elements;
76 auto append_tagged = [&]<
typename T>(
const T& component) {
77 auto frs = bb::tag_and_serialize<Transcript::in_circuit, Codec>(component,
tag);
78 instance_elements.insert(instance_elements.end(), frs.begin(), frs.end());
82 append_tagged(this->vk->log_circuit_size);
83 append_tagged(this->vk->num_public_inputs);
84 append_tagged(this->vk->pub_inputs_offset);
87 for (
const Commitment& commitment : this->vk->get_all()) {
88 append_tagged(commitment);
97 append_tagged(this->alpha);
98 append_tagged(this->relation_parameters.
eta);
99 append_tagged(this->relation_parameters.
eta_two);
100 append_tagged(this->relation_parameters.
eta_three);
101 append_tagged(this->relation_parameters.
beta);
102 append_tagged(this->relation_parameters.
gamma);
104 append_tagged(this->gate_challenges);
107 bb::unset_free_witness_tags<Transcript::in_circuit, FF>(instance_elements);
110 return Transcript::HashFunction::hash(instance_elements);
#define BB_ASSERT_EQ(actual, expected,...)
A container for commitment labels.
The verification key is responsible for storing the commitments to the precomputed (non-witnessk) pol...
bb::VerifierCommitmentKey< Curve > VerifierCommitmentKey
typename Curve::ScalarField FF
typename G1::affine_element Commitment
NativeTranscript Transcript
The VerifierInstance encapsulates all the necessary information for a Mega Honk Verifier to verify a ...
typename Flavor::WitnessCommitments WitnessCommitments
VerifierInstance_()=default
FF hash_with_origin_tagging(const std::string &domain_separator, Transcript &transcript) const
Tag all components and hash.
std::vector< FF > public_inputs
std::vector< FF > gate_challenges
typename Flavor::CommitmentLabels CommitmentLabels
WitnessCommitments witness_commitments
MSGPACK_FIELDS(vk, relation_parameters, alpha, is_complete, gate_challenges, witness_commitments, gemini_masking_commitment)
std::shared_ptr< VerificationKey > get_vk() const
Get the verification key.
VerifierInstance_(std::shared_ptr< VerificationKey > vk)
typename Flavor::Transcript Transcript
std::shared_ptr< VerificationKey > vk
CommitmentLabels commitment_labels
typename Flavor::Commitment Commitment
typename Flavor::VerifierCommitmentKey VerifierCommitmentKey
SubrelationSeparator alpha
Commitment gemini_masking_commitment
RelationParameters< FF > relation_parameters
typename Flavor::VerificationKey VerificationKey
typename Flavor::SubrelationSeparator SubrelationSeparator
Base class templates for structures that contain data parameterized by the fundamental polynomials of...
Entry point for Barretenberg command-line interface.
OriginTag extract_transcript_tag(const TranscriptType &transcript)
Extract origin tag context from a transcript.
This file contains part of the logic for the Origin Tag mechanism that tracks the use of in-circuit p...
Container for parameters used by the grand product (permutation, lookup) Honk relations.