@aztec/pxe 0.0.1-commit.d6f2b3f94 → 0.0.1-commit.db765a8

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 (161) 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/config/package_info.js +1 -1
  5. package/dest/contract_function_simulator/contract_function_simulator.d.ts +53 -29
  6. package/dest/contract_function_simulator/contract_function_simulator.d.ts.map +1 -1
  7. package/dest/contract_function_simulator/contract_function_simulator.js +175 -71
  8. package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts +5 -5
  9. package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts.map +1 -1
  10. package/dest/contract_function_simulator/execution_tagging_index_cache.js +3 -3
  11. package/dest/contract_function_simulator/noir-structs/event_validation_request.js +1 -1
  12. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts +2 -2
  13. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts.map +1 -1
  14. package/dest/contract_function_simulator/noir-structs/note_validation_request.js +1 -1
  15. package/dest/contract_function_simulator/oracle/interfaces.d.ts +44 -44
  16. package/dest/contract_function_simulator/oracle/interfaces.d.ts.map +1 -1
  17. package/dest/contract_function_simulator/oracle/oracle.d.ts +44 -44
  18. package/dest/contract_function_simulator/oracle/oracle.d.ts.map +1 -1
  19. package/dest/contract_function_simulator/oracle/oracle.js +132 -89
  20. package/dest/contract_function_simulator/oracle/private_execution.js +1 -1
  21. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts +54 -55
  22. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts.map +1 -1
  23. package/dest/contract_function_simulator/oracle/private_execution_oracle.js +98 -53
  24. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts +56 -40
  25. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts.map +1 -1
  26. package/dest/contract_function_simulator/oracle/utility_execution_oracle.js +67 -73
  27. package/dest/contract_logging.d.ts +22 -0
  28. package/dest/contract_logging.d.ts.map +1 -0
  29. package/dest/contract_logging.js +23 -0
  30. package/dest/contract_sync/contract_sync_service.d.ts +4 -2
  31. package/dest/contract_sync/contract_sync_service.d.ts.map +1 -1
  32. package/dest/contract_sync/contract_sync_service.js +34 -19
  33. package/dest/contract_sync/helpers.d.ts +3 -2
  34. package/dest/contract_sync/helpers.d.ts.map +1 -1
  35. package/dest/contract_sync/helpers.js +3 -3
  36. package/dest/debug/pxe_debug_utils.d.ts +5 -4
  37. package/dest/debug/pxe_debug_utils.d.ts.map +1 -1
  38. package/dest/debug/pxe_debug_utils.js +4 -4
  39. package/dest/entrypoints/client/bundle/index.d.ts +4 -1
  40. package/dest/entrypoints/client/bundle/index.d.ts.map +1 -1
  41. package/dest/entrypoints/client/bundle/index.js +3 -0
  42. package/dest/entrypoints/client/bundle/utils.d.ts +1 -1
  43. package/dest/entrypoints/client/bundle/utils.d.ts.map +1 -1
  44. package/dest/entrypoints/client/bundle/utils.js +9 -1
  45. package/dest/entrypoints/client/lazy/index.d.ts +4 -1
  46. package/dest/entrypoints/client/lazy/index.d.ts.map +1 -1
  47. package/dest/entrypoints/client/lazy/index.js +3 -0
  48. package/dest/entrypoints/client/lazy/utils.d.ts +1 -1
  49. package/dest/entrypoints/client/lazy/utils.d.ts.map +1 -1
  50. package/dest/entrypoints/client/lazy/utils.js +9 -1
  51. package/dest/entrypoints/server/index.d.ts +3 -1
  52. package/dest/entrypoints/server/index.d.ts.map +1 -1
  53. package/dest/entrypoints/server/index.js +2 -0
  54. package/dest/entrypoints/server/utils.js +9 -1
  55. package/dest/logs/log_service.d.ts +3 -2
  56. package/dest/logs/log_service.d.ts.map +1 -1
  57. package/dest/logs/log_service.js +9 -14
  58. package/dest/notes/note_service.d.ts +4 -3
  59. package/dest/notes/note_service.d.ts.map +1 -1
  60. package/dest/notes/note_service.js +3 -2
  61. package/dest/notes_filter.d.ts +25 -0
  62. package/dest/notes_filter.d.ts.map +1 -0
  63. package/dest/notes_filter.js +4 -0
  64. package/dest/oracle_version.d.ts +2 -2
  65. package/dest/oracle_version.js +3 -3
  66. package/dest/private_kernel/hints/compute_tx_expiration_timestamp.d.ts +4 -0
  67. package/dest/private_kernel/hints/compute_tx_expiration_timestamp.d.ts.map +1 -0
  68. package/dest/private_kernel/hints/{compute_tx_include_by_timestamp.js → compute_tx_expiration_timestamp.js} +12 -12
  69. package/dest/private_kernel/hints/index.d.ts +1 -1
  70. package/dest/private_kernel/hints/index.js +1 -1
  71. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts +4 -3
  72. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts.map +1 -1
  73. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.js +129 -68
  74. package/dest/private_kernel/hints/test_utils.d.ts +122 -0
  75. package/dest/private_kernel/hints/test_utils.d.ts.map +1 -0
  76. package/dest/private_kernel/hints/test_utils.js +203 -0
  77. package/dest/private_kernel/private_kernel_execution_prover.d.ts +1 -1
  78. package/dest/private_kernel/private_kernel_execution_prover.d.ts.map +1 -1
  79. package/dest/private_kernel/private_kernel_execution_prover.js +19 -11
  80. package/dest/private_kernel/private_kernel_oracle.d.ts +6 -2
  81. package/dest/private_kernel/private_kernel_oracle.d.ts.map +1 -1
  82. package/dest/private_kernel/private_kernel_oracle.js +7 -3
  83. package/dest/pxe.d.ts +60 -24
  84. package/dest/pxe.d.ts.map +1 -1
  85. package/dest/pxe.js +73 -58
  86. package/dest/storage/contract_store/contract_store.d.ts +42 -15
  87. package/dest/storage/contract_store/contract_store.d.ts.map +1 -1
  88. package/dest/storage/contract_store/contract_store.js +140 -64
  89. package/dest/storage/note_store/note_store.d.ts +3 -3
  90. package/dest/storage/note_store/note_store.d.ts.map +1 -1
  91. package/dest/storage/note_store/note_store.js +3 -4
  92. package/dest/storage/tagging_store/recipient_tagging_store.d.ts +6 -6
  93. package/dest/storage/tagging_store/recipient_tagging_store.d.ts.map +1 -1
  94. package/dest/storage/tagging_store/sender_tagging_store.d.ts +5 -5
  95. package/dest/storage/tagging_store/sender_tagging_store.d.ts.map +1 -1
  96. package/dest/storage/tagging_store/sender_tagging_store.js +4 -4
  97. package/dest/tagging/get_all_logs_by_tags.d.ts +1 -1
  98. package/dest/tagging/get_all_logs_by_tags.d.ts.map +1 -1
  99. package/dest/tagging/get_all_logs_by_tags.js +17 -3
  100. package/dest/tagging/index.d.ts +2 -2
  101. package/dest/tagging/index.d.ts.map +1 -1
  102. package/dest/tagging/index.js +1 -1
  103. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts +4 -5
  104. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts.map +1 -1
  105. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.js +7 -7
  106. package/dest/tagging/recipient_sync/utils/find_highest_indexes.js +2 -2
  107. package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts +6 -7
  108. package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts.map +1 -1
  109. package/dest/tagging/recipient_sync/utils/load_logs_for_range.js +12 -11
  110. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts +4 -8
  111. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts.map +1 -1
  112. package/dest/tagging/sender_sync/sync_sender_tagging_indexes.js +3 -6
  113. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts +4 -7
  114. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts.map +1 -1
  115. package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.js +14 -15
  116. package/package.json +16 -16
  117. package/src/access_scopes.ts +9 -0
  118. package/src/config/package_info.ts +1 -1
  119. package/src/contract_function_simulator/contract_function_simulator.ts +323 -131
  120. package/src/contract_function_simulator/execution_tagging_index_cache.ts +5 -5
  121. package/src/contract_function_simulator/noir-structs/event_validation_request.ts +1 -1
  122. package/src/contract_function_simulator/noir-structs/note_validation_request.ts +1 -1
  123. package/src/contract_function_simulator/oracle/interfaces.ts +43 -43
  124. package/src/contract_function_simulator/oracle/oracle.ts +135 -107
  125. package/src/contract_function_simulator/oracle/private_execution.ts +1 -1
  126. package/src/contract_function_simulator/oracle/private_execution_oracle.ts +122 -129
  127. package/src/contract_function_simulator/oracle/utility_execution_oracle.ts +107 -76
  128. package/src/contract_logging.ts +39 -0
  129. package/src/contract_sync/contract_sync_service.ts +49 -26
  130. package/src/contract_sync/helpers.ts +7 -2
  131. package/src/debug/pxe_debug_utils.ts +11 -9
  132. package/src/entrypoints/client/bundle/index.ts +3 -0
  133. package/src/entrypoints/client/bundle/utils.ts +9 -1
  134. package/src/entrypoints/client/lazy/index.ts +3 -0
  135. package/src/entrypoints/client/lazy/utils.ts +9 -1
  136. package/src/entrypoints/server/index.ts +2 -0
  137. package/src/entrypoints/server/utils.ts +7 -7
  138. package/src/logs/log_service.ts +17 -24
  139. package/src/notes/note_service.ts +4 -3
  140. package/src/notes_filter.ts +26 -0
  141. package/src/oracle_version.ts +3 -3
  142. package/src/private_kernel/hints/{compute_tx_include_by_timestamp.ts → compute_tx_expiration_timestamp.ts} +13 -13
  143. package/src/private_kernel/hints/index.ts +1 -1
  144. package/src/private_kernel/hints/private_kernel_reset_private_inputs_builder.ts +164 -117
  145. package/src/private_kernel/hints/test_utils.ts +325 -0
  146. package/src/private_kernel/private_kernel_execution_prover.ts +19 -12
  147. package/src/private_kernel/private_kernel_oracle.ts +7 -7
  148. package/src/pxe.ts +138 -101
  149. package/src/storage/contract_store/contract_store.ts +170 -71
  150. package/src/storage/note_store/note_store.ts +8 -5
  151. package/src/storage/tagging_store/recipient_tagging_store.ts +9 -5
  152. package/src/storage/tagging_store/sender_tagging_store.ts +8 -8
  153. package/src/tagging/get_all_logs_by_tags.ts +28 -4
  154. package/src/tagging/index.ts +1 -1
  155. package/src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts +7 -10
  156. package/src/tagging/recipient_sync/utils/find_highest_indexes.ts +2 -2
  157. package/src/tagging/recipient_sync/utils/load_logs_for_range.ts +10 -15
  158. package/src/tagging/sender_sync/sync_sender_tagging_indexes.ts +4 -9
  159. package/src/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.ts +11 -20
  160. package/dest/private_kernel/hints/compute_tx_include_by_timestamp.d.ts +0 -4
  161. package/dest/private_kernel/hints/compute_tx_include_by_timestamp.d.ts.map +0 -1
