@aztec/pxe 0.0.1-commit.0208eb9 → 0.0.1-commit.033589e

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 (167) hide show
  1. package/dest/access_scopes.d.ts +9 -0
  2. package/dest/access_scopes.d.ts.map +1 -0
  3. package/dest/access_scopes.js +6 -0
  4. package/dest/block_synchronizer/block_synchronizer.d.ts +4 -2
  5. package/dest/block_synchronizer/block_synchronizer.d.ts.map +1 -1
  6. package/dest/block_synchronizer/block_synchronizer.js +7 -1
  7. package/dest/config/package_info.js +1 -1
  8. package/dest/contract_function_simulator/contract_function_simulator.d.ts +54 -28
  9. package/dest/contract_function_simulator/contract_function_simulator.d.ts.map +1 -1
  10. package/dest/contract_function_simulator/contract_function_simulator.js +177 -71
  11. package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts +5 -5
  12. package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts.map +1 -1
  13. package/dest/contract_function_simulator/execution_tagging_index_cache.js +3 -3
  14. package/dest/contract_function_simulator/noir-structs/event_validation_request.js +1 -1
  15. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts +2 -2
  16. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts.map +1 -1
  17. package/dest/contract_function_simulator/noir-structs/note_validation_request.js +1 -1
  18. package/dest/contract_function_simulator/oracle/interfaces.d.ts +44 -44
  19. package/dest/contract_function_simulator/oracle/interfaces.d.ts.map +1 -1
  20. package/dest/contract_function_simulator/oracle/oracle.d.ts +44 -44
  21. package/dest/contract_function_simulator/oracle/oracle.d.ts.map +1 -1
  22. package/dest/contract_function_simulator/oracle/oracle.js +133 -90
  23. package/dest/contract_function_simulator/oracle/private_execution.js +1 -1
  24. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts +55 -54
  25. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts.map +1 -1
  26. package/dest/contract_function_simulator/oracle/private_execution_oracle.js +99 -54
  27. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts +58 -39
  28. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts.map +1 -1
  29. package/dest/contract_function_simulator/oracle/utility_execution_oracle.js +86 -66
  30. package/dest/contract_logging.d.ts +22 -0
  31. package/dest/contract_logging.d.ts.map +1 -0
  32. package/dest/contract_logging.js +23 -0
  33. package/dest/contract_sync/contract_sync_service.d.ts +43 -0
  34. package/dest/contract_sync/contract_sync_service.d.ts.map +1 -0
  35. package/dest/contract_sync/contract_sync_service.js +97 -0
  36. package/dest/contract_sync/helpers.d.ts +29 -0
  37. package/dest/contract_sync/helpers.d.ts.map +1 -0
  38. package/dest/contract_sync/{index.js → helpers.js} +8 -14
  39. package/dest/debug/pxe_debug_utils.d.ts +14 -10
  40. package/dest/debug/pxe_debug_utils.d.ts.map +1 -1
  41. package/dest/debug/pxe_debug_utils.js +16 -15
  42. package/dest/entrypoints/client/bundle/index.d.ts +4 -1
  43. package/dest/entrypoints/client/bundle/index.d.ts.map +1 -1
  44. package/dest/entrypoints/client/bundle/index.js +3 -0
  45. package/dest/entrypoints/client/bundle/utils.d.ts +1 -1
  46. package/dest/entrypoints/client/bundle/utils.d.ts.map +1 -1
  47. package/dest/entrypoints/client/bundle/utils.js +9 -1
  48. package/dest/entrypoints/client/lazy/index.d.ts +4 -1
  49. package/dest/entrypoints/client/lazy/index.d.ts.map +1 -1
  50. package/dest/entrypoints/client/lazy/index.js +3 -0
  51. package/dest/entrypoints/client/lazy/utils.d.ts +1 -1
  52. package/dest/entrypoints/client/lazy/utils.d.ts.map +1 -1
  53. package/dest/entrypoints/client/lazy/utils.js +9 -1
  54. package/dest/entrypoints/server/index.d.ts +4 -2
  55. package/dest/entrypoints/server/index.d.ts.map +1 -1
  56. package/dest/entrypoints/server/index.js +3 -1
  57. package/dest/entrypoints/server/utils.js +9 -1
  58. package/dest/logs/log_service.d.ts +3 -2
  59. package/dest/logs/log_service.d.ts.map +1 -1
  60. package/dest/logs/log_service.js +9 -14
  61. package/dest/notes/note_service.d.ts +4 -3
  62. package/dest/notes/note_service.d.ts.map +1 -1
  63. package/dest/notes/note_service.js +3 -2
  64. package/dest/notes_filter.d.ts +25 -0
  65. package/dest/notes_filter.d.ts.map +1 -0
  66. package/dest/notes_filter.js +4 -0
  67. package/dest/oracle_version.d.ts +2 -2
  68. package/dest/oracle_version.js +3 -3
  69. package/dest/private_kernel/hints/compute_tx_expiration_timestamp.d.ts +4 -0
  70. package/dest/private_kernel/hints/compute_tx_expiration_timestamp.d.ts.map +1 -0
  71. package/dest/private_kernel/hints/{compute_tx_include_by_timestamp.js → compute_tx_expiration_timestamp.js} +12 -12
  72. package/dest/private_kernel/hints/index.d.ts +1 -1
  73. package/dest/private_kernel/hints/index.js +1 -1
  74. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts +4 -3
  75. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts.map +1 -1
  76. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.js +129 -68
  77. package/dest/private_kernel/hints/test_utils.d.ts +122 -0
  78. package/dest/private_kernel/hints/test_utils.d.ts.map +1 -0
  79. package/dest/private_kernel/hints/test_utils.js +203 -0
  80. package/dest/private_kernel/private_kernel_execution_prover.d.ts +1 -1
  81. package/dest/private_kernel/private_kernel_execution_prover.d.ts.map +1 -1
  82. package/dest/private_kernel/private_kernel_execution_prover.js +19 -11
  83. package/dest/private_kernel/private_kernel_oracle.d.ts +6 -2
  84. package/dest/private_kernel/private_kernel_oracle.d.ts.map +1 -1
  85. package/dest/private_kernel/private_kernel_oracle.js +7 -3
  86. package/dest/pxe.d.ts +71 -24
  87. package/dest/pxe.d.ts.map +1 -1
  88. package/dest/pxe.js +100 -64
  89. package/dest/storage/contract_store/contract_store.d.ts +42 -15
  90. package/dest/storage/contract_store/contract_store.d.ts.map +1 -1
  91. package/dest/storage/contract_store/contract_store.js +145 -69
  92. package/dest/storage/note_store/note_store.d.ts +3 -3
  93. package/dest/storage/note_store/note_store.d.ts.map +1 -1
  94. package/dest/storage/note_store/note_store.js +6 -4
  95. package/dest/storage/tagging_store/recipient_tagging_store.d.ts +6 -6
  96. package/dest/storage/tagging_store/recipient_tagging_store.d.ts.map +1 -1
  97. package/dest/storage/tagging_store/sender_tagging_store.d.ts +5 -5
  98. package/dest/storage/tagging_store/sender_tagging_store.d.ts.map +1 -1
  99. package/dest/storage/tagging_store/sender_tagging_store.js +4 -4
  100. package/dest/tagging/get_all_logs_by_tags.d.ts +1 -1
  101. package/dest/tagging/get_all_logs_by_tags.d.ts.map +1 -1
  102. package/dest/tagging/get_all_logs_by_tags.js +17 -3
  103. package/dest/tagging/index.d.ts +2 -2
  104. package/dest/tagging/index.d.ts.map +1 -1
  105. package/dest/tagging/index.js +1 -1
  106. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts +4 -5
  107. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts.map +1 -1
  108. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.js +7 -7
  109. package/dest/tagging/recipient_sync/utils/find_highest_indexes.js +2 -2
  110. package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts +6 -7
  111. package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts.map +1 -1
  112. package/dest/tagging/recipient_sync/utils/load_logs_for_range.js +12 -11
  113. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts +4 -8
  114. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts.map +1 -1
  115. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.js +3 -6
  116. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts +4 -7
  117. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts.map +1 -1
  118. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.js +14 -15
  119. package/package.json +25 -16
  120. package/src/access_scopes.ts +9 -0
  121. package/src/block_synchronizer/block_synchronizer.ts +6 -0
  122. package/src/config/package_info.ts +1 -1
  123. package/src/contract_function_simulator/contract_function_simulator.ts +326 -131
  124. package/src/contract_function_simulator/execution_tagging_index_cache.ts +5 -5
  125. package/src/contract_function_simulator/noir-structs/event_validation_request.ts +1 -1
  126. package/src/contract_function_simulator/noir-structs/note_validation_request.ts +1 -1
  127. package/src/contract_function_simulator/oracle/interfaces.ts +43 -43
  128. package/src/contract_function_simulator/oracle/oracle.ts +136 -108
  129. package/src/contract_function_simulator/oracle/private_execution.ts +1 -1
  130. package/src/contract_function_simulator/oracle/private_execution_oracle.ts +124 -132
  131. package/src/contract_function_simulator/oracle/utility_execution_oracle.ts +131 -71
  132. package/src/contract_logging.ts +39 -0
  133. package/src/contract_sync/contract_sync_service.ts +152 -0
  134. package/src/contract_sync/{index.ts → helpers.ts} +13 -34
  135. package/src/debug/pxe_debug_utils.ts +48 -18
  136. package/src/entrypoints/client/bundle/index.ts +3 -0
  137. package/src/entrypoints/client/bundle/utils.ts +9 -1
  138. package/src/entrypoints/client/lazy/index.ts +3 -0
  139. package/src/entrypoints/client/lazy/utils.ts +9 -1
  140. package/src/entrypoints/server/index.ts +3 -1
  141. package/src/entrypoints/server/utils.ts +7 -7
  142. package/src/logs/log_service.ts +17 -24
  143. package/src/notes/note_service.ts +4 -3
  144. package/src/notes_filter.ts +26 -0
  145. package/src/oracle_version.ts +3 -3
  146. package/src/private_kernel/hints/{compute_tx_include_by_timestamp.ts → compute_tx_expiration_timestamp.ts} +13 -13
  147. package/src/private_kernel/hints/index.ts +1 -1
  148. package/src/private_kernel/hints/private_kernel_reset_private_inputs_builder.ts +164 -117
  149. package/src/private_kernel/hints/test_utils.ts +325 -0
  150. package/src/private_kernel/private_kernel_execution_prover.ts +19 -12
  151. package/src/private_kernel/private_kernel_oracle.ts +7 -7
  152. package/src/pxe.ts +181 -116
  153. package/src/storage/contract_store/contract_store.ts +174 -75
  154. package/src/storage/note_store/note_store.ts +12 -5
  155. package/src/storage/tagging_store/recipient_tagging_store.ts +9 -5
  156. package/src/storage/tagging_store/sender_tagging_store.ts +8 -8
  157. package/src/tagging/get_all_logs_by_tags.ts +28 -4
  158. package/src/tagging/index.ts +1 -1
  159. package/src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts +7 -10
  160. package/src/tagging/recipient_sync/utils/find_highest_indexes.ts +2 -2
  161. package/src/tagging/recipient_sync/utils/load_logs_for_range.ts +10 -15
  162. package/src/tagging/sender_sync/sync_sender_tagging_indexes.ts +4 -9
  163. package/src/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.ts +11 -20
  164. package/dest/contract_sync/index.d.ts +0 -24
  165. package/dest/contract_sync/index.d.ts.map +0 -1
  166. package/dest/private_kernel/hints/compute_tx_include_by_timestamp.d.ts +0 -4
  167. package/dest/private_kernel/hints/compute_tx_include_by_timestamp.d.ts.map +0 -1
