From b1f107d4fe8d94828156c4b324482ab5cd107686 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Tue, 22 Aug 2023 19:28:34 +0000 Subject: [PATCH 1/2] constant is now 2^23 --- circuits/cpp/barretenberg/cpp/src/barretenberg/bb/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/circuits/cpp/barretenberg/cpp/src/barretenberg/bb/main.cpp b/circuits/cpp/barretenberg/cpp/src/barretenberg/bb/main.cpp index 9b3764a1b92..506341e1849 100644 --- a/circuits/cpp/barretenberg/cpp/src/barretenberg/bb/main.cpp +++ b/circuits/cpp/barretenberg/cpp/src/barretenberg/bb/main.cpp @@ -11,8 +11,11 @@ #include using namespace barretenberg; - -uint32_t MAX_CIRCUIT_SIZE = 1 << 19; +// The maximum size that we can do in the browser is 2^19 +// based on memory constraints for UltraPlonk. +// However, since this will be ran natively, we can increase the +// size. +uint32_t MAX_CIRCUIT_SIZE = 1 << 23; std::string CRS_PATH = "./crs"; bool verbose = false; From 59b9e020602a9eb6bfac6ba914d7b808293c33b3 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Tue, 22 Aug 2023 20:30:11 +0000 Subject: [PATCH 2/2] update constant on node cli --- circuits/cpp/barretenberg/ts/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circuits/cpp/barretenberg/ts/src/main.ts b/circuits/cpp/barretenberg/ts/src/main.ts index e70bedd121e..eecda39aa0a 100755 --- a/circuits/cpp/barretenberg/ts/src/main.ts +++ b/circuits/cpp/barretenberg/ts/src/main.ts @@ -8,8 +8,8 @@ import { Command } from 'commander'; createDebug.log = console.error.bind(console); const debug = createDebug('bb.js'); -// Maximum we support. -const MAX_CIRCUIT_SIZE = 2 ** 19; +// Maximum we support natively. It is 2^19 for browser. +const MAX_CIRCUIT_SIZE = 2 ** 23; function getBytecode(bytecodePath: string) { const encodedCircuit = readFileSync(bytecodePath, 'utf-8');