@aztec/prover-client 0.80.0 → 0.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"test_context.d.ts","sourceRoot":"","sources":["../../src/mocks/test_context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAKpD,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EAGlB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,KAAK,sBAAsB,EAAsB,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAiB,KAAK,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACpH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAOlE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGpD,qBAAa,WAAW;IAKb,iBAAiB,EAAE,iBAAiB;IACpC,UAAU,EAAE,uBAAuB;IACnC,eAAe,EAAE,eAAe;IAChC,eAAe,EAAE,eAAe;IAChC,MAAM,EAAE,mBAAmB;IAC3B,MAAM,EAAE,UA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C,WAAW,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAK5D,sBAAsB,CAAC,kBAAkB,SAAmB,GAAG,WAAW;IAI3E,OAAO;IAYA,eAAe,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;IAC1F,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAuBjE,8EAA8E;IACjE,gBAAgB,CAC3B,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,MAAU,EACnB,iBAAiB,GAAE,eAAe,GAAG,MAA6B,EAClE,mBAAmB,GAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAc;;;;;IAiB/F,sBAAsB,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,eAAe,EAAE,MAAM;IAIzD,YAAY,CAAC,GAAG,EAAE,WAAW,EAAE;CAsB7C;AAED,cAAM,uBAAwB,SAAQ,mBAAmB;IAChD,2CAA2C,UAAS;cAIxC,kCAAkC,CACnD,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,sBAAsB,GACjC,OAAO,CAAC,IAAI,CAAC;CAMjB"}
@@ -4,7 +4,7 @@ import { TestDateProvider } from '@aztec/foundation/timer';
4
4
  import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
5
5
  import { protocolContractTreeRoot } from '@aztec/protocol-contracts';
6
6
  import { computeFeePayerBalanceLeafSlot } from '@aztec/protocol-contracts/fee-juice';
7
- import { PublicProcessor, PublicTxSimulationTester, PublicTxSimulator, SimpleContractDataSource, WorldStateDB } from '@aztec/simulator/server';
7
+ import { PublicContractsDB, PublicProcessor, PublicTreesDB, PublicTxSimulationTester, PublicTxSimulator, SimpleContractDataSource } from '@aztec/simulator/server';
8
8
  import { PublicDataWrite } from '@aztec/stdlib/avm';
9
9
  import { AztecAddress } from '@aztec/stdlib/aztec-address';
10
10
  import { makeBloatedProcessedTx } from '@aztec/stdlib/testing';
@@ -65,12 +65,13 @@ export class TestContext {
65
65
  ];
66
66
  // Separated dbs for public processor and prover - see public_processor for context
67
67
  const ws = await NativeWorldStateService.tmp(undefined /* rollupAddress */ , true, prefilledPublicData);
68
- const publicDb = await ws.fork();
68
+ const merkleTrees = await ws.fork();
69
69
  const contractDataSource = new SimpleContractDataSource();
70
- const worldStateDB = new WorldStateDB(publicDb, contractDataSource);
71
- const tester = new PublicTxSimulationTester(worldStateDB, contractDataSource, publicDb);
72
- const publicTxSimulator = new PublicTxSimulator(publicDb, worldStateDB, globalVariables, true);
73
- const processor = new PublicProcessor(publicDb, globalVariables, worldStateDB, publicTxSimulator, new TestDateProvider());
70
+ const treesDB = new PublicTreesDB(merkleTrees);
71
+ const contractsDB = new PublicContractsDB(contractDataSource);
72
+ const tester = new PublicTxSimulationTester(merkleTrees, contractDataSource);
73
+ const publicTxSimulator = new PublicTxSimulator(treesDB, contractsDB, globalVariables, true);
74
+ const processor = new PublicProcessor(globalVariables, treesDB, contractsDB, publicTxSimulator, new TestDateProvider());
74
75
  let localProver;
75
76
  const config = await getEnvironmentConfig(logger);