@@ -1,48 +1,42 @@
1
1
  import { Fr } from '@aztec/foundation/curves/bn254';
2
- import type { KeyStore } from '@aztec/key-store';
3
2
  import { type CircuitSimulator } from '@aztec/simulator/client';
4
3
  import { type FunctionAbi, type FunctionCall, FunctionSelector, type NoteSelector } from '@aztec/stdlib/abi';
5
- import type { AuthWitness } from '@aztec/stdlib/auth-witness';
6
4
  import { AztecAddress } from '@aztec/stdlib/aztec-address';
7
- import type { AztecNode } from '@aztec/stdlib/interfaces/client';
8
5
  import { PrivateContextInputs } from '@aztec/stdlib/kernel';
9
6
  import { type ContractClassLog, type PreTag } from '@aztec/stdlib/logs';
10
7
  import { Tag } from '@aztec/stdlib/logs';
11
8
  import { type NoteStatus } from '@aztec/stdlib/note';
12
- import { type BlockHeader, CallContext, Capsule, CountedContractClassLog, NoteAndSlot, PrivateCallExecutionResult, type TxContext } from '@aztec/stdlib/tx';
13
- import type { AddressStore } from '../../storage/address_store/address_store.js';
14
- import type { CapsuleStore } from '../../storage/capsule_store/capsule_store.js';
15
- import type { ContractStore } from '../../storage/contract_store/contract_store.js';
16
- import type { NoteStore } from '../../storage/note_store/note_store.js';
17
- import type { PrivateEventStore } from '../../storage/private_event_store/private_event_store.js';
18
- import type { RecipientTaggingStore } from '../../storage/tagging_store/recipient_tagging_store.js';
19
- import type { SenderAddressBookStore } from '../../storage/tagging_store/sender_address_book_store.js';
9
+ import { CallContext, CountedContractClassLog, NoteAndSlot, PrivateCallExecutionResult, type TxContext } from '@aztec/stdlib/tx';
10
+ import type { AccessScopes } from '../../access_scopes.js';
11
+ import type { ContractSyncService } from '../../contract_sync/contract_sync_service.js';
20
12
  import type { SenderTaggingStore } from '../../storage/tagging_store/sender_tagging_store.js';