@@ -1,50 +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';
9
+ import { CallContext, CountedContractClassLog, NoteAndSlot, PrivateCallExecutionResult, type TxContext } from '@aztec/stdlib/tx';
10
+ import type { AccessScopes } from '../../access_scopes.js';
13
11
  import type { ContractSyncService } from '../../contract_sync/contract_sync_service.js';
14
- import type { AddressStore } from '../../storage/address_store/address_store.js';
15
- import type { CapsuleStore } from '../../storage/capsule_store/capsule_store.js';
16
- import type { ContractStore } from '../../storage/contract_store/contract_store.js';
17
- import type { NoteStore } from '../../storage/note_store/note_store.js';
18
- import type { PrivateEventStore } from '../../storage/private_event_store/private_event_store.js';
19
- import type { RecipientTaggingStore } from '../../storage/tagging_store/recipient_tagging_store.js';
20
- import type { SenderAddressBookStore } from '../../storage/tagging_store/sender_address_book_store.js';
21
12
  import type { SenderTaggingStore } from '../../storage/tagging_store/sender_tagging_store.js';
22
13
  import type { ExecutionNoteCache } from '../execution_note_cache.js';
23
14
  import { ExecutionTaggingIndexCache } from '../execution_tagging_index_cache.js';
24
15
  import type { HashedValuesCache } from '../hashed_values_cache.js';
