From 9d5b2995889aae2ca06d11b082644d8770dcb309 Mon Sep 17 00:00:00 2001 From: Gregorio Juliana Date: Tue, 17 Dec 2024 08:29:32 +0100 Subject: [PATCH] feat: PXE browser proving (#10704) Closes: https://github.com/AztecProtocol/aztec-packages/issues/10587 - Imports `bb.js` as a prover for PXE, both in the browser and in the `cli-wallet` (if PXE_PROVER_ENABLED=1 but BB_WORKING_DIRECTORY and BB_BINARY_PATH are unset) - Splits `noir-protocol-circuits-types` so a `/client` bundle can be imported without all the public artifacts - Reenables vite box with proving since it doesn't run out of memory anymore --------- Co-authored-by: Cody Co-authored-by: ledwards2225 Co-authored-by: ludamad --- ts/package.json | 2 +- ts/src/barretenberg/index.ts | 2 +- ts/yarn.lock | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ts/package.json b/ts/package.json index 994d286a0..8ccaf5540 100644 --- a/ts/package.json +++ b/ts/package.json @@ -53,7 +53,7 @@ }, "dependencies": { "comlink": "^4.4.1", - "commander": "^10.0.1", + "commander": "^12.1.0", "debug": "^4.3.4", "fflate": "^0.8.0", "pako": "^2.1.0", diff --git a/ts/src/barretenberg/index.ts b/ts/src/barretenberg/index.ts index 4c8097bb8..688759c18 100644 --- a/ts/src/barretenberg/index.ts +++ b/ts/src/barretenberg/index.ts @@ -69,7 +69,7 @@ export class Barretenberg extends BarretenbergApi { async initSRSClientIVC(): Promise { // crsPath can be undefined const crs = await Crs.new(2 ** 20 + 1, this.options.crsPath); - const grumpkinCrs = await GrumpkinCrs.new(2 ** 14 + 1, this.options.crsPath); + const grumpkinCrs = await GrumpkinCrs.new(2 ** 15 + 1, this.options.crsPath); // Load CRS into wasm global CRS state. // TODO: Make RawBuffer be default behavior, and have a specific Vector type for when wanting length prefixed. diff --git a/ts/yarn.lock b/ts/yarn.lock index d37549645..22aafa7ee 100644 --- a/ts/yarn.lock +++ b/ts/yarn.lock @@ -38,7 +38,7 @@ __metadata: "@typescript-eslint/parser": ^5.54.1 buffer: ^6.0.3 comlink: ^4.4.1 - commander: ^10.0.1 + commander: ^12.1.0 copy-webpack-plugin: ^11.0.0 debug: ^4.3.4 eslint: ^8.35.0 @@ -2434,6 +2434,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^12.1.0": + version: 12.1.0 + resolution: "commander@npm:12.1.0" + checksum: 68e9818b00fc1ed9cdab9eb16905551c2b768a317ae69a5e3c43924c2b20ac9bb65b27e1cab36aeda7b6496376d4da908996ba2c0b5d79463e0fb1e77935d514 + languageName: node + linkType: hard + "commander@npm:^2.20.0": version: 2.20.3 resolution: "commander@npm:2.20.3"