@aztec/prover-client 0.67.1-devnet → 0.68.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.
Files changed (42) hide show
  1. package/dest/block_builder/light.d.ts.map +1 -1
  2. package/dest/block_builder/light.js +3 -2
  3. package/dest/mocks/fixtures.d.ts.map +1 -1
  4. package/dest/mocks/fixtures.js +3 -3
  5. package/dest/mocks/test_context.d.ts.map +1 -1
  6. package/dest/mocks/test_context.js +3 -3
  7. package/dest/orchestrator/block-building-helpers.d.ts +3 -1
  8. package/dest/orchestrator/block-building-helpers.d.ts.map +1 -1
  9. package/dest/orchestrator/block-building-helpers.js +3 -2
  10. package/dest/orchestrator/block-proving-state.d.ts +3 -1
  11. package/dest/orchestrator/block-proving-state.d.ts.map +1 -1
  12. package/dest/orchestrator/block-proving-state.js +3 -2
  13. package/dest/orchestrator/epoch-proving-state.d.ts +2 -1
  14. package/dest/orchestrator/epoch-proving-state.d.ts.map +1 -1
  15. package/dest/orchestrator/epoch-proving-state.js +1 -1
  16. package/dest/orchestrator/orchestrator.d.ts +1 -1
  17. package/dest/orchestrator/orchestrator.d.ts.map +1 -1
  18. package/dest/orchestrator/orchestrator.js +4 -2
  19. package/dest/orchestrator/tx-proving-state.d.ts +2 -1
  20. package/dest/orchestrator/tx-proving-state.d.ts.map +1 -1
  21. package/dest/orchestrator/tx-proving-state.js +3 -2
  22. package/dest/prover-agent/memory-proving-queue.d.ts +2 -1
  23. package/dest/prover-agent/memory-proving-queue.d.ts.map +1 -1
  24. package/dest/prover-agent/memory-proving-queue.js +1 -1
  25. package/dest/proving_broker/broker_prover_facade.d.ts +2 -1
  26. package/dest/proving_broker/broker_prover_facade.d.ts.map +1 -1
  27. package/dest/proving_broker/broker_prover_facade.js +1 -1
  28. package/dest/test/mock_prover.d.ts +2 -1
  29. package/dest/test/mock_prover.d.ts.map +1 -1
  30. package/dest/test/mock_prover.js +1 -1
  31. package/package.json +13 -13
  32. package/src/block_builder/light.ts +2 -1
  33. package/src/mocks/fixtures.ts +2 -2
  34. package/src/mocks/test_context.ts +2 -2
  35. package/src/orchestrator/block-building-helpers.ts +15 -13
  36. package/src/orchestrator/block-proving-state.ts +2 -3
  37. package/src/orchestrator/epoch-proving-state.ts +1 -2
  38. package/src/orchestrator/orchestrator.ts +8 -6
  39. package/src/orchestrator/tx-proving-state.ts +6 -4
  40. package/src/prover-agent/memory-proving-queue.ts +13 -11
  41. package/src/proving_broker/broker_prover_facade.ts +11 -9
  42. package/src/test/mock_prover.ts +12 -10