25
16
  import type { IPrivateExecutionOracle, NoteData } from './interfaces.js';
26
- 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
+ };
27
35
  /**
28
36
  * The execution oracle for the private part of a transaction.
29
37
  */
30
38
  export declare class PrivateExecutionOracle extends UtilityExecutionOracle implements IPrivateExecutionOracle {
31
39
  #private;
32
- private readonly argsHash;
33
- private readonly txContext;
34
- private readonly callContext;
35
- /** Header of a block whose state is used during private execution (not the block the transaction is included in). */
36
- protected readonly anchorBlockHeader: BlockHeader;
37
- /** Needed to trigger contract synchronization before nested calls */
38
- private readonly utilityExecutor;
39
- private readonly executionCache;
40
- private readonly noteCache;
41
- private readonly taggingIndexCache;
42
- private readonly senderTaggingStore;
43
- private readonly contractSyncService;
44
- private totalPublicCalldataCount;
45
- protected sideEffectCounter: number;
46
- private senderForTags?;
47
- private simulator?;
48
40
  isPrivate: true;
49
41
  /**
50
42
  * New notes created during this execution.
@@ -59,13 +51,20 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
59
51
  private contractClassLogs;
60
52
  private offchainEffects;
61
53
  private nestedExecutionResults;
62
- constructor(argsHash: Fr, txContext: TxContext, callContext: CallContext,
63
- /** Header of a block whose state is used during private execution (not the block the transaction is included in). */
64
- anchorBlockHeader: BlockHeader,
65
- /** Needed to trigger contract synchronization before nested calls */
66
- utilityExecutor: (call: FunctionCall) => Promise<void>,
67
- /** List of transient auth witnesses to be used during this simulation */
68
- 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, contractSyncService: ContractSyncService, 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);
69
68
  getPrivateContextInputs(): PrivateContextInputs;