21
13
  import type { ExecutionNoteCache } from '../execution_note_cache.js';
22
14
  import { ExecutionTaggingIndexCache } from '../execution_tagging_index_cache.js';
23
15
  import type { HashedValuesCache } from '../hashed_values_cache.js';
24
16
  import type { IPrivateExecutionOracle, NoteData } from './interfaces.js';
25
- import { UtilityExecutionOracle } from './utility_execution_oracle.js';
17
+ import { UtilityExecutionOracle, type UtilityExecutionOracleArgs } from './utility_execution_oracle.js';
18
+ /** Args for PrivateExecutionOracle constructor. */
19
+ export type PrivateExecutionOracleArgs = Omit<UtilityExecutionOracleArgs, 'contractAddress'> & {
20
+ argsHash: Fr;
21
+ txContext: TxContext;
22
+ callContext: CallContext;
23
+ /** Needed to trigger contract synchronization before nested calls */
24
+ utilityExecutor: (call: FunctionCall, scopes: AccessScopes) => Promise<void>;
25
+ executionCache: HashedValuesCache;
26
+ noteCache: ExecutionNoteCache;
27
+ taggingIndexCache: ExecutionTaggingIndexCache;
28
+ senderTaggingStore: SenderTaggingStore;
29
+ contractSyncService: ContractSyncService;
30
+ totalPublicCalldataCount?: number;
31
+ sideEffectCounter?: number;
32
+ senderForTags?: AztecAddress;
33
+ simulator?: CircuitSimulator;
34
+ };
26
35
  /**
27
36
  * The execution oracle for the private part of a transaction.
28
37
  */
29
38
  export declare class PrivateExecutionOracle extends UtilityExecutionOracle implements IPrivateExecutionOracle {
30
39
  #private;
31
- private readonly argsHash;
32
- private readonly txContext;
33
- private readonly callContext;
34
- /** Header of a block whose state is used during private execution (not the block the transaction is included in). */
35
- protected readonly anchorBlockHeader: BlockHeader;
36
- /** Needed to trigger contract synchronization before nested calls */
37
- private readonly utilityExecutor;
38
- private readonly executionCache;
39
- private readonly noteCache;
40
- private readonly taggingIndexCache;
41
- private readonly senderTaggingStore;
42
- private totalPublicCalldataCount;
43
- protected sideEffectCounter: number;
44
- private senderForTags?;
45
- private simulator?;
46
40
  isPrivate: true;
47
41
  /**
48
42
  * New notes created during this execution.
@@ -57,13 +51,20 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
57
51
  private contractClassLogs;
58
52
  private offchainEffects;
59
53
  private nestedExecutionResults;
60
- constructor(argsHash: Fr, txContext: TxContext, callContext: CallContext,
61
- /** Header of a block whose state is used during private execution (not the block the transaction is included in). */
62
- anchorBlockHeader: BlockHeader,
63
- /** Needed to trigger contract synchronization before nested calls */
64
- utilityExecutor: (call: FunctionCall) => Promise<void>,
65
- /** List of transient auth witnesses to be used during this simulation */
66
- authWitnesses: AuthWitness[], capsules: Capsule[], executionCache: HashedValuesCache, noteCache: ExecutionNoteCache, taggingIndexCache: ExecutionTaggingIndexCache, contractStore: ContractStore, noteStore: NoteStore, keyStore: KeyStore, addressStore: AddressStore, aztecNode: AztecNode, senderTaggingStore: SenderTaggingStore, recipientTaggingStore: RecipientTaggingStore, senderAddressBookStore: SenderAddressBookStore, capsuleStore: CapsuleStore, privateEventStore: PrivateEventStore, jobId: string, totalPublicCalldataCount?: number, sideEffectCounter?: number, log?: import("@aztec/foundation/log").Logger, scopes?: AztecAddress[], senderForTags?: AztecAddress | undefined, simulator?: CircuitSimulator | undefined);
54
+ private readonly argsHash;
55
+ private readonly txContext;
56
+ private readonly callContext;
57
+ private readonly utilityExecutor;
58
+ private readonly executionCache;
59
+ private readonly noteCache;
60
+ private readonly taggingIndexCache;
61
+ private readonly senderTaggingStore;
62
+ private readonly contractSyncService;
63
+ private totalPublicCalldataCount;
64
+ protected sideEffectCounter: number;
65
+ private senderForTags?;
66
+ private readonly simulator?;
67
+ constructor(args: PrivateExecutionOracleArgs);
67
68
  getPrivateContextInputs(): PrivateContextInputs;
68
69
  /**
69
70
  * Writes the function inputs to the initial witness.
@@ -104,7 +105,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
104
105
  * The value persists through nested calls, meaning all calls down the stack will use the same
105
106
  * 'senderForTags' value (unless it is replaced).
106
107
  */
107
- privateGetSenderForTags(): Promise<AztecAddress | undefined>;
108
+ getSenderForTags(): Promise<AztecAddress | undefined>;
108
109
  /**
109
110
  * Set the sender for tags.
110
111
  *
@@ -116,27 +117,27 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
116
117
  * through nested calls, meaning all calls down the stack will use the same 'senderForTags'
117
118
  * value (unless it is replaced by another call to this setter).
118
119
  */
119
- privateSetSenderForTags(senderForTags: AztecAddress): Promise<void>;
120
+ setSenderForTags(senderForTags: AztecAddress): Promise<void>;
120
121
  /**
121
122
  * Returns the next app tag for a given sender and recipient pair.
122
123
  * @param sender - The address sending the log
123
124
  * @param recipient - The address receiving the log
124
125
  * @returns An app tag to be used in a log.
125
126
  */
126
- privateGetNextAppTagAsSender(sender: AztecAddress, recipient: AztecAddress): Promise<Tag>;
127
+ getNextAppTagAsSender(sender: AztecAddress, recipient: AztecAddress): Promise<Tag>;
127
128
  /**
128
129
  * Store values in the execution cache.
129
130
  * @param values - Values to store.
130
131
  * @returns The hash of the values.
131
132
  */
132
- privateStoreInExecutionCache(values: Fr[], hash: Fr): void;
133
+ storeInExecutionCache(values: Fr[], hash: Fr): void;
133
134
  /**
134
135
  * Gets values from the execution cache.
135
136
  * @param hash - Hash of the values.
136
137
  * @returns The values.
137
138
  */
138
- privateLoadFromExecutionCache(hash: Fr): Promise<Fr[]>;
139
- utilityCheckNullifierExists(innerNullifier: Fr): Promise<boolean>;
139
+ loadFromExecutionCache(hash: Fr): Promise<Fr[]>;
140
+ checkNullifierExists(innerNullifier: Fr): Promise<boolean>;
140
141
  /**
141
142
  * Gets some notes for a storage slot.
142
143
  *
@@ -158,7 +159,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
158
159
  * @param status - The status of notes to fetch.
159
160
  * @returns Array of note data.
160
161
  */
