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("0x129bcf94e91edaa6c74121e0d9c44154e87c332e5deef9d6d60c54bdd1186c6c")); }
29
30 static constexpr std::vector<Commitment> get_all()
31 {
32 return { // lagrange_first
33 Commitment(uint256_t("0x1b38d3ca76ed177424415672027d98459a875ed1aa43bb969ecffd9e4428c0d1"),
34 uint256_t("0x1ee6866622f6e654361830d9f545e0943d26876e03aafa0c4cc6772d1c277d46")),
35
36 // lagrange_second (hiding op row)
37 Commitment(uint256_t("0x28cc5109376bdec7cdea99ea99cd0b14151f735ed8cd1687f5154cafc5718900"),
38 uint256_t("0x13df90d6be58ebcfb1b767db72f4c3fe3b98afd7a0094d69cdea854128819bc9")),
39
40 // lagrange_third (first real op row, after hiding op row)
41 Commitment(uint256_t("0x08dc1a9a11a3c8dbc14b6a2e4f796a73eb08934ed806781c68df84429941826a"),
42 uint256_t("0x26f2c37372adb5b781a94193f3b1ce2be85f20c504f2c11b8ae5c31aa997f141")),
43
44 // lagrange_last
45 Commitment(uint256_t("0x250f60e47845ded40a7821ccd614187f99e12df72b578d1ff222a61c62f0ace9"),
46 uint256_t("0x0957036d9fbae4aff11fd9a76828a3292a3e58d30e9a93fe2bbfb2525d522a14"))
47 };
48 }
49};
50
51} // namespace bb
Stores the fixed ECCVM VK commitments (to precomputed polynomials) that depend only on the circuit si...
static constexpr std::vector< Commitment > get_all()
curve::Grumpkin::AffineElement Commitment
curve::Grumpkin::BaseField BF
typename Group::affine_element AffineElement
Definition grumpkin.hpp:63
Entry point for Barretenberg command-line interface.
Definition api.hpp:5