Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
ultra_keccak_zk_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
7#pragma once
8
12
13namespace bb {
14
16 public:
17 // This flavor runs with ZK Sumcheck
18 static constexpr bool HasZK = true;
19
20 // The number of entities added for ZK (gemini_masking_poly)
21 static constexpr size_t NUM_MASKING_POLYNOMIALS = 1;
22
23 // Determine the number of evaluations of Prover and Libra Polynomials that the Prover sends to the Verifier in
24 // the rounds of ZK Sumcheck.
27 "LIBRA_UNIVARIATES_LENGTH must be equal to UltraKeccakZKFlavor::BATCHED_RELATION_PARTIAL_LENGTH");
28
29 // Override AllEntities to use ZK version (this automatically updates ProverPolynomials and AllValues)
30 template <typename DataType> using AllEntities = UltraFlavor::AllEntities_<DataType, HasZK>;
31
32 // NUM_WITNESS_ENTITIES includes gemini_masking_poly
34 // NUM_ALL_ENTITIES includes gemini_masking_poly
36 // NUM_UNSHIFTED_ENTITIES includes gemini_masking_poly
37 static constexpr size_t NUM_UNSHIFTED_ENTITIES =
39
40 // Size of the final PCS MSM for ZK = non-ZK size + NUM_LIBRA_COMMITMENTS (3)
41 static constexpr size_t FINAL_PCS_MSM_SIZE(size_t log_n = VIRTUAL_LOG_N)
42 {
43 return NUM_UNSHIFTED_ENTITIES + log_n + 2 + NUM_LIBRA_COMMITMENTS;
44 }
45
50
51 // Override ProverUnivariates and ExtendedEdges to include gemini_masking_poly
54
57};
58} // namespace bb
Common transcript class for both parties. Stores the data for the current round, as well as the manif...
A container for storing the partially evaluated multivariates produced by sumcheck.
A base class labelling all entities (for instance, all of the polynomials used by the prover during s...
A field element for each entity of the flavor. These entities represent the prover polynomials evalua...
A container for polynomials handles.
A container encapsulating all the commitments that the verifier receives (to precomputed polynomials ...
static constexpr size_t BATCHED_RELATION_PARTIAL_LENGTH
static constexpr size_t VIRTUAL_LOG_N
static constexpr size_t NUM_ALL_ENTITIES
static constexpr size_t NUM_UNSHIFTED_ENTITIES
static constexpr size_t NUM_WITNESS_ENTITIES
VKAndHash_< FF, VerificationKey > VKAndHash
BaseTranscript< Codec, HashFunction > Transcript
static constexpr size_t FINAL_PCS_MSM_SIZE(size_t log_n=VIRTUAL_LOG_N)
static constexpr size_t NUM_MASKING_POLYNOMIALS
static constexpr size_t BATCHED_RELATION_PARTIAL_LENGTH
static constexpr size_t NUM_ALL_ENTITIES
static constexpr size_t NUM_UNSHIFTED_ENTITIES
static constexpr size_t NUM_WITNESS_ENTITIES
Wrapper holding a verification key and its precomputed hash.
Definition flavor.hpp:591
static constexpr uint32_t LIBRA_UNIVARIATES_LENGTH
Definition grumpkin.hpp:86
Entry point for Barretenberg command-line interface.
Definition api.hpp:5