22 static size_t size() {
return field_conversion::calc_num_bn254_frs<BF>() * NUM_TRANSLATION_EVALUATIONS; }
26 std::array<std::string, NUM_TRANSLATION_EVALUATIONS>
labels = {
27 "Translation:op",
"Translation:Px",
"Translation:Py",
"Translation:z1",
"Translation:z2"
43static void shift_translation_masking_term_eval(
const FF& evaluation_challenge_x,
FF& translation_masking_term_eval)
46 static constexpr size_t LOG_MASKING_OFFSET =
numeric::get_msb(NUM_DISABLED_ROWS_IN_SUMCHECK);
47 static_assert(1UL << LOG_MASKING_OFFSET == NUM_DISABLED_ROWS_IN_SUMCHECK,
"MASKING_OFFSET must be a power of 2");
49 FF x_to_num_disabled_rows = evaluation_challenge_x;
50 for (
size_t idx = 0; idx < LOG_MASKING_OFFSET; idx++) {
51 x_to_num_disabled_rows = x_to_num_disabled_rows.sqr();
54 FF x_to_circuit_size = x_to_num_disabled_rows;
56 for (
size_t idx = LOG_MASKING_OFFSET; idx < CONST_ECCVM_LOG_N; idx++) {
57 x_to_circuit_size = x_to_circuit_size.
sqr();
61 translation_masking_term_eval *= x_to_circuit_size;
62 translation_masking_term_eval *= x_to_num_disabled_rows.
invert();
A template class for a reference array. Behaves as if std::array<T&, N> was possible.
constexpr T get_msb(const T in)
Entry point for Barretenberg command-line interface.
Stores the evaluations of op, Px, Py, z1, and z2 computed by the ECCVM Prover. These evaluations are ...
MSGPACK_FIELDS(op, Px, Py, z1, z2)
RefArray< BF, NUM_TRANSLATION_EVALUATIONS > get_all()
std::array< std::string, NUM_TRANSLATION_EVALUATIONS > labels
constexpr field invert() const noexcept
BB_INLINE constexpr field sqr() const noexcept