70
69
  /**
71
70
  * Writes the function inputs to the initial witness.
@@ -106,7 +105,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
106
105
  * The value persists through nested calls, meaning all calls down the stack will use the same
107
106
  * 'senderForTags' value (unless it is replaced).
108
107
  */
109
- privateGetSenderForTags(): Promise<AztecAddress | undefined>;
108
+ getSenderForTags(): Promise<AztecAddress | undefined>;
110
109
  /**
111
110
  * Set the sender for tags.
112
111
  *
@@ -118,27 +117,27 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
118
117
  * through nested calls, meaning all calls down the stack will use the same 'senderForTags'
119
118
  * value (unless it is replaced by another call to this setter).
120
119
  */
121
- privateSetSenderForTags(senderForTags: AztecAddress): Promise<void>;
120
+ setSenderForTags(senderForTags: AztecAddress): Promise<void>;
122
121
  /**
123
122
  * Returns the next app tag for a given sender and recipient pair.
124
123
  * @param sender - The address sending the log
125
124
  * @param recipient - The address receiving the log
126
125
  * @returns An app tag to be used in a log.
127
126
  */
128
- privateGetNextAppTagAsSender(sender: AztecAddress, recipient: AztecAddress): Promise<Tag>;
127
+ getNextAppTagAsSender(sender: AztecAddress, recipient: AztecAddress): Promise<Tag>;
129
128
  /**
130
129
  * Store values in the execution cache.
131
130
  * @param values - Values to store.
132
131
  * @returns The hash of the values.
133
132
  */
134
- privateStoreInExecutionCache(values: Fr[], hash: Fr): void;
133
+ storeInExecutionCache(values: Fr[], hash: Fr): void;
135
134
  /**
136
135
  * Gets values from the execution cache.
137
136
  * @param hash - Hash of the values.
138
137
  * @returns The values.
139
138
  */