@@ -9,11 +9,7 @@ import {
9
9
  import {
10
10
  ARCHIVE_HEIGHT,
11
11
  AppendOnlyTreeSnapshot,
12
- type BaseOrMergeRollupPublicInputs,
13
12
  BlockHeader,
14
- BlockMergeRollupInputs,
15
- type BlockRootOrBlockMergePublicInputs,
16
- ConstantRollupData,
17
13
  ContentCommitment,
18
14
  Fr,
19
15
  type GlobalVariables,
@@ -21,7 +17,6 @@ import {
21
17
  MAX_NULLIFIERS_PER_TX,
22
18
  MAX_TOTAL_PUBLIC_DATA_UPDATE_REQUESTS_PER_TX,
23
19
  MembershipWitness,
24
- MergeRollupInputs,
25
20
  MerkleTreeCalculator,
26
21
  type NESTED_RECURSIVE_PROOF_LENGTH,
27
22
  NOTE_HASH_SUBTREE_HEIGHT,
@@ -34,22 +29,29 @@ import {
34
29
  PUBLIC_DATA_TREE_HEIGHT,
35
30
  type ParityPublicInputs,
36
31
  PartialStateReference,
37
- PreviousRollupBlockData,
38
- PreviousRollupData,
39
- PrivateBaseRollupHints,
40
- PrivateBaseStateDiffHints,
41
- PublicBaseRollupHints,
42
- PublicBaseStateDiffHints,
43
32
  PublicDataHint,
44
33
  PublicDataTreeLeaf,
45
34
  PublicDataTreeLeafPreimage,
46
35
  type RecursiveProof,
47
- RootRollupInputs,
48
- type SpongeBlob,
49
36
  StateReference,
50
37
  VK_TREE_HEIGHT,
51
38
  type VerificationKeyAsFields,
52
39
  } from '@aztec/circuits.js';
40
+ import { type SpongeBlob } from '@aztec/circuits.js/blobs';
41
+ import {
42
+ type BaseOrMergeRollupPublicInputs,
43
+ BlockMergeRollupInputs,
44
+ type BlockRootOrBlockMergePublicInputs,
45
+ ConstantRollupData,
46
+ MergeRollupInputs,
47
+ PreviousRollupBlockData,
48
+ PreviousRollupData,
49
+ PrivateBaseRollupHints,
50
+ PrivateBaseStateDiffHints,
51
+ PublicBaseRollupHints,
52
+ PublicBaseStateDiffHints,
53
+ RootRollupInputs,
54
+ } from '@aztec/circuits.js/rollup';
53
55
  import { makeTuple } from '@aztec/foundation/array';
54
56
  import { Blob } from '@aztec/foundation/blob';
55
57
  import { padArrayEnd } from '@aztec/foundation/collection';
@@ -2,8 +2,6 @@ import { type L2Block, type MerkleTreeId } from '@aztec/circuit-types';
2
2
  import {
3
3
  type ARCHIVE_HEIGHT,
4
4
  type AppendOnlyTreeSnapshot,
5
- type BaseOrMergeRollupPublicInputs,
6
- type BlockRootOrBlockMergePublicInputs,
7
5
  type Fr,
8
6
  type GlobalVariables,
9
7
  type L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH,
@@ -14,9 +12,10 @@ import {
14
12
  type RECURSIVE_PROOF_LENGTH,
15
13
  type RecursiveProof,
16
14
  type RootParityInput,
17
- SpongeBlob,
18
15
  type VerificationKeyAsFields,
19
16
  } from '@aztec/circuits.js';
17
+ import { SpongeBlob } from '@aztec/circuits.js/blobs';
18
+ import { type BaseOrMergeRollupPublicInputs, type BlockRootOrBlockMergePublicInputs } from '@aztec/circuits.js/rollup';
20
19
  import { type Tuple } from '@aztec/foundation/serialize';
21
20
 
22
21
  import { type EpochProvingState } from './epoch-proving-state.js';
@@ -2,7 +2,6 @@ import { type MerkleTreeId } from '@aztec/circuit-types';
2
2
  import {
3
3
  type ARCHIVE_HEIGHT,
4
4
  type AppendOnlyTreeSnapshot,
5
- type BlockRootOrBlockMergePublicInputs,
6
5
  Fr,
7
6
  type GlobalVariables,
8
7
  type L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH,
@@ -10,9 +9,9 @@ import {
10
9
  NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP,
11
10
  type Proof,
12
11
  type RecursiveProof,
13
- type RootRollupPublicInputs,
14
12
  type VerificationKeyAsFields,
15
13
  } from '@aztec/circuits.js';
14
+ import { type BlockRootOrBlockMergePublicInputs, type RootRollupPublicInputs } from '@aztec/circuits.js/rollup';
16
15
  import { padArrayEnd } from '@aztec/foundation/collection';
17
16
  import { type Tuple } from '@aztec/foundation/serialize';
18
17
 
@@ -18,14 +18,8 @@ import {
18
18
  AVM_VERIFICATION_KEY_LENGTH_IN_FIELDS,
19
19
  type AppendOnlyTreeSnapshot,
20
20
  BLOBS_PER_BLOCK,
21
- type BaseOrMergeRollupPublicInputs,
22
21
  BaseParityInputs,
23
- type BaseRollupHints,
24
- BlobPublicInputs,
25
22
  type BlockHeader,
26
- type BlockRootOrBlockMergePublicInputs,
27
- BlockRootRollupInputs,
28
- EmptyBlockRootRollupInputs,
29
23
  FIELDS_PER_BLOB,
30
24
  Fr,
31
25
  type GlobalVariables,
@@ -43,6 +37,14 @@ import {
43
37
  VerificationKeyData,
44
38
  makeEmptyRecursiveProof,
45
39
  } from '@aztec/circuits.js';
40
+ import { BlobPublicInputs } from '@aztec/circuits.js/blobs';
41
+ import {
42
+ type BaseOrMergeRollupPublicInputs,
43
+ type BaseRollupHints,
44
+ type BlockRootOrBlockMergePublicInputs,
45
+ BlockRootRollupInputs,
46
+ EmptyBlockRootRollupInputs,
47
+ } from '@aztec/circuits.js/rollup';
46
48
  import { makeTuple } from '@aztec/foundation/array';
47
49
  import { Blob } from '@aztec/foundation/blob';
48
50
  import { maxBy, padArrayEnd } from '@aztec/foundation/collection';
@@ -3,6 +3,11 @@ import {
3
3
  type AVM_PROOF_LENGTH_IN_FIELDS,
4
4
  AVM_VK_INDEX,
5
5
  type AppendOnlyTreeSnapshot,
6
+ type TUBE_PROOF_LENGTH,
7
+ TUBE_VK_INDEX,
8
+ VkWitnessData,
9
+ } from '@aztec/circuits.js';
10
+ import {
6
11
  AvmProofData,
7
12
  type BaseRollupHints,
8
13
  PrivateBaseRollupHints,
@@ -11,11 +16,8 @@ import {
11
16
  PublicBaseRollupHints,
12
17
  PublicBaseRollupInputs,
13
18
  PublicTubeData,
14
- type TUBE_PROOF_LENGTH,
15
- TUBE_VK_INDEX,
16
19
  TubeInputs,
17
- VkWitnessData,
18
- } from '@aztec/circuits.js';
20
+ } from '@aztec/circuits.js/rollup';
19
21
  import { getVKIndex, getVKSiblingPath } from '@aztec/noir-protocol-circuits-types';
20
22
 
21
23
  /**
@@ -11,25 +11,27 @@ import {
11
11
  import type {
12
12
  AVM_PROOF_LENGTH_IN_FIELDS,
13
13
  AvmCircuitInputs,
14
- BaseOrMergeRollupPublicInputs,
15
14
  BaseParityInputs,
16
- BlockMergeRollupInputs,
17
- BlockRootOrBlockMergePublicInputs,
18
- BlockRootRollupInputs,
19
- EmptyBlockRootRollupInputs,
20
15
  KernelCircuitPublicInputs,
21
- MergeRollupInputs,
22
16
  NESTED_RECURSIVE_PROOF_LENGTH,
23
17
  ParityPublicInputs,
24
- PrivateBaseRollupInputs,
25
18
  PrivateKernelEmptyInputData,
26
- PublicBaseRollupInputs,
27
19
  RECURSIVE_PROOF_LENGTH,
28
20
  RootParityInputs,
29
- RootRollupInputs,
30
- RootRollupPublicInputs,
31
- TubeInputs,
32
21
  } from '@aztec/circuits.js';
22
+ import {
23
+ type BaseOrMergeRollupPublicInputs,
24
+ type BlockMergeRollupInputs,
25
+ type BlockRootOrBlockMergePublicInputs,
26
+ type BlockRootRollupInputs,
27
+ type EmptyBlockRootRollupInputs,
28
+ type MergeRollupInputs,
29
+ type PrivateBaseRollupInputs,
30
+ type PublicBaseRollupInputs,
31
+ type RootRollupInputs,
32
+ type RootRollupPublicInputs,
33
+ type TubeInputs,
34
+ } from '@aztec/circuits.js/rollup';
33
35
  import { randomBytes } from '@aztec/foundation/crypto';
34
36
  import { AbortError, TimeoutError } from '@aztec/foundation/error';
35
37
  import { createLogger } from '@aztec/foundation/log';
@@ -11,26 +11,28 @@ import {
11
11
  import {
12
12
  type AVM_PROOF_LENGTH_IN_FIELDS,
13
13
  type AvmCircuitInputs,
14
- type BaseOrMergeRollupPublicInputs,
15
14
  type BaseParityInputs,
15
+ type KernelCircuitPublicInputs,
16
+ type NESTED_RECURSIVE_PROOF_LENGTH,
17
+ type ParityPublicInputs,
18
+ type PrivateKernelEmptyInputData,
19
+ type RECURSIVE_PROOF_LENGTH,
20
+ type RootParityInputs,
21
+ type TUBE_PROOF_LENGTH,
22
+ } from '@aztec/circuits.js';
23
+ import {
24
+ type BaseOrMergeRollupPublicInputs,
16
25
  type BlockMergeRollupInputs,
17
26
  type BlockRootOrBlockMergePublicInputs,
18
27
  type BlockRootRollupInputs,
19
28
  type EmptyBlockRootRollupInputs,
20
- type KernelCircuitPublicInputs,
21
29
  type MergeRollupInputs,
22
- type NESTED_RECURSIVE_PROOF_LENGTH,
23
- type ParityPublicInputs,
24
30
  type PrivateBaseRollupInputs,
25
- type PrivateKernelEmptyInputData,
26
31
  type PublicBaseRollupInputs,
27
- type RECURSIVE_PROOF_LENGTH,
28
- type RootParityInputs,
29
32
  type RootRollupInputs,
30
33
  type RootRollupPublicInputs,
31
- type TUBE_PROOF_LENGTH,
32
34
  type TubeInputs,
33
- } from '@aztec/circuits.js';
35
+ } from '@aztec/circuits.js/rollup';
34
36
  import { sha256 } from '@aztec/foundation/crypto';
35
37
  import { createLogger } from '@aztec/foundation/log';
36
38
  import { retryUntil } from '@aztec/foundation/retry';
@@ -14,27 +14,29 @@ import {
14
14
  AVM_PROOF_LENGTH_IN_FIELDS,
15
15
  AVM_VERIFICATION_KEY_LENGTH_IN_FIELDS,
16
16
  type AvmCircuitInputs,
17
- type BaseOrMergeRollupPublicInputs,
18
17
  type BaseParityInputs,
19
- type BlockMergeRollupInputs,
20
- type BlockRootOrBlockMergePublicInputs,
21
- type BlockRootRollupInputs,
22
- type EmptyBlockRootRollupInputs,
23
18
  type KernelCircuitPublicInputs,
24
- type MergeRollupInputs,
25
19
  NESTED_RECURSIVE_PROOF_LENGTH,
26
- type PrivateBaseRollupInputs,
27
20
  type PrivateKernelEmptyInputData,
28
- type PublicBaseRollupInputs,
29
21
  RECURSIVE_PROOF_LENGTH,
30
22
  type RootParityInputs,
31
- type RootRollupInputs,
32
- type RootRollupPublicInputs,
33
23
  TUBE_PROOF_LENGTH,
34
24
  VerificationKeyData,
35
25
  makeEmptyRecursiveProof,
36
26
  makeRecursiveProof,
37
27
  } from '@aztec/circuits.js';
28
+ import {
29
+ type BaseOrMergeRollupPublicInputs,
30
+ type BlockMergeRollupInputs,
31
+ type BlockRootOrBlockMergePublicInputs,
32
+ type BlockRootRollupInputs,
33
+ type EmptyBlockRootRollupInputs,
34
+ type MergeRollupInputs,
35
+ type PrivateBaseRollupInputs,
36
+ type PublicBaseRollupInputs,
37
+ type RootRollupInputs,
38
+ type RootRollupPublicInputs,
39
+ } from '@aztec/circuits.js/rollup';
38
40
  import {
39
41
  makeBaseOrMergeRollupPublicInputs,
40
42
  makeBlockRootOrBlockMergeRollupPublicInputs,