76
77
  if (!config) {
@@ -32,7 +32,7 @@ export declare class EpochProvingState {
32
32
  private paddingBlockRootProvingOutput;
33
33
  private rootRollupProvingOutput;
34
34
  private provingStateLifecycle;
35
- readonly cachedTubeProofs: Map<string, Promise<ProofAndVerificationKey<538>>>;
35
+ readonly cachedTubeProofs: Map<string, Promise<ProofAndVerificationKey<535>>>;
36
36
  blocks: (BlockProvingState | undefined)[];
37
37
  constructor(epochNumber: number, firstBlockNumber: number, totalNumBlocks: number, completionCallback: (result: ProvingResult) => void, rejectionCallback: (reason: string) => void);
38
38
  startNewBlock(globalVariables: GlobalVariables, l1ToL2Messages: Fr[], l1ToL2MessageSubtreeSiblingPath: Tuple<Fr, typeof L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH>, l1ToL2MessageTreeSnapshotAfterInsertion: AppendOnlyTreeSnapshot, lastArchiveSnapshot: AppendOnlyTreeSnapshot, newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>, previousBlockHeader: BlockHeader): BlockProvingState;
@@ -20,12 +20,12 @@ export declare class TestBroker implements ProvingJobProducer {
20
20
  export declare class MockProver implements ServerCircuitProver {
21
21
  constructor();
22
22
  getAvmProof(_inputs: AvmCircuitInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<ProofAndVerificationKey<4154>>;
23
- getBaseParityProof(_inputs: BaseParityInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<import("@aztec/stdlib/parity").ParityPublicInputs, 459>>;
24
- getRootParityProof(_inputs: RootParityInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<import("@aztec/stdlib/parity").ParityPublicInputs, 459>>;
23
+ getBaseParityProof(_inputs: BaseParityInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<import("@aztec/stdlib/parity").ParityPublicInputs, 456>>;
24
+ getRootParityProof(_inputs: RootParityInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<import("@aztec/stdlib/parity").ParityPublicInputs, 456>>;
25
25
  getPrivateBaseRollupProof(_baseRollupInput: PrivateBaseRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BaseOrMergeRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
26
26
  getPublicBaseRollupProof(_inputs: PublicBaseRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BaseOrMergeRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
27
27
  getMergeRollupProof(_input: MergeRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BaseOrMergeRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
28
- getBlockMergeRollupProof(_input: BlockMergeRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs, 538>>;
28
+ getBlockMergeRollupProof(_input: BlockMergeRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs, 535>>;
29
29
  getEmptyBlockRootRollupProof(_input: EmptyBlockRootRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
30
30
  getBlockRootRollupProof(_input: BlockRootRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
31
31
  getSingleTxBlockRootRollupProof(_input: SingleTxBlockRootRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/prover-client",
3
- "version": "0.80.0",
3
+ "version": "0.81.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -66,19 +66,19 @@
66
66
  ]
67
67
  },
68
68
  "dependencies": {
69
- "@aztec/bb-prover": "0.80.0",
70
- "@aztec/blob-lib": "0.80.0",
71
- "@aztec/constants": "0.80.0",
72
- "@aztec/ethereum": "0.80.0",
73
- "@aztec/foundation": "0.80.0",
74
- "@aztec/kv-store": "0.80.0",
75
- "@aztec/noir-protocol-circuits-types": "0.80.0",
76
- "@aztec/noir-types": "0.80.0",
77
- "@aztec/protocol-contracts": "0.80.0",
78
- "@aztec/simulator": "0.80.0",
79
- "@aztec/stdlib": "0.80.0",
80
- "@aztec/telemetry-client": "0.80.0",
81
- "@aztec/world-state": "0.80.0",
69
+ "@aztec/bb-prover": "0.81.0",
70
+ "@aztec/blob-lib": "0.81.0",
71
+ "@aztec/constants": "0.81.0",
72
+ "@aztec/ethereum": "0.81.0",
73
+ "@aztec/foundation": "0.81.0",
74
+ "@aztec/kv-store": "0.81.0",
75
+ "@aztec/noir-protocol-circuits-types": "0.81.0",
76
+ "@aztec/noir-types": "0.81.0",
77
+ "@aztec/protocol-contracts": "0.81.0",
78
+ "@aztec/simulator": "0.81.0",
79
+ "@aztec/stdlib": "0.81.0",
80
+ "@aztec/telemetry-client": "0.81.0",
81
+ "@aztec/world-state": "0.81.0",
82
82
  "@google-cloud/storage": "^7.15.0",
83
83
  "@iarna/toml": "^2.2.5",
84
84
  "commander": "^12.1.0",
@@ -88,7 +88,7 @@
88
88
  "zod": "^3.23.8"
89
89
  },
90
90
  "devDependencies": {
91
- "@aztec/noir-contracts.js": "0.80.0",
91
+ "@aztec/noir-contracts.js": "0.81.0",
92
92
  "@jest/globals": "^29.5.0",
93
93
  "@types/jest": "^29.5.0",
94
94
  "@types/memdown": "^3.0.0",
@@ -7,11 +7,12 @@ import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
7
7
  import { protocolContractTreeRoot } from '@aztec/protocol-contracts';
8
8
  import { computeFeePayerBalanceLeafSlot } from '@aztec/protocol-contracts/fee-juice';
9
9
  import {
10
+ PublicContractsDB,
10
11
  PublicProcessor,
12
+ PublicTreesDB,
11
13
  PublicTxSimulationTester,
12
14
  PublicTxSimulator,
13
15
  SimpleContractDataSource,
14
- WorldStateDB,
15
16
  } from '@aztec/simulator/server';
16
17
  import { PublicDataWrite } from '@aztec/stdlib/avm';
17
18
  import { AztecAddress } from '@aztec/stdlib/aztec-address';
@@ -80,18 +81,19 @@ export class TestContext {
80
81
  true /* cleanupTmpDir */,
81
82
  prefilledPublicData,
82
83
  );
83
- const publicDb = await ws.fork();
84
+ const merkleTrees = await ws.fork();
84
85
 
85
86
  const contractDataSource = new SimpleContractDataSource();
86
- const worldStateDB = new WorldStateDB(publicDb, contractDataSource);
87
+ const treesDB = new PublicTreesDB(merkleTrees);
88
+ const contractsDB = new PublicContractsDB(contractDataSource);
87
89
 
88
- const tester = new PublicTxSimulationTester(worldStateDB, contractDataSource, publicDb);
90
+ const tester = new PublicTxSimulationTester(merkleTrees, contractDataSource);
89
91
 
90
- const publicTxSimulator = new PublicTxSimulator(publicDb, worldStateDB, globalVariables, true);
92
+ const publicTxSimulator = new PublicTxSimulator(treesDB, contractsDB, globalVariables, true);
91
93
  const processor = new PublicProcessor(
92
- publicDb,
93
94
  globalVariables,
94
- worldStateDB,
95
+ treesDB,
96
+ contractsDB,
95
97
  publicTxSimulator,
96
98
  new TestDateProvider(),
97
99
  );