Skip to content

Commit 8cda00d

Browse files
fix: CRS not needed for gate_count. Grumpkin not needed for non-goblin. (AztecProtocol#3872)
As title. Co-authored-by: Álvaro Rodríguez <sirasistant@gmail.com>
1 parent 83acd50 commit 8cda00d

File tree

1 file changed

+2
-5
lines changed
  • barretenberg/cpp/src/barretenberg/bb

1 file changed

+2
-5
lines changed

barretenberg/cpp/src/barretenberg/bb/main.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ acir_proofs::AcirComposer init(acir_format::acir_format& constraint_system)
4343
auto bn254_g2_data = get_bn254_g2_data(CRS_PATH);
4444
srs::init_crs_factory(bn254_g1_data, bn254_g2_data);
4545

46-
// Must +1!
47-
auto grumpkin_g1_data = get_grumpkin_g1_data(CRS_PATH, subgroup_size + 1);
48-
srs::init_grumpkin_crs_factory(grumpkin_g1_data);
49-
5046
return acir_composer;
5147
}
5248

@@ -203,7 +199,8 @@ void prove(const std::string& bytecodePath,
203199
void gateCount(const std::string& bytecodePath)
204200
{
205201
auto constraint_system = get_constraint_system(bytecodePath);
206-
auto acir_composer = init(constraint_system);
202+
acir_proofs::AcirComposer acir_composer(0, verbose);
203+
acir_composer.create_circuit(constraint_system);
207204
auto gate_count = acir_composer.get_total_circuit_size();
208205

209206
writeUint64AsRawBytesToStdout(static_cast<uint64_t>(gate_count));

0 commit comments

Comments
 (0)