Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
ultra_rollup_flavor.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: not started, auditors: [], date: YYYY-MM-DD }
3// external_1: { status: not started, auditors: [], date: YYYY-MM-DD }
4// external_2: { status: not started, auditors: [], date: YYYY-MM-DD }
5// =====================
6
7#pragma once
11
12namespace bb {
13
15 public:
16 static constexpr size_t num_frs_comm = FrCodec::calc_num_fields<Commitment>();
17 static constexpr size_t num_frs_fr = FrCodec::calc_num_fields<FF>();
18 static constexpr size_t PROOF_LENGTH_WITHOUT_PUB_INPUTS(size_t virtual_log_n = VIRTUAL_LOG_N)
19 {
20 return UltraFlavor::PROOF_LENGTH_WITHOUT_PUB_INPUTS(virtual_log_n) + IPA_PROOF_LENGTH;
21 }
23
24 using UltraFlavor::UltraFlavor;
25
34 class VerificationKey : public NativeVerificationKey_<PrecomputedEntities<Commitment>, Transcript> {
35 public:
36 virtual ~VerificationKey() = default;
37
38 bool operator==(const VerificationKey&) const = default;
39 VerificationKey() = default;
40 VerificationKey(const size_t circuit_size, const size_t num_public_inputs)
42 {}
43
44 VerificationKey(const PrecomputedData& precomputed)
45 {
49
50 CommitmentKey commitment_key{ precomputed.metadata.dyadic_size };
51 for (auto [polynomial, commitment] : zip_view(precomputed.polynomials, this->get_all())) {
52 commitment = commitment_key.commit(polynomial);
53 }
54 }
55 };
56
58};
59
60} // namespace bb
CommitmentKey object over a pairing group 𝔾₁.
Base Native verification key class.
Definition flavor.hpp:161
static constexpr size_t PUBLIC_INPUTS_SIZE
A container encapsulating all the commitments that the verifier receives (to precomputed polynomials ...
static constexpr size_t VIRTUAL_LOG_N
static constexpr size_t PROOF_LENGTH_WITHOUT_PUB_INPUTS(size_t virtual_log_n=VIRTUAL_LOG_N)
The verification key is responsible for storing the commitments to the precomputed (non-witnessk) pol...
VerificationKey(const size_t circuit_size, const size_t num_public_inputs)
bool operator==(const VerificationKey &) const =default
VerificationKey(const PrecomputedData &precomputed)
static constexpr size_t num_frs_fr
static constexpr size_t BACKEND_PUB_INPUTS_SIZE
static constexpr size_t num_frs_comm
static constexpr size_t PROOF_LENGTH_WITHOUT_PUB_INPUTS(size_t virtual_log_n=VIRTUAL_LOG_N)
constexpr T get_msb(const T in)
Definition get_msb.hpp:47
Entry point for Barretenberg command-line interface.
size_t pub_inputs_offset
Definition flavor.hpp:139
size_t num_public_inputs
Definition flavor.hpp:138
size_t dyadic_size
Definition flavor.hpp:137
The precomputed data needed to compute a Honk VK.
Definition flavor.hpp:145
RefArray< Polynomial, NUM_PRECOMPUTED_ENTITIES > polynomials
Definition flavor.hpp:146