Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
eccvm_fixed_vk.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
11
12namespace bb {
13
22 public:
24 // BF = Grumpkin base field = BN254 scalar field (fr) - this is what the VK hash uses
26
27 // Precomputed VK hash (hash of all commitments below). Update via ECCVMTests::FixedVK if commitments change.
28 static BF vk_hash() { return BF(uint256_t("0x103f7a122fe63075eb8b9c6019cbd3cbe55b5775400799b12c63b31643515ff3")); }
29
30 static std::vector<Commitment> get_all()
31 {
32 return { // lagrange_first (at row NUM_DISABLED_ROWS_IN_SUMCHECK)
33 Commitment(uint256_t("0x040948748b49a15e319d8ae97062ce125445f612bbf4265776490dafe4a75aa7"),
34 uint256_t("0x0674e7fcc6e6685f250a218ab444bef48b9772e3fb32425d579c4430f919828b")),
35
36 // lagrange_second (hiding op row)
37 Commitment(uint256_t("0x1976c760e4bde34db58394888baeda91f57bcdddf60aec28b721b10aac55f555"),
38 uint256_t("0x26eec8e50bdb2cfc3956e90bd72c9098d4a5de28c1c1c236955d14884a8f498d")),
39
40 // lagrange_third (first real op row, after hiding op row)
41 Commitment(uint256_t("0x1a96c5eae61aba7353221e65adf123d30255415db00b8063157f2764a3034e26"),
42 uint256_t("0x0d04425c0f370a7aaace3cf41f9b2380079c95fa26f9f83b5fd5e26813dbd289")),
43
44 // lagrange_last (at dyadic_size - 1)
45 Commitment(uint256_t("0x07099c9989bd2212d634a00180d59f1dd1279c5c3d220583ad4acfbfb180ae60"),
46 uint256_t("0x2fa02a4987281b3b310bb8d9724c36a20eec491acfd3be7e7f3dcf8d8bec8848"))
47 };
48 }
49};
50
51} // namespace bb
Stores the fixed ECCVM VK commitments (to precomputed polynomials) that depend only on the circuit si...
curve::Grumpkin::AffineElement Commitment
curve::Grumpkin::BaseField BF
static std::vector< Commitment > get_all()
typename Group::affine_element AffineElement
Definition grumpkin.hpp:64
Entry point for Barretenberg command-line interface.
Definition api.hpp:5