161
- utilityGetNotes(owner: AztecAddress | undefined, storageSlot: Fr, numSelects: number, selectByIndexes: number[], selectByOffsets: number[], selectByLengths: number[], selectValues: Fr[], selectComparators: number[], sortByIndexes: number[], sortByOffsets: number[], sortByLengths: number[], sortOrder: number[], limit: number, offset: number, status: NoteStatus): Promise<NoteData[]>;
162
+ getNotes(owner: AztecAddress | undefined, storageSlot: Fr, numSelects: number, selectByIndexes: number[], selectByOffsets: number[], selectByLengths: number[], selectValues: Fr[], selectComparators: number[], sortByIndexes: number[], sortByOffsets: number[], sortByLengths: number[], sortOrder: number[], limit: number, offset: number, status: NoteStatus): Promise<NoteData[]>;
162
163
  /**
163
164
  * Keep track of the new note created during execution.
164
165
  * It can be used in subsequent calls (or transactions when chaining txs is possible).
@@ -170,29 +171,29 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
170
171
  * @param noteHash - A hash of the new note.
171
172
  * @returns
172
173
  */
173
- privateNotifyCreatedNote(owner: AztecAddress, storageSlot: Fr, randomness: Fr, noteTypeId: NoteSelector, noteItems: Fr[], noteHash: Fr, counter: number): void;
174
+ notifyCreatedNote(owner: AztecAddress, storageSlot: Fr, randomness: Fr, noteTypeId: NoteSelector, noteItems: Fr[], noteHash: Fr, counter: number): void;
174
175
  /**
175
176
  * Adding a siloed nullifier into the current set of all pending nullifiers created
176
177
  * within the current transaction/execution.
177
178
  * @param innerNullifier - The pending nullifier to add in the list (not yet siloed by contract address).
178
179
  * @param noteHash - A hash of the new note.
179
180
  */
180
- privateNotifyNullifiedNote(innerNullifier: Fr, noteHash: Fr, counter: number): Promise<void>;
181
+ notifyNullifiedNote(innerNullifier: Fr, noteHash: Fr, counter: number): Promise<void>;
181
182
  /**
182
183
  * Adding a siloed nullifier into the current set of all pending nullifiers created
183
184
  * within the current transaction/execution.
184
185
  * @param innerNullifier - The pending nullifier to add in the list (not yet siloed by contract address).
185
186
  * @param noteHash - A hash of the new note.
186
187
  */
187
- privateNotifyCreatedNullifier(innerNullifier: Fr): Promise<void>;
188
+ notifyCreatedNullifier(innerNullifier: Fr): Promise<void>;
188
189
  /**
189
- * Check if a nullifier has been emitted in the same transaction, i.e. if privateNotifyCreatedNullifier has been
190
+ * Check if a nullifier has been emitted in the same transaction, i.e. if notifyCreatedNullifier has been
190
191
  * called for this inner nullifier from the contract with the specified address.
191
192
  * @param innerNullifier - The inner nullifier to check.
192
193
  * @param contractAddress - Address of the contract that emitted the nullifier.
193
194
  * @returns A boolean indicating whether the nullifier is pending or not.
194
195
  */
195
- privateIsNullifierPending(innerNullifier: Fr, contractAddress: AztecAddress): Promise<boolean>;
196
+ isNullifierPending(innerNullifier: Fr, contractAddress: AztecAddress): Promise<boolean>;
196
197
  /**
197
198
  * Emit a contract class log.
198
199
  * This fn exists because we only carry a poseidon hash through the kernels, and need to
@@ -200,7 +201,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
200
201
  * @param log - The contract class log to be emitted.
201
202
  * @param counter - The contract class log's counter.
202
203
  */
203
- privateNotifyCreatedContractClassLog(log: ContractClassLog, counter: number): void;
204
+ notifyCreatedContractClassLog(log: ContractClassLog, counter: number): void;
204
205
  /**
205
206
  * Calls a private function as a nested execution.
206
207
  * @param targetContractAddress - The address of the contract to call.
@@ -210,7 +211,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
210
211
  * @param isStaticCall - Whether the call is a static call.
211
212
  * @returns The execution result.
212
213
  */
213
- privateCallPrivateFunction(targetContractAddress: AztecAddress, functionSelector: FunctionSelector, argsHash: Fr, sideEffectCounter: number, isStaticCall: boolean): Promise<{
214
+ callPrivateFunction(targetContractAddress: AztecAddress, functionSelector: FunctionSelector, argsHash: Fr, sideEffectCounter: number, isStaticCall: boolean): Promise<{
214
215
  endSideEffectCounter: Fr;
215
216
  returnsHash: Fr;
216
217
  }>;
@@ -221,7 +222,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
221
222
  * @param sideEffectCounter - The side effect counter at the start of the call.
222
223
  * @param isStaticCall - Whether the call is a static call.
223
224
  */
224
- privateNotifyEnqueuedPublicFunctionCall(_targetContractAddress: AztecAddress, calldataHash: Fr, _sideEffectCounter: number, _isStaticCall: boolean): Promise<void>;
225
+ notifyEnqueuedPublicFunctionCall(_targetContractAddress: AztecAddress, calldataHash: Fr, _sideEffectCounter: number, _isStaticCall: boolean): Promise<void>;
225
226
  /**
226
227
  * Verify relevant information when a public teardown function is set.
227
228
  * @param targetContractAddress - The address of the contract to call.
@@ -229,11 +230,11 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
229
230
  * @param sideEffectCounter - The side effect counter at the start of the call.
230
231
  * @param isStaticCall - Whether the call is a static call.
231
232
  */
232
- privateNotifySetPublicTeardownFunctionCall(_targetContractAddress: AztecAddress, calldataHash: Fr, _sideEffectCounter: number, _isStaticCall: boolean): Promise<void>;
233
- privateNotifySetMinRevertibleSideEffectCounter(minRevertibleSideEffectCounter: number): Promise<void>;
234
- privateIsSideEffectCounterRevertible(sideEffectCounter: number): Promise<boolean>;
233
+ notifySetPublicTeardownFunctionCall(_targetContractAddress: AztecAddress, calldataHash: Fr, _sideEffectCounter: number, _isStaticCall: boolean): Promise<void>;
234
+ notifySetMinRevertibleSideEffectCounter(minRevertibleSideEffectCounter: number): Promise<void>;
235
+ isSideEffectCounterRevertible(sideEffectCounter: number): Promise<boolean>;
235
236
  private deriveCallContext;
236
237
  getDebugFunctionName(): Promise<string>;
237
- utilityEmitOffchainEffect(data: Fr[]): Promise<void>;
238
+ emitOffchainEffect(data: Fr[]): Promise<void>;
238
239
  }
