From 8cda00d94946ed7e8dfc1dbafdefae3e6d1af682 Mon Sep 17 00:00:00 2001 From: Charlie Lye Date: Mon, 8 Jan 2024 16:23:49 +0000 Subject: [PATCH] fix: CRS not needed for gate_count. Grumpkin not needed for non-goblin. (#3872) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As title. Co-authored-by: Álvaro Rodríguez --- barretenberg/cpp/src/barretenberg/bb/main.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/barretenberg/cpp/src/barretenberg/bb/main.cpp b/barretenberg/cpp/src/barretenberg/bb/main.cpp index f61d1913a06..df046160069 100644 --- a/barretenberg/cpp/src/barretenberg/bb/main.cpp +++ b/barretenberg/cpp/src/barretenberg/bb/main.cpp @@ -43,10 +43,6 @@ acir_proofs::AcirComposer init(acir_format::acir_format& constraint_system) auto bn254_g2_data = get_bn254_g2_data(CRS_PATH); srs::init_crs_factory(bn254_g1_data, bn254_g2_data); - // Must +1! - auto grumpkin_g1_data = get_grumpkin_g1_data(CRS_PATH, subgroup_size + 1); - srs::init_grumpkin_crs_factory(grumpkin_g1_data); - return acir_composer; } @@ -203,7 +199,8 @@ void prove(const std::string& bytecodePath, void gateCount(const std::string& bytecodePath) { auto constraint_system = get_constraint_system(bytecodePath); - auto acir_composer = init(constraint_system); + acir_proofs::AcirComposer acir_composer(0, verbose); + acir_composer.create_circuit(constraint_system); auto gate_count = acir_composer.get_total_circuit_size(); writeUint64AsRawBytesToStdout(static_cast(gate_count));