From 953b23a46226df11d5257bafc683e674eceb589e Mon Sep 17 00:00:00 2001 From: codygunton Date: Tue, 11 Apr 2023 19:21:55 +0000 Subject: [PATCH] set log_circuit_size in pk --- cpp/src/barretenberg/proof_system/flavor/flavor.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/src/barretenberg/proof_system/flavor/flavor.hpp b/cpp/src/barretenberg/proof_system/flavor/flavor.hpp index d83167a2ac..a1a5de286d 100644 --- a/cpp/src/barretenberg/proof_system/flavor/flavor.hpp +++ b/cpp/src/barretenberg/proof_system/flavor/flavor.hpp @@ -72,7 +72,7 @@ class Standard { class ProvingKey : public PrecomputedData { public: const size_t circuit_size; - const size_t log_circuit_size = 0; // TODO(Cody) + const size_t log_circuit_size; // TODO(Cody) const size_t num_public_inputs; std::shared_ptr crs; EvaluationDomain evaluation_domain; @@ -83,6 +83,7 @@ class Standard { std::shared_ptr const& crs, ComposerType composer_type) : circuit_size(circuit_size) + , log_circuit_size(numeric::get_msb(circuit_size)) , num_public_inputs(num_public_inputs) , crs(crs) , evaluation_domain(circuit_size, circuit_size)