239
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZV9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FxQixFQUFFLFlBQVksRUFDbkMsZ0JBQWdCLEVBQUUsZ0JBQWdCLEVBQ2xDLFFBQVEsRUFBRSxFQUFFLEVBQ1osaUJBQWlCLEVBQUUsTUFBTSxFQUN6QixZQUFZLEVBQUUsT0FBTzs7O09BMkZ0QjtJQWNEOzs7Ozs7T0FNRztJQUNJLGdDQUFnQyxDQUNyQyxzQkFBc0IsRUFBRSxZQUFZLEVBQ3BDLFlBQVksRUFBRSxFQUFFLEVBQ2hCLGtCQUFrQixFQUFFLE1BQU0sRUFDMUIsYUFBYSxFQUFFLE9BQU8saUJBSXZCO0lBRUQ7Ozs7OztPQU1HO0lBQ0ksbUNBQW1DLENBQ3hDLHNCQUFzQixFQUFFLFlBQVksRUFDcEMsWUFBWSxFQUFFLEVBQUUsRUFDaEIsa0JBQWtCLEVBQUUsTUFBTSxFQUMxQixhQUFhLEVBQUUsT0FBTyxpQkFJdkI7SUFFTSx1Q0FBdUMsQ0FBQyw4QkFBOEIsRUFBRSxNQUFNLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUVwRztJQUVNLDZCQUE2QixDQUFDLGlCQUFpQixFQUFFLE1BQU0sR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLENBRWhGO1lBU2EsaUJBQWlCO0lBYXhCLG9CQUFvQixvQkFFMUI7SUFFTSxrQkFBa0IsQ0FBQyxJQUFJLEVBQUUsRUFBRSxFQUFFLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUduRDtDQUNGIn0=
@@ -1 +1 @@
1
- {"version":3,"file":"private_execution_oracle.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/private_execution_oracle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAGpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,KAAK,gBAAgB,EAAiB,MAAM,yBAAyB,CAAC;AAC/E,O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,CAAC,GAAG,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,QAMjF;IAcD;;;;;;;;OAQG;IACG,0BAA0B,CAC9B,qBAAqB,EAAE,YAAY,EACnC,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,EAAE,EAAE,EACZ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,OAAO;;;OA4FtB;IAcD;;;;;;OAMG;IACI,uCAAuC,CAC5C,sBAAsB,EAAE,YAAY,EACpC,YAAY,EAAE,EAAE,EAChB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,OAAO,iBAIvB;IAED;;;;;;OAMG;IACI,0CAA0C,CAC/C,sBAAsB,EAAE,YAAY,EACpC,YAAY,EAAE,EAAE,EAChB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,OAAO,iBAIvB;IAEM,8CAA8C,CAAC,8BAA8B,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE3G;IAEM,oCAAoC,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEvF;YASa,iBAAiB;IAaxB,oBAAoB,oBAE1B;IAEM,yBAAyB,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAG1D;CACF"}
1
+ {"version":3,"file":"private_execution_oracle.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/private_execution_oracle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAGpD,OAAO,EAAE,KAAK,gBAAgB,EAAiB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,YAAY,EACjB,gBAAgB,EAChB,KAAK,YAAY,EAElB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC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AaxB,oBAAoB,oBAE1B;IAEM,kBAAkB,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAGnD;CACF"}
@@ -6,11 +6,10 @@ import { toACVMWitness } from '@aztec/simulator/client';
6
6
  import { FunctionSelector, countArgumentsSize } from '@aztec/stdlib/abi';
7
7
  import { siloNullifier } from '@aztec/stdlib/hash';
8
8
  import { PrivateContextInputs } from '@aztec/stdlib/kernel';
9
- import { DirectionalAppTaggingSecret } from '@aztec/stdlib/logs';
9
+ import { ExtendedDirectionalAppTaggingSecret } from '@aztec/stdlib/logs';
10
10
  import { Tag } from '@aztec/stdlib/logs';
11
11
  import { Note } from '@aztec/stdlib/note';
12
12
  import { CallContext, CountedContractClassLog, NoteAndSlot } from '@aztec/stdlib/tx';
13
- import { ensureContractSynced } from '../../contract_sync/index.js';
14
13
  import { NoteService } from '../../notes/note_service.js';
15
14
  import { syncSenderTaggingIndexes } from '../../tagging/index.js';
16
15
  import { pickNotes } from '../pick_notes.js';