140
- privateLoadFromExecutionCache(hash: Fr): Promise<Fr[]>;
141
- utilityCheckNullifierExists(innerNullifier: Fr): Promise<boolean>;
139
+ loadFromExecutionCache(hash: Fr): Promise<Fr[]>;
140
+ checkNullifierExists(innerNullifier: Fr): Promise<boolean>;
142
141
  /**
143
142
  * Gets some notes for a storage slot.
144
143
  *
@@ -160,7 +159,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
160
159
  * @param status - The status of notes to fetch.
161
160
  * @returns Array of note data.
162
161
  */
163
- 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[]>;
164
163
  /**
165
164
  * Keep track of the new note created during execution.
166
165
  * It can be used in subsequent calls (or transactions when chaining txs is possible).
@@ -172,29 +171,29 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
172
171
  * @param noteHash - A hash of the new note.
173
172
  * @returns
174
173
  */
175
- 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;
176
175
  /**
177
176
  * Adding a siloed nullifier into the current set of all pending nullifiers created
178
177
  * within the current transaction/execution.
179
178
  * @param innerNullifier - The pending nullifier to add in the list (not yet siloed by contract address).
180
179
  * @param noteHash - A hash of the new note.
181
180
  */
182
- privateNotifyNullifiedNote(innerNullifier: Fr, noteHash: Fr, counter: number): Promise<void>;
181
+ notifyNullifiedNote(innerNullifier: Fr, noteHash: Fr, counter: number): Promise<void>;
183
182
  /**
184
183
  * Adding a siloed nullifier into the current set of all pending nullifiers created
185
184
  * within the current transaction/execution.
186
185
  * @param innerNullifier - The pending nullifier to add in the list (not yet siloed by contract address).
187
186
  * @param noteHash - A hash of the new note.
188
187
  */
189
- privateNotifyCreatedNullifier(innerNullifier: Fr): Promise<void>;
188
+ notifyCreatedNullifier(innerNullifier: Fr): Promise<void>;
190
189
  /**
191
- * 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
192
191
  * called for this inner nullifier from the contract with the specified address.
193
192
  * @param innerNullifier - The inner nullifier to check.
194
193
  * @param contractAddress - Address of the contract that emitted the nullifier.
195
194
  * @returns A boolean indicating whether the nullifier is pending or not.
196
195
  */
197
- privateIsNullifierPending(innerNullifier: Fr, contractAddress: AztecAddress): Promise<boolean>;
196
+ isNullifierPending(innerNullifier: Fr, contractAddress: AztecAddress): Promise<boolean>;
198
197
  /**
199
198
  * Emit a contract class log.
200
199
  * This fn exists because we only carry a poseidon hash through the kernels, and need to
@@ -202,7 +201,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
202
201
  * @param log - The contract class log to be emitted.
203
202
  * @param counter - The contract class log's counter.
204
203
  */
205
- privateNotifyCreatedContractClassLog(log: ContractClassLog, counter: number): void;
204
+ notifyCreatedContractClassLog(log: ContractClassLog, counter: number): void;
206
205
  /**
207
206
  * Calls a private function as a nested execution.
208
207
  * @param targetContractAddress - The address of the contract to call.
@@ -212,7 +211,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
212
211
  * @param isStaticCall - Whether the call is a static call.
213
212
  * @returns The execution result.
214
213
  */
215
- 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<{
216
215
  endSideEffectCounter: Fr;
217
216
  returnsHash: Fr;
218
217
  }>;
@@ -223,7 +222,7 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
223
222
  * @param sideEffectCounter - The side effect counter at the start of the call.
224
223
  * @param isStaticCall - Whether the call is a static call.
225
224
  */
