Skip to content

Commit

Permalink
feat: Public Kernel proving orchestration (#5748)
Browse files Browse the repository at this point in the history
This PR makes makes the following changes:

1. Moves code related to public function simulation from
`sequencer-client` to `simulator`
2. `ProvingOrchestrator` now orchestrates public VM and kernel circuit
proving
  • Loading branch information
PhilWindle authored Apr 15, 2024
1 parent ae37d32 commit 2ae0ee5
Show file tree
Hide file tree
Showing 50 changed files with 790 additions and 361 deletions.
9 changes: 2 additions & 7 deletions yarn-project/aztec-node/src/aztec-node/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,8 @@ import { initStoreForRollup, openTmpStore } from '@aztec/kv-store/utils';
import { SHA256Trunc, StandardTree } from '@aztec/merkle-tree';
import { AztecKVTxPool, type P2P, createP2PClient } from '@aztec/p2p';
import { DummyProver, TxProver } from '@aztec/prover-client';
import {
type GlobalVariableBuilder,
PublicProcessorFactory,
SequencerClient,
getGlobalVariableBuilder,
} from '@aztec/sequencer-client';
import { WASMSimulator } from '@aztec/simulator';
import { type GlobalVariableBuilder, SequencerClient, getGlobalVariableBuilder } from '@aztec/sequencer-client';
import { PublicProcessorFactory, WASMSimulator } from '@aztec/simulator';
import {
type ContractClassPublic,
type ContractDataSource,
Expand Down
1 change: 1 addition & 0 deletions yarn-project/circuit-types/src/tx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from './simulated_tx.js';
export * from './tx_hash.js';
export * from './tx_receipt.js';
export * from './processed_tx.js';
export * from './tx_validator.js';
1 change: 1 addition & 0 deletions yarn-project/circuit-types/src/tx/processed_tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
* Used to communicate to the prover which type of circuit to prove
*/
export enum PublicKernelType {
NON_PUBLIC,
SETUP,
APP_LOGIC,
TEARDOWN,
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/prover-client/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN ln -s /usr/src/yarn-project/node_modules /usr/src/node_modules
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

RUN ./bootstrap.sh
RUN cd prover-client && LOG_LEVEL=verbose ACVM_WORKING_DIRECTORY='/tmp/acvm' BB_WORKING_DIRECTORY='/tmp/bb' yarn test
RUN cd prover-client && ACVM_WORKING_DIRECTORY='/tmp/acvm' BB_WORKING_DIRECTORY='/tmp/bb' yarn test

# Avoid pushing some huge container back to ecr.
FROM scratch
Expand Down
1 change: 1 addition & 0 deletions yarn-project/prover-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@aztec/noir-protocol-circuits-types": "workspace:^",
"@aztec/simulator": "workspace:^",
"@aztec/world-state": "workspace:^",
"@noir-lang/types": "portal:../../noir/packages/types",
"commander": "^9.0.0",
"lodash.chunk": "^4.2.0",
"source-map-support": "^0.5.21",
Expand Down
Loading

0 comments on commit 2ae0ee5

Please sign in to comment.