47 static constexpr bool HasZK =
false;
69 for (
auto [native_comm, comm] :
zip_view(native_key->get_all(), this->get_all())) {
70 comm = Commitment::from_witness(
builder, native_comm);
82 size_t num_frs_read = 0;
83 size_t num_frs_Comm = stdlib::field_conversion::calc_num_bn254_frs<CircuitBuilder, Commitment>();
86 comm = stdlib::field_conversion::convert_from_bn254_frs<CircuitBuilder, Commitment>(
87 builder, elements.subspan(num_frs_read, num_frs_Comm));
88 num_frs_read += num_frs_Comm;
94 [[maybe_unused]]
Transcript& transcript)
const override
96 throw_or_abort(
"Not intended to be used because vk is hardcoded in circuit.");
105 for (
Commitment& commitment : this->get_all()) {
106 commitment.fix_witness();
Common transcript class for both parties. Stores the data for the current round, as well as the manif...
Base Stdlib verification key class.
typename PrecomputedCommitments::DataType Commitment
tuple_cat_t< MainRelations_< FF_ >, LookupRelations_< FF_ > > Relations_
static constexpr size_t NUM_SUBRELATIONS
AvmFlavorSettings::VerifierCommitmentKey VerifierCommitmentKey
static constexpr size_t NUM_WITNESS_ENTITIES
static constexpr size_t NUM_WIRES
static constexpr bool USE_SHORT_MONOMIALS
static constexpr size_t BATCHED_RELATION_PARTIAL_LENGTH
static constexpr size_t NUM_PRECOMPUTED_ENTITIES
static constexpr size_t NUM_ALL_ENTITIES
A field element for each entity of the flavor. These entities represent the prover polynomials evalua...
void fix_witness()
Fixes witnesses of VK to be constants.
VerificationKey(CircuitBuilder *builder, const std::shared_ptr< NativeVerificationKey > &native_key)
VerificationKey(CircuitBuilder &builder, std::span< const FF > elements)
Deserialize a verification key from a vector of field elements.
FF hash_through_transcript(const std::string &domain_separator, Transcript &transcript) const override
Hashes the vk using the transcript's independent buffer and returns the hash.
std::vector< FF > to_field_elements() const override
Serialize verification key to field elements.
size_t log_fixed_circuit_size
static constexpr size_t NUM_SUBRELATIONS
NativeFlavor::Relations_< FF > Relations
AvmRecursiveFlavorSettings::BF BF
static constexpr size_t NUM_WIRES
static constexpr size_t NUM_RELATIONS
static constexpr size_t BATCHED_RELATION_PARTIAL_LENGTH
static constexpr size_t NUM_PRECOMPUTED_ENTITIES
AvmRecursiveFlavorSettings::GroupElement GroupElement
static constexpr bool HasZK
static constexpr size_t NUM_ALL_ENTITIES
static constexpr bool USE_PADDING
static constexpr size_t NUM_WITNESS_ENTITIES
AvmRecursiveFlavorSettings::FF FF
std::array< FF, NUM_SUBRELATIONS - 1 > SubrelationSeparators
static constexpr bool USE_SHORT_MONOMIALS
AvmRecursiveFlavorSettings::Commitment Commitment
Base class templates for structures that contain data parameterized by the fundamental polynomials of...
constexpr size_t MAX_AVM_TRACE_LOG_SIZE
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
typename Curve::BaseField BF
typename Curve::AffineElement Commitment
typename Curve::Element GroupElement
stdlib::bn254< CircuitBuilder > Curve
MegaCircuitBuilder CircuitBuilder
typename Curve::ScalarField FF
void throw_or_abort(std::string const &err)