226
- privateNotifyEnqueuedPublicFunctionCall(_targetContractAddress: AztecAddress, calldataHash: Fr, _sideEffectCounter: number, _isStaticCall: boolean): Promise<void>;
225
+ notifyEnqueuedPublicFunctionCall(_targetContractAddress: AztecAddress, calldataHash: Fr, _sideEffectCounter: number, _isStaticCall: boolean): Promise<void>;
227
226
  /**
228
227
  * Verify relevant information when a public teardown function is set.
229
228
  * @param targetContractAddress - The address of the contract to call.
@@ -231,11 +230,11 @@ export declare class PrivateExecutionOracle extends UtilityExecutionOracle imple
231
230
  * @param sideEffectCounter - The side effect counter at the start of the call.
232
231
  * @param isStaticCall - Whether the call is a static call.
233
232
  */
234
- privateNotifySetPublicTeardownFunctionCall(_targetContractAddress: AztecAddress, calldataHash: Fr, _sideEffectCounter: number, _isStaticCall: boolean): Promise<void>;
235
- privateNotifySetMinRevertibleSideEffectCounter(minRevertibleSideEffectCounter: number): Promise<void>;
236
- 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>;
237
236
  private deriveCallContext;
238
237
  getDebugFunctionName(): Promise<string>;
239
- utilityEmitOffchainEffect(data: Fr[]): Promise<void>;
238
+ emitOffchainEffect(data: Fr[]): Promise<void>;
240
239
  }
241
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZV9leGVjdXRpb25fb3JhY2xlLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3RfZnVuY3Rpb25fc2ltdWxhdG9yL29yYWNsZS9wcml2YXRlX2V4ZWN1dGlvbl9vcmFjbGUudHMiXSwibmFt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VBQUUsZ0JBQWdCLEVBQ2xDLFFBQVEsRUFBRSxFQUFFLEVBQ1osaUJBQWlCLEVBQUUsTUFBTSxFQUN6QixZQUFZLEVBQUUsT0FBTzs7O09BMkZ0QjtJQWNEOzs7Ozs7T0FNRztJQUNJLGdDQUFnQyxDQUNyQyxzQkFBc0IsRUFBRSxZQUFZLEVBQ3BDLFlBQVksRUFBRSxFQUFFLEVBQ2hCLGtCQUFrQixFQUFFLE1BQU0sRUFDMUIsYUFBYSxFQUFFLE9BQU8saUJBSXZCO0lBRUQ7Ozs7OztPQU1HO0lBQ0ksbUNBQW1DLENBQ3hDLHNCQUFzQixFQUFFLFlBQVksRUFDcEMsWUFBWSxFQUFFLEVBQUUsRUFDaEIsa0JBQWtCLEVBQUUsTUFBTSxFQUMxQixhQUFhLEVBQUUsT0FBTyxpQkFJdkI7SUFFTSx1Q0FBdUMsQ0FBQyw4QkFBOEIsRUFBRSxNQUFNLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUVwRztJQUVNLDZCQUE2QixDQUFDLGlCQUFpQixFQUFFLE1BQU0sR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLENBRWhGO1lBU2EsaUJBQWlCO0lBYXhCLG9CQUFvQixvQkFFMUI7SUFFTSxrQkFBa0IsQ0FBQyxJQUFJLEVBQUUsRUFBRSxFQUFFLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUduRDtDQUNGIn0=
@@ -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,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,YAAY,E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E,eAAe,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,CAI1G;IAED;;;;;;OAMG;IACI,oCAAoC,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;;;OA0FtB;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,YAA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6BAA6B,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEhF;YASa,iBAAiB;IAaxB,oBAAoB,oBAE1B;IAEM,kBAAkB,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAGnD;CACF"}
@@ -6,7 +6,7 @@ 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';
@@ -18,10 +18,22 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
18
18
  /**
19
19
  * The execution oracle for the private part of a transaction.
20
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 = [];
21
34
  argsHash;
22
35
  txContext;
23
36
  callContext;
24
- anchorBlockHeader;
25
37
  utilityExecutor;
26
38
  executionCache;
27
39
  noteCache;
@@ -32,21 +44,25 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
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, contractSyncService, 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.contractSyncService = contractSyncService, 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 this.contractSyncService.ensureContractSynced(targetContractAddress, functionSelector, this.utilityExecutor, 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.contractSyncService, 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
  });