Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mega_zk_recursive_flavor.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: Completed, auditors: [Sergei], commit: }
3// external_1: { status: not started, auditors: [], commit: }
4// external_2: { status: not started, auditors: [], commit: }
5// =====================
6
7#pragma once
10
11namespace bb {
12
18template <typename BuilderType> class MegaZKRecursiveFlavor_ : public MegaRecursiveFlavor_<BuilderType> {
19 public:
24
25 static constexpr bool HasZK = true;
26
27 // Get constants from NativeFlavor to ensure consistency
28 static constexpr size_t VIRTUAL_LOG_N = NativeFlavor::VIRTUAL_LOG_N;
31
33
34 static constexpr size_t FINAL_PCS_MSM_SIZE(size_t log_n = VIRTUAL_LOG_N)
35 {
37 }
38
39 // Override to include ZK entities
40 class AllValues : public MegaFlavor::AllEntities_<FF, HasZK> {
41 public:
43 using Base::Base;
44 };
45
47};
48
49} // namespace bb
A base class labelling all entities (for instance, all of the polynomials used by the prover during s...
The recursive counterpart to the "native" Mega flavor.
typename Curve::Element Commitment
typename Curve::ScalarField FF
Child class of MegaFlavor that runs with ZK Sumcheck.
static constexpr size_t FINAL_PCS_MSM_SIZE(size_t log_n=MegaFlavor::VIRTUAL_LOG_N)
static constexpr size_t NUM_WITNESS_ENTITIES
static constexpr size_t NUM_ALL_ENTITIES
static constexpr size_t BATCHED_RELATION_PARTIAL_LENGTH
static constexpr size_t VIRTUAL_LOG_N
The recursive counterpart to MegaZKFlavor.
typename MegaRecursiveFlavor_< BuilderType >::VerificationKey VerificationKey
typename MegaRecursiveFlavor_< BuilderType >::FF FF
static constexpr size_t BATCHED_RELATION_PARTIAL_LENGTH
static constexpr size_t NUM_ALL_ENTITIES
static constexpr size_t VIRTUAL_LOG_N
static constexpr size_t NUM_WITNESS_ENTITIES
typename MegaRecursiveFlavor_< BuilderType >::Commitment Commitment
static constexpr size_t FINAL_PCS_MSM_SIZE(size_t log_n=VIRTUAL_LOG_N)
Base Stdlib verification key class.
Definition flavor.hpp:371
Entry point for Barretenberg command-line interface.
Definition api.hpp:5