@@ -126,14 +126,14 @@ class ToyFlavor {
126
126
using Base = ProvingKey_<PrecomputedEntities<Polynomial>, WitnessEntities<Polynomial>>;
127
127
using Base::Base;
128
128
129
+ RefVector<DataType> get_to_be_shifted () { return { toy_x }; };
130
+
129
131
// The plookup wires that store plookup read data.
130
132
std::array<PolynomialHandle, 0 > get_table_column_wires () { return {}; };
131
133
};
132
134
133
135
using VerificationKey = VerificationKey_<PrecomputedEntities<Commitment>>;
134
136
135
- using ProverPolynomials = AllEntities<PolynomialHandle>;
136
-
137
137
using FoldedPolynomials = AllEntities<std::vector<FF>>;
138
138
139
139
class AllValues : public AllEntities <FF> {
@@ -142,21 +142,35 @@ class ToyFlavor {
142
142
using Base::Base;
143
143
};
144
144
145
- class AllPolynomials : public AllEntities <Polynomial> {
145
+ using RowPolynomials = AllEntities<FF>;
146
+
147
+ /* *
148
+ * @brief A container for the prover polynomials handles.
149
+ */
150
+ class ProverPolynomials : public AllEntities <Polynomial> {
146
151
public:
147
- [[nodiscard]] size_t get_polynomial_size () const { return this ->toy_q_tuple_set .size (); }
148
- [[nodiscard]] AllValues get_row (const size_t row_idx) const
152
+ // Define all operations as default, except move construction/assignment
153
+ ProverPolynomials () = default ;
154
+ ProverPolynomials& operator =(const ProverPolynomials&) = delete ;
155
+ ProverPolynomials (const ProverPolynomials& o) = delete ;
156
+ ProverPolynomials (ProverPolynomials&& o) noexcept = default ;
157
+ ProverPolynomials& operator =(ProverPolynomials&& o) noexcept = default ;
158
+ ~ProverPolynomials () = default ;
159
+ [[nodiscard]] size_t get_polynomial_size () const { return toy_first.size (); }
160
+ /* *
161
+ * @brief Returns the evaluations of all prover polynomials at one point on the boolean hypercube, which
162
+ * represents one row in the execution trace.
163
+ */
164
+ [[nodiscard]] AllValues get_row (size_t row_idx) const
149
165
{
150
166
AllValues result;
151
- for (auto [result_field, polynomial] : zip_view (result.get_all (), get_all ())) {
167
+ for (auto [result_field, polynomial] : zip_view (result.get_all (), this -> get_all ())) {
152
168
result_field = polynomial[row_idx];
153
169
}
154
170
return result;
155
171
}
156
172
};
157
173
158
- using RowPolynomials = AllEntities<FF>;
159
-
160
174
class PartiallyEvaluatedMultivariates : public AllEntities <Polynomial> {
161
175
public:
162
176
PartiallyEvaluatedMultivariates () = default ;
0 commit comments