Skip to content

Commit

Permalink
feat: PXE browser proving (#10704)
Browse files Browse the repository at this point in the history
Closes: AztecProtocol/aztec-packages#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 <[email protected]>
Co-authored-by: ledwards2225 <[email protected]>
Co-authored-by: ludamad <[email protected]>
  • Loading branch information
4 people authored and AztecBot committed Dec 18, 2024
1 parent 54ce5ec commit 9d5b299
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion ts/src/barretenberg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class Barretenberg extends BarretenbergApi {
async initSRSClientIVC(): Promise<void> {
// 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.
Expand Down
9 changes: 8 additions & 1 deletion ts/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 9d5b299

Please sign in to comment.