@@ -19,34 +18,51 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
19
18
  /**
20
19
  * The execution oracle for the private part of a transaction.
21
20
  */ export class PrivateExecutionOracle extends UtilityExecutionOracle {
21
+ isPrivate = true;
22
+ /**
23
+ * New notes created during this execution.
24
+ * It's possible that a note in this list has been nullified (in the same or other executions) and doesn't exist in
25
+ * the ExecutionNoteCache and the final proof data. But we still include those notes in the execution result because
26
+ * their commitments are still in the public inputs of this execution.
27
+ * This information is only for references (currently used for tests), and is not used for any sort of constrains.
28
+ * Users can also use this to get a clearer idea of what's happened during a simulation.
29
+ */ newNotes = [];
30
+ noteHashNullifierCounterMap = new Map();
31
+ contractClassLogs = [];
32
+ offchainEffects = [];
33
+ nestedExecutionResults = [];
22
34
  argsHash;
23
35
  txContext;
24
36
  callContext;
25
- anchorBlockHeader;
26
37
  utilityExecutor;
27
38
  executionCache;
28
39
  noteCache;
29
40
  taggingIndexCache;
30
41
  senderTaggingStore;
42
+ contractSyncService;
31
43
  totalPublicCalldataCount;
32
44
  sideEffectCounter;
33
45
  senderForTags;
34
46
  simulator;
35
- isPrivate;
36
- /**
37
- * New notes created during this execution.
38
- * It's possible that a note in this list has been nullified (in the same or other executions) and doesn't exist in
39
- * the ExecutionNoteCache and the final proof data. But we still include those notes in the execution result because
40
- * their commitments are still in the public inputs of this execution.
41
- * This information is only for references (currently used for tests), and is not used for any sort of constrains.
42
- * Users can also use this to get a clearer idea of what's happened during a simulation.
43
- */ newNotes;
44
- noteHashNullifierCounterMap;
45
- contractClassLogs;
46
- offchainEffects;
47
- nestedExecutionResults;
48
- constructor(argsHash, txContext, callContext, /** Header of a block whose state is used during private execution (not the block the transaction is included in). */ anchorBlockHeader, /** Needed to trigger contract synchronization before nested calls */ utilityExecutor, /** List of transient auth witnesses to be used during this simulation */ authWitnesses, capsules, executionCache, noteCache, taggingIndexCache, contractStore, noteStore, keyStore, addressStore, aztecNode, senderTaggingStore, recipientTaggingStore, senderAddressBookStore, capsuleStore, privateEventStore, jobId, totalPublicCalldataCount = 0, sideEffectCounter = 0, log = createLogger('simulator:client_execution_context'), scopes, senderForTags, simulator){
49
- super(callContext.contractAddress, authWitnesses, capsules, anchorBlockHeader, contractStore, noteStore, keyStore, addressStore, aztecNode, recipientTaggingStore, senderAddressBookStore, capsuleStore, privateEventStore, jobId, log, scopes), this.argsHash = argsHash, this.txContext = txContext, this.callContext = callContext, this.anchorBlockHeader = anchorBlockHeader, this.utilityExecutor = utilityExecutor, this.executionCache = executionCache, this.noteCache = noteCache, this.taggingIndexCache = taggingIndexCache, this.senderTaggingStore = senderTaggingStore, this.totalPublicCalldataCount = totalPublicCalldataCount, this.sideEffectCounter = sideEffectCounter, this.senderForTags = senderForTags, this.simulator = simulator, this.isPrivate = true, this.newNotes = [], this.noteHashNullifierCounterMap = new Map(), this.contractClassLogs = [], this.offchainEffects = [], this.nestedExecutionResults = [];
47
+ constructor(args){
48
+ super({
49
+ ...args,
50
+ contractAddress: args.callContext.contractAddress,
51
+ log: args.log ?? createLogger('simulator:client_execution_context')
52
+ });
53
+ this.argsHash = args.argsHash;
54
+ this.txContext = args.txContext;
55
+ this.callContext = args.callContext;
56
+ this.utilityExecutor = args.utilityExecutor;
57
+ this.executionCache = args.executionCache;
58
+ this.noteCache = args.noteCache;
59
+ this.taggingIndexCache = args.taggingIndexCache;
60
+ this.senderTaggingStore = args.senderTaggingStore;
61
+ this.contractSyncService = args.contractSyncService;
62
+ this.totalPublicCalldataCount = args.totalPublicCalldataCount ?? 0;
63
+ this.sideEffectCounter = args.sideEffectCounter ?? 0;
64
+ this.senderForTags = args.senderForTags;
65
+ this.simulator = args.simulator;
50
66
  }
51
67
  getPrivateContextInputs() {
52
68
  return new PrivateContextInputs(this.callContext, this.anchorBlockHeader, this.txContext, this.sideEffectCounter);
@@ -110,7 +126,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
110
126
  *
111
127
  * The value persists through nested calls, meaning all calls down the stack will use the same
112
128
  * 'senderForTags' value (unless it is replaced).
113
- */ privateGetSenderForTags() {
129
+ */ getSenderForTags() {
114
130
  return Promise.resolve(this.senderForTags);
115
131
  }
116
132
  /**
@@ -123,7 +139,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
123
139
  * Account contracts typically set this value before calling other contracts. The value persists
124
140
  * through nested calls, meaning all calls down the stack will use the same 'senderForTags'
125
141
  * value (unless it is replaced by another call to this setter).
126
- */ privateSetSenderForTags(senderForTags) {
142
+ */ setSenderForTags(senderForTags) {
127
143
  this.senderForTags = senderForTags;
128
144
  return Promise.resolve();
129
145
  }
@@ -132,20 +148,20 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
132
148
  * @param sender - The address sending the log
133
149
  * @param recipient - The address receiving the log
134
150
  * @returns An app tag to be used in a log.
135
- */ async privateGetNextAppTagAsSender(sender, recipient) {
136
- const secret = await this.#calculateDirectionalAppTaggingSecret(this.contractAddress, sender, recipient);
137
- const index = await this.#getIndexToUseForSecret(secret);
138
- this.log.debug(`Incrementing tagging index for sender: ${sender}, recipient: ${recipient}, contract: ${this.contractAddress} to ${index}`);
139
- this.taggingIndexCache.setLastUsedIndex(secret, index);
151
+ */ async getNextAppTagAsSender(sender, recipient) {
152
+ const extendedSecret = await this.#calculateExtendedDirectionalAppTaggingSecret(this.contractAddress, sender, recipient);
153
+ const index = await this.#getIndexToUseForSecret(extendedSecret);
154
+ this.logger.debug(`Incrementing tagging index for sender: ${sender}, recipient: ${recipient}, contract: ${this.contractAddress} to ${index}`);
155
+ this.taggingIndexCache.setLastUsedIndex(extendedSecret, index);
140
156
  return Tag.compute({
141
- secret,
157
+ extendedSecret,
142
158
  index
143
159
  });
144
160
  }
145
- async #calculateDirectionalAppTaggingSecret(contractAddress, sender, recipient) {
161
+ async #calculateExtendedDirectionalAppTaggingSecret(contractAddress, sender, recipient) {
146
162
  const senderCompleteAddress = await this.getCompleteAddressOrFail(sender);
147
163
  const senderIvsk = await this.keyStore.getMasterIncomingViewingSecretKey(sender);
148
- return DirectionalAppTaggingSecret.compute(senderCompleteAddress, senderIvsk, recipient, contractAddress, recipient);
164
+ return ExtendedDirectionalAppTaggingSecret.compute(senderCompleteAddress, senderIvsk, recipient, contractAddress, recipient);
149
165
  }
150
166
  async #getIndexToUseForSecret(secret) {
151
167
  // If we have the tagging index in the cache, we use it. If not we obtain it from the execution data provider.
@@ -156,7 +172,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
156
172
  // This is a tagging secret we've not yet used in this tx, so first sync our store to make sure its indices
157
173
  // are up to date. We do this here because this store is not synced as part of the global sync because
158
174
  // that'd be wasteful as most tagging secrets are not used in each tx.
159
- await syncSenderTaggingIndexes(secret, this.contractAddress, this.aztecNode, this.senderTaggingStore, await this.anchorBlockHeader.hash(), this.jobId);
175
+ await syncSenderTaggingIndexes(secret, this.aztecNode, this.senderTaggingStore, await this.anchorBlockHeader.hash(), this.jobId);
160
176
  const lastUsedIndex = await this.senderTaggingStore.getLastUsedIndex(secret, this.jobId);
161
177
  // If lastUsedIndex is undefined, we've never used this secret, so start from 0
162
178
  // Otherwise, the next index to use is one past the last used index
@@ -167,29 +183,29 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
167
183
  * Store values in the execution cache.
168
184
  * @param values - Values to store.
169
185
  * @returns The hash of the values.
170
- */ privateStoreInExecutionCache(values, hash) {
186
+ */ storeInExecutionCache(values, hash) {
171
187
  return this.executionCache.store(values, hash);
172
188
  }
173
189
  /**
174
190
  * Gets values from the execution cache.
175
191
  * @param hash - Hash of the values.
176
192
  * @returns The values.
177
- */ privateLoadFromExecutionCache(hash) {
193
+ */ loadFromExecutionCache(hash) {
178
194
  const preimage = this.executionCache.getPreimage(hash);
179
195
  if (!preimage) {
180
196
  throw new Error(`Preimage for hash ${hash.toString()} not found in cache`);
181
197
  }
182
198
  return Promise.resolve(preimage);
183
199
  }
184
- async utilityCheckNullifierExists(innerNullifier) {
200
+ async checkNullifierExists(innerNullifier) {
185
201
  // This oracle must be overridden because while utility execution can only meaningfully check if a nullifier exists
186
202
  // in the synched block, during private execution there's also the possibility of it being pending, i.e. created
187
203
  // in the current transaction.
188
- this.log.debug(`Checking existence of inner nullifier ${innerNullifier}`, {
204
+ this.logger.debug(`Checking existence of inner nullifier ${innerNullifier}`, {
189
205
  contractAddress: this.contractAddress
190
206
  });
191
207
  const nullifier = (await siloNullifier(this.contractAddress, innerNullifier)).toBigInt();
192
- return this.noteCache.getNullifiers(this.contractAddress).has(nullifier) || await super.utilityCheckNullifierExists(innerNullifier);
208
+ return this.noteCache.getNullifiers(this.contractAddress).has(nullifier) || await super.checkNullifierExists(innerNullifier);
193
209
  }
194
210
  /**
195
211
  * Gets some notes for a storage slot.
@@ -211,7 +227,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
211
227
  * @param offset - The starting index for pagination.
212
228
  * @param status - The status of notes to fetch.
213
229
  * @returns Array of note data.
214
- */ async utilityGetNotes(owner, storageSlot, numSelects, selectByIndexes, selectByOffsets, selectByLengths, selectValues, selectComparators, sortByIndexes, sortByOffsets, sortByLengths, sortOrder, limit, offset, status) {
230
+ */ async getNotes(owner, storageSlot, numSelects, selectByIndexes, selectByOffsets, selectByLengths, selectValues, selectComparators, sortByIndexes, sortByOffsets, sortByLengths, sortOrder, limit, offset, status) {
215
231
  // Nullified pending notes are already removed from the list.
216
232
  const pendingNotes = this.noteCache.getNotes(this.callContext.contractAddress, owner, storageSlot);
217
233
  const pendingNullifiers = this.noteCache.getNullifiers(this.callContext.contractAddress);
@@ -242,7 +258,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
242
258
  limit,
243
259
  offset
244
260
  });
245
- this.log.debug(`Returning ${notes.length} notes for ${this.callContext.contractAddress} at ${storageSlot}: ${notes.map((n)=>`${n.noteNonce.toString()}:[${n.note.items.map((i)=>i.toString()).join(',')}]`).join(', ')}`);
261
+ this.logger.debug(`Returning ${notes.length} notes for ${this.callContext.contractAddress} at ${storageSlot}: ${notes.map((n)=>`${n.noteNonce.toString()}:[${n.note.items.map((i)=>i.toString()).join(',')}]`).join(', ')}`);
246
262
  return notes;
247
263
  }
248
264
  /**
@@ -255,8 +271,8 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
255
271
  * @param noteItems - The items to be included in a Note.
256
272
  * @param noteHash - A hash of the new note.
257
273
  * @returns
258
- */ privateNotifyCreatedNote(owner, storageSlot, randomness, noteTypeId, noteItems, noteHash, counter) {
259
- this.log.debug(`Notified of new note with inner hash ${noteHash}`, {
274
+ */ notifyCreatedNote(owner, storageSlot, randomness, noteTypeId, noteItems, noteHash, counter) {
275
+ this.logger.debug(`Notified of new note with inner hash ${noteHash}`, {
260
276
  contractAddress: this.callContext.contractAddress,
261
277
  storageSlot,
262
278
  randomness,
@@ -287,7 +303,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
287
303
  * within the current transaction/execution.
288
304
  * @param innerNullifier - The pending nullifier to add in the list (not yet siloed by contract address).
289
305
  * @param noteHash - A hash of the new note.
290
- */ async privateNotifyNullifiedNote(innerNullifier, noteHash, counter) {
306
+ */ async notifyNullifiedNote(innerNullifier, noteHash, counter) {
291
307
  const nullifiedNoteHashCounter = await this.noteCache.nullifyNote(this.callContext.contractAddress, innerNullifier, noteHash);
292
308
  if (nullifiedNoteHashCounter !== undefined) {
293
309
  this.noteHashNullifierCounterMap.set(nullifiedNoteHashCounter, counter);
@@ -298,19 +314,19 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
298
314
  * within the current transaction/execution.
299
315
  * @param innerNullifier - The pending nullifier to add in the list (not yet siloed by contract address).
300
316
  * @param noteHash - A hash of the new note.
301
- */ privateNotifyCreatedNullifier(innerNullifier) {
302
- this.log.debug(`Notified of new inner nullifier ${innerNullifier}`, {
317
+ */ notifyCreatedNullifier(innerNullifier) {
318
+ this.logger.debug(`Notified of new inner nullifier ${innerNullifier}`, {
303
319
  contractAddress: this.contractAddress
304
320
  });
305
321
  return this.noteCache.nullifierCreated(this.callContext.contractAddress, innerNullifier);
306
322
  }
307
323
  /**
308
- * Check if a nullifier has been emitted in the same transaction, i.e. if privateNotifyCreatedNullifier has been
324
+ * Check if a nullifier has been emitted in the same transaction, i.e. if notifyCreatedNullifier has been
309
325
  * called for this inner nullifier from the contract with the specified address.
310
326
  * @param innerNullifier - The inner nullifier to check.
311
327
  * @param contractAddress - Address of the contract that emitted the nullifier.
312
328
  * @returns A boolean indicating whether the nullifier is pending or not.
313
- */ async privateIsNullifierPending(innerNullifier, contractAddress) {
329
+ */ async isNullifierPending(innerNullifier, contractAddress) {
314
330
  const siloedNullifier = await siloNullifier(contractAddress, innerNullifier);
315
331
  const isNullifierPending = this.noteCache.getNullifiers(contractAddress).has(siloedNullifier.toBigInt());
316
332
  return Promise.resolve(isNullifierPending);
@@ -321,10 +337,10 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
321
337
  * keep the preimage in ts for later.
322
338
  * @param log - The contract class log to be emitted.
323
339
  * @param counter - The contract class log's counter.
324
- */ privateNotifyCreatedContractClassLog(log, counter) {
340
+ */ notifyCreatedContractClassLog(log, counter) {
325
341
  this.contractClassLogs.push(new CountedContractClassLog(log, counter));
326
342
  const text = log.toBuffer().toString('hex');
327
- this.log.verbose(`Emitted log from ContractClassRegistry: "${text.length > 100 ? text.slice(0, 100) + '...' : text}"`);
343
+ this.logger.verbose(`Emitted log from ContractClassRegistry: "${text.length > 100 ? text.slice(0, 100) + '...' : text}"`);
328
344
  }
329
345
  #checkValidStaticCall(childExecutionResult) {
330
346
  if (childExecutionResult.publicInputs.noteHashes.claimedLength > 0 || childExecutionResult.publicInputs.nullifiers.claimedLength > 0 || childExecutionResult.publicInputs.l2ToL1Msgs.claimedLength > 0 || childExecutionResult.publicInputs.privateLogs.claimedLength > 0 || childExecutionResult.publicInputs.contractClassLogsHashes.claimedLength > 0) {
@@ -339,20 +355,49 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
339
355
  * @param sideEffectCounter - The side effect counter at the start of the call.
340
356
  * @param isStaticCall - Whether the call is a static call.
341
357
  * @returns The execution result.
342
- */ async privateCallPrivateFunction(targetContractAddress, functionSelector, argsHash, sideEffectCounter, isStaticCall) {
358
+ */ async callPrivateFunction(targetContractAddress, functionSelector, argsHash, sideEffectCounter, isStaticCall) {
343
359
  if (!this.simulator) {
344
360
  // In practice it is only when creating inline private contexts in a Noir test using TXE that we create an
345
361
  // instance of this class without a simulator.
346
362
  throw new Error('No simulator provided, cannot perform a nested private call');
347
363
  }
348
364
  const simulatorSetupTimer = new Timer();
349
- this.log.debug(`Calling private function ${targetContractAddress}:${functionSelector} from ${this.callContext.contractAddress}`);
365
+ this.logger.debug(`Calling private function ${targetContractAddress}:${functionSelector} from ${this.callContext.contractAddress}`);
350
366
  isStaticCall = isStaticCall || this.callContext.isStaticCall;
351
- await ensureContractSynced(targetContractAddress, functionSelector, this.utilityExecutor, this.aztecNode, this.contractStore, this.noteStore, this.anchorBlockHeader, this.jobId);
367
+ await this.contractSyncService.ensureContractSynced(targetContractAddress, functionSelector, this.utilityExecutor, this.anchorBlockHeader, this.jobId, this.scopes);
352
368
  const targetArtifact = await this.contractStore.getFunctionArtifactWithDebugMetadata(targetContractAddress, functionSelector);
353
369
  const derivedTxContext = this.txContext.clone();
354
370
  const derivedCallContext = await this.deriveCallContext(targetContractAddress, targetArtifact, isStaticCall);
355
- const privateExecutionOracle = new PrivateExecutionOracle(argsHash, derivedTxContext, derivedCallContext, this.anchorBlockHeader, this.utilityExecutor, this.authWitnesses, this.capsules, this.executionCache, this.noteCache, this.taggingIndexCache, this.contractStore, this.noteStore, this.keyStore, this.addressStore, this.aztecNode, this.senderTaggingStore, this.recipientTaggingStore, this.senderAddressBookStore, this.capsuleStore, this.privateEventStore, this.jobId, this.totalPublicCalldataCount, sideEffectCounter, this.log, this.scopes, this.senderForTags, this.simulator);
371
+ const privateExecutionOracle = new PrivateExecutionOracle({
372
+ argsHash,
373
+ txContext: derivedTxContext,
374
+ callContext: derivedCallContext,
375
+ anchorBlockHeader: this.anchorBlockHeader,
376
+ utilityExecutor: this.utilityExecutor,
377
+ authWitnesses: this.authWitnesses,
378
+ capsules: this.capsules,
379
+ executionCache: this.executionCache,
380
+ noteCache: this.noteCache,
381
+ taggingIndexCache: this.taggingIndexCache,
382
+ contractStore: this.contractStore,
383
+ noteStore: this.noteStore,
384
+ keyStore: this.keyStore,
385
+ addressStore: this.addressStore,
386
+ aztecNode: this.aztecNode,
387
+ senderTaggingStore: this.senderTaggingStore,
388
+ recipientTaggingStore: this.recipientTaggingStore,
389
+ senderAddressBookStore: this.senderAddressBookStore,
390
+ capsuleStore: this.capsuleStore,
391
+ privateEventStore: this.privateEventStore,
392
+ contractSyncService: this.contractSyncService,
393
+ jobId: this.jobId,
394
+ totalPublicCalldataCount: this.totalPublicCalldataCount,
395
+ sideEffectCounter,
396
+ log: this.logger,
397
+ scopes: this.scopes,
398
+ senderForTags: this.senderForTags,
399
+ simulator: this.simulator
400
+ });
356
401
  const setupTime = simulatorSetupTimer.ms();
357
402
  const childExecutionResult = await executePrivateFunction(this.simulator, privateExecutionOracle, targetArtifact, targetContractAddress, functionSelector);
358
403
  if (isStaticCall) {
@@ -385,7 +430,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
385
430
  * @param calldataHash - The hash of the function selector and arguments.
386
431
  * @param sideEffectCounter - The side effect counter at the start of the call.
387
432
  * @param isStaticCall - Whether the call is a static call.
388
- */ privateNotifyEnqueuedPublicFunctionCall(_targetContractAddress, calldataHash, _sideEffectCounter, _isStaticCall) {
433
+ */ notifyEnqueuedPublicFunctionCall(_targetContractAddress, calldataHash, _sideEffectCounter, _isStaticCall) {
389
434
  this.#onNewPublicFunctionCall(calldataHash);
390
435
  return Promise.resolve();
391
436
  }
@@ -395,14 +440,14 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
395
440
  * @param argsHash - The arguments hash to pass to the function.
396
441
  * @param sideEffectCounter - The side effect counter at the start of the call.
397
442
  * @param isStaticCall - Whether the call is a static call.
398
- */ privateNotifySetPublicTeardownFunctionCall(_targetContractAddress, calldataHash, _sideEffectCounter, _isStaticCall) {
443
+ */ notifySetPublicTeardownFunctionCall(_targetContractAddress, calldataHash, _sideEffectCounter, _isStaticCall) {
399
444
  this.#onNewPublicFunctionCall(calldataHash);
400
445
  return Promise.resolve();
401
446
  }
402
- privateNotifySetMinRevertibleSideEffectCounter(minRevertibleSideEffectCounter) {
447
+ notifySetMinRevertibleSideEffectCounter(minRevertibleSideEffectCounter) {
403
448
  return this.noteCache.setMinRevertibleSideEffectCounter(minRevertibleSideEffectCounter);
404
449
  }
405
- privateIsSideEffectCounterRevertible(sideEffectCounter) {
450
+ isSideEffectCounterRevertible(sideEffectCounter) {
406
451
  return Promise.resolve(this.noteCache.isSideEffectCounterRevertible(sideEffectCounter));
407
452
  }
408
453
  /**
@@ -417,7 +462,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
417
462
  getDebugFunctionName() {
418
463
  return this.contractStore.getDebugFunctionName(this.contractAddress, this.callContext.functionSelector);
419
464
  }
420
- utilityEmitOffchainEffect(data) {
465
+ emitOffchainEffect(data) {
421
466
  this.offchainEffects.push({
422
467
  data
423
468
  });