Skip to content

Commit

Permalink
use requires instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ledwards2225 committed Nov 9, 2023
1 parent de63b6d commit 4360e77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,21 +193,21 @@ template <class Flavor> void ProverInstance_<Flavor>::construct_ecc_op_wire_poly
* @tparam Flavor
* @param circuit
*/
template <class Flavor> void ProverInstance_<Flavor>::construct_databus_polynomials(Circuit& circuit)
template <class Flavor>
void ProverInstance_<Flavor>::construct_databus_polynomials(Circuit& circuit)
requires IsGoblinFlavor<Flavor>
{
if constexpr (IsGoblinFlavor<Flavor>) {
polynomial public_calldata(dyadic_circuit_size);
polynomial calldata_read_counts(dyadic_circuit_size);
polynomial public_calldata(dyadic_circuit_size);
polynomial calldata_read_counts(dyadic_circuit_size);

// We do not utilize a zero row for databus columns
for (size_t idx = 0; idx < circuit.public_calldata.size(); ++idx) {
public_calldata[idx] = circuit.get_variable(circuit.public_calldata[idx]);
calldata_read_counts[idx] = circuit.get_variable(circuit.calldata_read_counts[idx]);
}

proving_key->calldata = public_calldata;
proving_key->calldata_read_counts = calldata_read_counts;
// We do not utilize a zero row for databus columns
for (size_t idx = 0; idx < circuit.public_calldata.size(); ++idx) {
public_calldata[idx] = circuit.get_variable(circuit.public_calldata[idx]);
calldata_read_counts[idx] = circuit.get_variable(circuit.calldata_read_counts[idx]);
}

proving_key->calldata = public_calldata;
proving_key->calldata_read_counts = calldata_read_counts;
}

template <class Flavor>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ template <class Flavor> class ProverInstance_ {

void construct_ecc_op_wire_polynomials(auto&);

void construct_databus_polynomials(Circuit&);
void construct_databus_polynomials(Circuit&)
requires IsGoblinFlavor<Flavor>;

void add_table_column_selector_poly_to_proving_key(barretenberg::polynomial& small, const std::string& tag);

Expand Down

0 comments on commit 4360e77

Please sign in to comment.