22 static size_t size() {
return (FrCodec::calc_num_fields<BF>()) * NUM_TRANSLATION_EVALUATIONS; }
26 std::array<std::string, NUM_TRANSLATION_EVALUATIONS>
labels = {
27 "Translation:op",
"Translation:Px",
"Translation:Py",
"Translation:z1",
"Translation:z2"
50static void shift_translation_masking_term_eval(
const FF& evaluation_challenge_x,
FF& translation_masking_term_eval)
53 static constexpr size_t LOG_MASKING_OFFSET =
numeric::get_msb(NUM_DISABLED_ROWS_IN_SUMCHECK);
54 static_assert(1UL << LOG_MASKING_OFFSET == NUM_DISABLED_ROWS_IN_SUMCHECK,
"MASKING_OFFSET must be a power of 2");
56 FF x_to_num_disabled_rows = evaluation_challenge_x;
57 for (
size_t idx = 0; idx < LOG_MASKING_OFFSET; idx++) {
58 x_to_num_disabled_rows = x_to_num_disabled_rows.
sqr();
61 FF x_to_circuit_size = x_to_num_disabled_rows;
63 for (
size_t idx = LOG_MASKING_OFFSET; idx < CONST_ECCVM_LOG_N; idx++) {
64 x_to_circuit_size = x_to_circuit_size.
sqr();
68 translation_masking_term_eval *= x_to_circuit_size;
69 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 ...
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