Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
flavor.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
72#pragma once
91
92#include <array>
93#include <concepts>
94#include <cstddef>
95#include <numeric>
96#include <utility>
97#include <vector>
98
99namespace bb {
100
105 FULL, // Serialize all metadata (log_circuit_size, num_public_inputs, pub_inputs_offset)
106 NO_METADATA // Serialize only commitments, no metadata
107};
108
112struct MetaData {
113 size_t dyadic_size = 0; // power-of-2 size of the execution trace
116};
117
121template <typename Polynomial, size_t NUM_PRECOMPUTED_ENTITIES> struct PrecomputedData_ {
122 RefArray<Polynomial, NUM_PRECOMPUTED_ENTITIES> polynomials; // polys whose commitments comprise the VK
123 MetaData metadata; // execution trace metadata
124};
125
135template <typename PrecomputedCommitments, typename HashType, typename HardcodedVKAndHash>
136class FixedVKAndHash_ : public PrecomputedCommitments {
137 public:
138 using Commitment = typename PrecomputedCommitments::DataType;
139
140 bool operator==(const FixedVKAndHash_&) const = default;
141
142 // Default construct the fixed VK from hardcoded commitments and precomputed hash
144 : hash(HardcodedVKAndHash::vk_hash())
145 {
146 for (auto [vk_commitment, fixed_commitment] : zip_view(this->get_all(), HardcodedVKAndHash::get_all())) {
147 vk_commitment = fixed_commitment;
148 }
149 }
150
151 HashType get_hash() const { return hash; }
152
153 private:
154 HashType hash{};
155};
156
167template <typename PrecomputedCommitments,
168 typename Codec,
169 typename HashFunction,
170 typename CommitmentKey = void,
172class NativeVerificationKey_ : public PrecomputedCommitments {
173 public:
174 using Commitment = typename PrecomputedCommitments::DataType;
175 using DataType = typename Codec::DataType;
176 uint64_t log_circuit_size = 0;
177 uint64_t num_public_inputs = 0;
178 uint64_t pub_inputs_offset = 0;
179 bool operator==(const NativeVerificationKey_&) const = default;
180
181#ifndef NDEBUG
182 template <size_t NUM_PRECOMPUTED_ENTITIES, typename StringType>
185 {
186 bool is_equal = true;
187
188 if (this->log_circuit_size != other.log_circuit_size) {
189 info("Log circuit size mismatch: ", this->log_circuit_size, " vs ", other.log_circuit_size);
190 is_equal = false;
191 }
192
193 if (this->num_public_inputs != other.num_public_inputs) {
194 info("Num public inputs mismatch: ", this->num_public_inputs, " vs ", other.num_public_inputs);
195 is_equal = false;
196 }
197
198 if (this->pub_inputs_offset != other.pub_inputs_offset) {
199 info("Pub inputs offset mismatch: ", this->pub_inputs_offset, " vs ", other.pub_inputs_offset);
200 is_equal = false;
201 }
202
203 for (auto [this_comm, other_comm, label] : zip_view(this->get_all(), other.get_all(), commitment_labels)) {
204 if (this_comm != other_comm) {
205 info("Commitment mismatch: ", label);
206 is_equal = false;
207 }
208 }
209 return is_equal;
210 }
211#endif
212
213 virtual ~NativeVerificationKey_() = default;
215 NativeVerificationKey_(const size_t circuit_size, const size_t num_public_inputs)
216 : log_circuit_size(numeric::get_msb(circuit_size))
218
223 template <typename PrecomputedData>
225 explicit NativeVerificationKey_(const PrecomputedData& precomputed)
226 : log_circuit_size(numeric::get_msb(precomputed.metadata.dyadic_size))
227 , num_public_inputs(precomputed.metadata.num_public_inputs)
228 , pub_inputs_offset(precomputed.metadata.pub_inputs_offset)
229 {
230 CommitmentKey commitment_key{ precomputed.metadata.dyadic_size };
231 for (auto [polynomial, commitment] : zip_view(precomputed.polynomials, this->get_all())) {
232 commitment = commitment_key.commit(polynomial);
233 }
234 }
235
240 static size_t calc_num_data_types()
241 {
242 // Create a temporary instance to get the number of precomputed entities
243 size_t commitments_size = PrecomputedCommitments::size() * Codec::template calc_num_fields<Commitment>();
244 size_t metadata_size = 0;
245 if constexpr (SerializeMetadata == VKSerializationMode::FULL) {
246 // 3 metadata fields + commitments
247 metadata_size = 3 * Codec::template calc_num_fields<uint64_t>();
248 }
249 // else NO_METADATA: metadata_size remains 0
250 return metadata_size + commitments_size;
251 }
252
258 virtual std::vector<DataType> to_field_elements() const
259 {
260
261 auto serialize = [](const auto& input, std::vector<DataType>& buffer) {
262 std::vector<DataType> input_fields = Codec::serialize_to_fields(input);
263 buffer.insert(buffer.end(), input_fields.begin(), input_fields.end());
264 };
265
266 std::vector<DataType> elements;
267
268 if constexpr (SerializeMetadata == VKSerializationMode::FULL) {
269 serialize(this->log_circuit_size, elements);
270 serialize(this->num_public_inputs, elements);
271 serialize(this->pub_inputs_offset, elements);
272 }
273 // else NO_METADATA: skip metadata serialization
274
275 for (const Commitment& commitment : this->get_all()) {
276 serialize(commitment, elements);
277 }
278
280 key.from_field_elements(elements);
281 return elements;
282 };
283
289 {
290
291 size_t idx = 0;
292 auto deserialize = [&idx, &elements]<typename T>(T& target) {
293 size_t size = Codec::template calc_num_fields<T>();
294 target = Codec::template deserialize_from_fields<T>(elements.subspan(idx, size));
295 idx += size;
296 };
297
298 if constexpr (SerializeMetadata == VKSerializationMode::FULL) {
299 deserialize(this->log_circuit_size);
300 deserialize(this->num_public_inputs);
301 deserialize(this->pub_inputs_offset);
302 }
303 // else NO_METADATA: skip metadata deserialization
304
305 for (Commitment& commitment : this->get_all()) {
306 deserialize(commitment);
307 }
308 return idx;
309 }
310
315 fr hash() const
316 {
317 fr vk_hash = HashFunction::hash(this->to_field_elements());
318 return vk_hash;
319 }
320
332 {
333 static constexpr bool in_circuit = InCircuit<DataType>;
334 std::vector<DataType> vk_elements;
335
336 // Tag, serialize, and append to vk_elements
337 auto tag_and_append = [&]<typename T>(const T& component) {
338 auto frs = bb::tag_and_serialize<in_circuit, Codec>(component, tag);
339 vk_elements.insert(vk_elements.end(), frs.begin(), frs.end());
340 };
341
342 // Tag and serialize VK metadata
343 tag_and_append(this->log_circuit_size);
344 tag_and_append(this->num_public_inputs);
345 tag_and_append(this->pub_inputs_offset);
346
347 // Tag and serialize VK commitments
348 for (const Commitment& commitment : this->get_all()) {
349 tag_and_append(commitment);
350 }
351
352 // Sanitize free witness tags before hashing
353 bb::unset_free_witness_tags<in_circuit, DataType>(vk_elements);
354
355 // Hash the tagged elements directly
356 return HashFunction::hash(vk_elements);
357 }
358
365 template <typename Transcript> DataType hash_with_origin_tagging(const Transcript& transcript) const
366 {
367 const OriginTag tag = bb::extract_transcript_tag(transcript);
369 }
370};
371
381template <typename Builder_, typename PrecomputedCommitments, typename NativeVerificationKey>
382class FixedStdlibVKAndHash_ : public PrecomputedCommitments {
383 public:
384 using Builder = Builder_;
385 using Commitment = typename PrecomputedCommitments::DataType;
387
388 bool operator==(const FixedStdlibVKAndHash_&) const = default;
390
395 : hash(FF::from_witness(builder, native_key->get_hash()))
396 {
397 for (auto [native_comm, comm] : zip_view(native_key->get_all(), this->get_all())) {
398 comm = Commitment::from_witness(builder, native_comm);
399 }
400 // Fix all witnesses since fixed VKs are always constant
402 for (Commitment& commitment : this->get_all()) {
403 commitment.fix_witness();
404 }
405 }
406
407 FF get_hash() const { return hash; }
408
409 private:
411};
412
421template <typename Builder_,
422 typename PrecomputedCommitments,
423 typename NativeVerificationKey_ = void,
425class StdlibVerificationKey_ : public PrecomputedCommitments {
426 public:
427 using Builder = Builder_;
429 using Commitment = typename PrecomputedCommitments::DataType;
435
436 bool operator==(const StdlibVerificationKey_&) const = default;
437 virtual ~StdlibVerificationKey_() = default;
439
444 template <typename T = NativeVerificationKey_>
445 requires(!std::is_void_v<T>)
447 : log_circuit_size(FF::from_witness(builder, typename FF::native(native_key->log_circuit_size)))
448 , num_public_inputs(FF::from_witness(builder, typename FF::native(native_key->num_public_inputs)))
449 , pub_inputs_offset(FF::from_witness(builder, typename FF::native(native_key->pub_inputs_offset)))
450 {
451
452 for (auto [commitment, native_commitment] : zip_view(this->get_all(), native_key->get_all())) {
453 commitment = Commitment::from_witness(builder, native_commitment);
454 }
455 }
456
461 {
462 using Codec = stdlib::StdlibCodec<FF>;
463
464 size_t num_frs_read = 0;
465
466 this->log_circuit_size = Codec::template deserialize_from_frs<FF>(elements, num_frs_read);
467 this->num_public_inputs = Codec::template deserialize_from_frs<FF>(elements, num_frs_read);
468 this->pub_inputs_offset = Codec::template deserialize_from_frs<FF>(elements, num_frs_read);
469
470 for (Commitment& commitment : this->get_all()) {
471 commitment = Codec::template deserialize_from_frs<Commitment>(elements, num_frs_read);
472 }
473 }
474
479 const std::span<const uint32_t>& witness_indices)
480 {
481 std::vector<FF> vk_fields;
482 vk_fields.reserve(witness_indices.size());
483 for (const auto& idx : witness_indices) {
484 vk_fields.emplace_back(FF::from_witness_index(&builder, idx));
485 }
486 return StdlibVerificationKey_(vk_fields);
487 }
488
493 {
494 this->log_circuit_size.fix_witness();
495 this->num_public_inputs.fix_witness();
496 this->pub_inputs_offset.fix_witness();
497 for (Commitment& commitment : this->get_all()) {
498 commitment.fix_witness();
499 }
500 }
501
502#ifndef NDEBUG
507 template <typename T = NativeVerificationKey_>
508 requires(!std::is_void_v<T>)
509 T get_value() const
510 {
511 T native_vk;
512 native_vk.log_circuit_size = static_cast<uint64_t>(this->log_circuit_size.get_value());
513 native_vk.num_public_inputs = static_cast<uint64_t>(this->num_public_inputs.get_value());
514 native_vk.pub_inputs_offset = static_cast<uint64_t>(this->pub_inputs_offset.get_value());
515 for (auto [commitment, native_commitment] : zip_view(this->get_all(), native_vk.get_all())) {
516 native_commitment = commitment.get_value();
517 }
518 return native_vk;
519 }
520#endif
521
533 {
534 using Codec = stdlib::StdlibCodec<FF>;
535 static constexpr bool in_circuit = true; // StdlibVerificationKey_ is always in-circuit
536 std::vector<FF> vk_elements;
537
538 // Tag, serialize, and append to vk_elements
539 auto append_tagged = [&]<typename T>(const T& component) {
540 auto frs = bb::tag_and_serialize<in_circuit, Codec>(component, tag);
541 vk_elements.insert(vk_elements.end(), frs.begin(), frs.end());
542 };
543
544 // Tag and serialize VK metadata
545 append_tagged(this->log_circuit_size);
546 append_tagged(this->num_public_inputs);
547 append_tagged(this->pub_inputs_offset);
548
549 // Tag and serialize VK commitments
550 for (const Commitment& commitment : this->get_all()) {
551 append_tagged(commitment);
552 }
553
554 // Sanitize free witness tags before hashing
555 bb::unset_free_witness_tags<in_circuit, FF>(vk_elements);
556
557 // Hash the tagged elements directly
558 return stdlib::poseidon2<Builder>::hash(vk_elements);
559 }
560
567 template <typename Transcript> FF hash_with_origin_tagging(const Transcript& transcript) const
568 {
569 const OriginTag tag = bb::extract_transcript_tag(transcript);
571 }
572};
573
593template <typename FF, typename VerificationKey> class VKAndHash_ {
594 public:
595 template <typename T = VerificationKey>
596 using Builder = typename std::enable_if_t<requires { typename T::Builder; }, T>::Builder;
597
598 template <typename T = VerificationKey>
600 typename std::enable_if_t<requires { typename T::NativeVerificationKey; }, T>::NativeVerificationKey;
601
602 VKAndHash_() = default;
603
607 VKAndHash_(const std::shared_ptr<VerificationKey>& vk)
608 : vk(vk)
609 , hash(vk->hash())
610 {}
611
615 VKAndHash_(const std::shared_ptr<VerificationKey>& vk, const FF& hash)
616 : vk(vk)
617 , hash(hash)
618 {}
619
623 template <typename VK = VerificationKey,
624 typename B = typename VK::Builder,
625 typename NVK = typename VK::NativeVerificationKey>
627 : vk(std::make_shared<VerificationKey>(&builder, native_vk))
628 , hash(FF::from_witness(&builder, native_vk->hash()))
629 {}
630 std::shared_ptr<VerificationKey> vk;
632};
633
639template <typename Tuple> constexpr size_t compute_max_partial_relation_length()
640{
642 return []<std::size_t... Is>(std::index_sequence<Is...>) {
643 return std::max({ std::tuple_element_t<Is, Tuple>::RELATION_LENGTH... });
644 }(seq);
645}
646
650template <typename Tuple> constexpr size_t compute_number_of_subrelations()
651{
653 return []<std::size_t... I>(std::index_sequence<I...>) {
654 return (0 + ... + std::tuple_element_t<I, Tuple>::SUBRELATION_PARTIAL_LENGTHS.size());
655 }(seq);
656}
657
664template <typename RelationsTuple> constexpr auto create_sumcheck_tuple_of_tuples_of_univariates()
665{
667 return []<size_t... I>(std::index_sequence<I...>) {
669 typename std::tuple_element_t<I, RelationsTuple>::SumcheckTupleOfUnivariatesOverSubrelations{}...);
670 }(seq);
671}
672
687template <typename RelationsTuple> constexpr auto create_tuple_of_arrays_of_values()
688{
690 return []<size_t... I>(std::index_sequence<I...>) {
692 typename std::tuple_element_t<I, RelationsTuple>::SumcheckArrayOfValuesOverSubrelations{}...);
693 }(seq);
694}
695
696} // namespace bb
697
698// Forward declare honk flavors
699namespace bb {
700class UltraFlavor;
701class UltraZKFlavor;
702class UltraRollupFlavor;
703class ECCVMFlavor;
704class UltraKeccakFlavor;
705#ifdef STARKNET_GARAGA_FLAVORS
706class UltraStarknetFlavor;
707class UltraStarknetZKFlavor;
708#endif
709class UltraKeccakZKFlavor;
710class MegaFlavor;
711class MegaZKFlavor;
712class MegaAvmFlavor;
713class TranslatorFlavor;
714class ECCVMRecursiveFlavor;
715class TranslatorRecursiveFlavor;
716class AvmRecursiveFlavor;
717class MultilinearBatchingRecursiveFlavor;
718
719template <typename BuilderType> class UltraRecursiveFlavor_;
720template <typename BuilderType> class UltraZKRecursiveFlavor_;
721template <typename BuilderType> class UltraRollupRecursiveFlavor_;
722template <typename BuilderType> class MegaRecursiveFlavor_;
723template <typename BuilderType> class MegaZKRecursiveFlavor_;
724template <typename BuilderType> class MegaAvmRecursiveFlavor_;
725
726// Serialization methods for NativeVerificationKey_.
727// These should cover all base classes that do not need additional members, as long as the appropriate SerializeMetadata
728// is set in the template parameters.
729template <typename PrecomputedCommitments,
730 typename Codec,
731 typename HashFunction,
732 typename CommitmentKey,
733 VKSerializationMode SerializeMetadata>
734inline void read(
735 uint8_t const*& it,
737{
738 using serialize::read;
740
741 // Get the size directly from the static method
742 size_t num_frs = VK::calc_num_data_types();
743
744 // Read exactly num_frs field elements from the buffer
745 std::vector<typename Codec::DataType> field_elements(num_frs);
746 for (auto& element : field_elements) {
747 read(it, element);
748 }
749 // Then use from_field_elements to populate the verification key
750 vk.from_field_elements(field_elements);
751}
752
753template <typename PrecomputedCommitments,
754 typename Codec,
755 typename HashFunction,
756 typename CommitmentKey,
757 VKSerializationMode SerializeMetadata>
758inline void write(
759 std::vector<uint8_t>& buf,
761{
762 using serialize::write;
764
765 size_t before = buf.size();
766 // Convert to field elements and write them directly without length prefix
767 auto field_elements = vk.to_field_elements();
768 for (const auto& element : field_elements) {
769 write(buf, element);
770 }
771 size_t after = buf.size();
772 size_t num_frs = VK::calc_num_data_types();
773 BB_ASSERT_EQ(after - before, num_frs * sizeof(bb::fr), "VK serialization mismatch");
774}
775
776namespace avm2 {
777class AvmRecursiveFlavor;
778}
779
780} // namespace bb
#define BB_ASSERT_EQ(actual, expected,...)
Definition assert.hpp:83
Common transcript class for both parties. Stores the data for the current round, as well as the manif...
CommitmentKey object over a pairing group 𝔾₁.
Commitment commit(PolynomialSpan< const Fr > polynomial) const
Uses the ProverSRS to create a commitment to p(X)
Simple stdlib verification key class for fixed-size circuits (ECCVM, Translator).
Definition flavor.hpp:382
FixedStdlibVKAndHash_(Builder *builder, const std::shared_ptr< NativeVerificationKey > &native_key)
Construct from native verification key and fix all witnesses (VK is constant for fixed circuits)
Definition flavor.hpp:394
typename PrecomputedCommitments::DataType Commitment
Definition flavor.hpp:385
bool operator==(const FixedStdlibVKAndHash_ &) const =default
Simple verification key class for fixed-size circuits (ECCVM, Translator).
Definition flavor.hpp:136
bool operator==(const FixedVKAndHash_ &) const =default
HashType get_hash() const
Definition flavor.hpp:151
typename PrecomputedCommitments::DataType Commitment
Definition flavor.hpp:138
Base Native verification key class.
Definition flavor.hpp:172
DataType hash_with_origin_tagging(const Transcript &transcript) const
An overload that accepts a transcript and extracts the tag internally.
Definition flavor.hpp:365
fr hash() const
Compute VK hash.
Definition flavor.hpp:315
static size_t calc_num_data_types()
Calculate the number of field elements needed for serialization.
Definition flavor.hpp:240
bool operator==(const NativeVerificationKey_ &) const =default
size_t from_field_elements(const std::span< const DataType > &elements)
Populate verification key from field elements.
Definition flavor.hpp:288
virtual ~NativeVerificationKey_()=default
bool compare(const NativeVerificationKey_ &other, RefArray< StringType, NUM_PRECOMPUTED_ENTITIES > commitment_labels) const
Definition flavor.hpp:183
typename Codec::DataType DataType
Definition flavor.hpp:175
virtual DataType hash_with_origin_tagging(const OriginTag &tag) const
Tag VK components and hash.
Definition flavor.hpp:331
NativeVerificationKey_(const PrecomputedData &precomputed)
Construct VK from precomputed data by committing to polynomials.
Definition flavor.hpp:225
virtual std::vector< DataType > to_field_elements() const
Serialize verification key to field elements.
Definition flavor.hpp:258
typename PrecomputedCommitments::DataType Commitment
Definition flavor.hpp:174
NativeVerificationKey_(const size_t circuit_size, const size_t num_public_inputs)
Definition flavor.hpp:215
A template class for a reference array. Behaves as if std::array<T&, N> was possible.
Definition ref_array.hpp:22
Base Stdlib verification key class.
Definition flavor.hpp:425
StdlibVerificationKey_(std::span< FF > elements)
Deserialize a verification key from a vector of field elements.
Definition flavor.hpp:460
void fix_witness()
Fixes witnesses of VK to be constants.
Definition flavor.hpp:492
typename PrecomputedCommitments::DataType Commitment
Definition flavor.hpp:429
FF hash_with_origin_tagging(const Transcript &transcript) const
An overload that accepts a transcript and extracts the tag internally.
Definition flavor.hpp:567
bool operator==(const StdlibVerificationKey_ &) const =default
T get_value() const
Get the native verification key corresponding to this stdlib verification key.
Definition flavor.hpp:509
static StdlibVerificationKey_ from_witness_indices(Builder &builder, const std::span< const uint32_t > &witness_indices)
Construct a VerificationKey from a set of corresponding witness indices.
Definition flavor.hpp:478
StdlibVerificationKey_(Builder *builder, const std::shared_ptr< T > &native_key)
Construct a new Verification Key with stdlib types from a provided native verification key.
Definition flavor.hpp:446
virtual FF hash_with_origin_tagging(const OriginTag &tag) const
Tag VK components and hash.
Definition flavor.hpp:532
virtual ~StdlibVerificationKey_()=default
Wrapper holding a verification key and its precomputed hash.
Definition flavor.hpp:593
VKAndHash_(B &builder, const std::shared_ptr< NVK > &native_vk)
Construct stdlib VKAndHash from a native VK (recursive verification keys only).
Definition flavor.hpp:626
VKAndHash_()=default
typename std::enable_if_t< requires { typename T::NativeVerificationKey NativeVerificationKey
Definition flavor.hpp:600
std::shared_ptr< VerificationKey > vk
Definition flavor.hpp:630
typename std::enable_if_t< requires { typename T::Builder Builder
Definition flavor.hpp:596
VKAndHash_(const std::shared_ptr< VerificationKey > &vk, const FF &hash)
Construct from VK and pre-provided hash.
Definition flavor.hpp:615
VKAndHash_(const std::shared_ptr< VerificationKey > &vk)
Construct from VK, auto-computing the hash.
Definition flavor.hpp:607
static FF hash(const std::vector< FF > &input)
Hashes a vector of field elements.
static field_t from_witness_index(Builder *ctx, uint32_t witness_index)
Definition field.cpp:63
bb::fr get_value() const
Given a := *this, compute its value given by a.v * a.mul + a.add.
Definition field.cpp:829
static field_t from_witness(Builder *ctx, const bb::fr &input)
Definition field.hpp:455
#define info(...)
Definition log.hpp:93
AluTraceBuilder builder
Definition alu.test.cpp:124
uint8_t const * buf
Definition data_store.hpp:9
uint8_t buffer[RANDOM_BUFFER_SIZE]
Definition engine.cpp:34
UltraKeccakFlavor::VerificationKey VerificationKey
constexpr T get_msb(const T in)
Definition get_msb.hpp:47
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
void read(B &it, field2< base_field, Params > &value)
void write(B &buf, field2< base_field, Params > const &value)
OriginTag extract_transcript_tag(const TranscriptType &transcript)
Extract origin tag context from a transcript.
VKSerializationMode
Enum to control verification key metadata serialization.
Definition flavor.hpp:104
constexpr size_t compute_number_of_subrelations()
Utility function to find the number of subrelations.
Definition flavor.hpp:650
constexpr auto create_tuple_of_arrays_of_values()
Definition flavor.hpp:687
constexpr size_t compute_max_partial_relation_length()
Utility function to find max PARTIAL_RELATION_LENGTH tuples of Relations.
Definition flavor.hpp:639
constexpr auto create_sumcheck_tuple_of_tuples_of_univariates()
Utility function to construct a container for the subrelation accumulators of sumcheck proving.
Definition flavor.hpp:664
VerifierCommitmentKey< Curve > vk
void read(auto &it, msgpack_concepts::HasMsgPack auto &obj)
Automatically derived read for any object that defines .msgpack() (implicitly defined by MSGPACK_FIEL...
void write(auto &buf, const msgpack_concepts::HasMsgPack auto &obj)
Automatically derived write for any object that defines .msgpack() (implicitly defined by MSGPACK_FIE...
STL namespace.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
TUPLET_INLINE constexpr auto make_tuple(Ts &&... args)
Definition tuplet.hpp:1062
Dyadic trace size and public inputs metadata; Common between prover and verifier keys.
Definition flavor.hpp:112
size_t pub_inputs_offset
Definition flavor.hpp:115
size_t num_public_inputs
Definition flavor.hpp:114
size_t dyadic_size
Definition flavor.hpp:113
The precomputed data needed to compute a Honk VK.
Definition flavor.hpp:121
RefArray< Polynomial, NUM_PRECOMPUTED_ENTITIES > polynomials
Definition flavor.hpp:122