-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Modularises `@aztec/simulator` to provide `/client` and `/server`bundles. - Makes both `bb-prover` and `pxe` take a `SimulatorProvider` as an argument, so web bundles can initialise a single wasm version on a common entrypoint. - Uses said simulator provider for everything! - Unifies aztec-packages to always use `acvm_js` to execute circuits, instead of sometimes `noir_js`(for protocol circuits). This forces some code repetiton ATM, but again, unifies codepaths and used dependencies. All of this allows us to again simplify the the web bundles and avoid the need for weird wasm initialization hacks. Async loading is also now properly supported, which allows us to display meaningful content on a webapp near instantly.
- Loading branch information
Showing
73 changed files
with
408 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import { createLogger } from '@aztec/foundation/log'; | ||
import { BundleArtifactProvider } from '@aztec/noir-protocol-circuits-types/client/bundle'; | ||
import { type SimulationProvider } from '@aztec/simulator/client'; | ||
|
||
import { BBWASMPrivateKernelProver } from './bb_wasm_private_kernel_prover.js'; | ||
|
||
export class BBWASMBundlePrivateKernelProver extends BBWASMPrivateKernelProver { | ||
constructor(threads = 1, log = createLogger('bb-prover:wasm:bundle')) { | ||
super(new BundleArtifactProvider(), threads, log); | ||
constructor(simulationProvider: SimulationProvider, threads = 1, log = createLogger('bb-prover:wasm:bundle')) { | ||
super(new BundleArtifactProvider(), simulationProvider, threads, log); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import { createLogger } from '@aztec/foundation/log'; | ||
import { LazyArtifactProvider } from '@aztec/noir-protocol-circuits-types/client/lazy'; | ||
import { type SimulationProvider } from '@aztec/simulator/client'; | ||
|
||
import { BBWASMPrivateKernelProver } from './bb_wasm_private_kernel_prover.js'; | ||
|
||
export class BBWASMLazyPrivateKernelProver extends BBWASMPrivateKernelProver { | ||
constructor(threads = 1, log = createLogger('bb-prover:wasm:lazy')) { | ||
super(new LazyArtifactProvider(), threads, log); | ||
constructor(simulationProvider: SimulationProvider, threads = 1, log = createLogger('bb-prover:wasm:lazy')) { | ||
super(new LazyArtifactProvider(), simulationProvider, threads, log); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.