@aztec/pxe 0.0.1-commit.c7c42ec → 0.0.1-commit.d1f2d6c
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.
- package/dest/block_synchronizer/block_synchronizer.d.ts +10 -4
- package/dest/block_synchronizer/block_synchronizer.d.ts.map +1 -1
- package/dest/block_synchronizer/block_synchronizer.js +66 -18
- package/dest/config/index.d.ts +3 -1
- package/dest/config/index.d.ts.map +1 -1
- package/dest/config/index.js +17 -0
- package/dest/config/package_info.js +1 -1
- package/dest/contract_function_simulator/benchmarked_node.d.ts +9 -0
- package/dest/contract_function_simulator/benchmarked_node.d.ts.map +1 -0
- package/dest/contract_function_simulator/benchmarked_node.js +77 -0
- package/dest/contract_function_simulator/contract_function_simulator.d.ts +8 -9
- package/dest/contract_function_simulator/contract_function_simulator.d.ts.map +1 -1
- package/dest/contract_function_simulator/contract_function_simulator.js +33 -19
- package/dest/contract_function_simulator/execution_note_cache.d.ts +18 -9
- package/dest/contract_function_simulator/execution_note_cache.d.ts.map +1 -1
- package/dest/contract_function_simulator/execution_note_cache.js +45 -28
- package/dest/contract_function_simulator/index.d.ts +2 -2
- package/dest/contract_function_simulator/index.d.ts.map +1 -1
- package/dest/contract_function_simulator/index.js +1 -1
- package/dest/contract_function_simulator/noir-structs/event_validation_request.d.ts +3 -2
- package/dest/contract_function_simulator/noir-structs/event_validation_request.d.ts.map +1 -1
- package/dest/contract_function_simulator/noir-structs/event_validation_request.js +5 -2
- package/dest/contract_function_simulator/noir-structs/utility_context.d.ts +4 -10
- package/dest/contract_function_simulator/noir-structs/utility_context.d.ts.map +1 -1
- package/dest/contract_function_simulator/noir-structs/utility_context.js +7 -18
- package/dest/contract_function_simulator/oracle/interfaces.d.ts +14 -10
- package/dest/contract_function_simulator/oracle/interfaces.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.d.ts +3 -1
- package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/note_packing_utils.d.ts +6 -6
- package/dest/contract_function_simulator/oracle/note_packing_utils.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/note_packing_utils.js +8 -8
- package/dest/contract_function_simulator/oracle/oracle.d.ts +9 -7
- package/dest/contract_function_simulator/oracle/oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/oracle.js +41 -30
- package/dest/contract_function_simulator/oracle/private_execution.d.ts +8 -13
- package/dest/contract_function_simulator/oracle/private_execution.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/private_execution.js +21 -11
- package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts +16 -18
- package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/private_execution_oracle.js +25 -38
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts +26 -16
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.js +71 -71
- package/dest/debug/pxe_debug_utils.d.ts +1 -1
- package/dest/debug/pxe_debug_utils.d.ts.map +1 -1
- package/dest/debug/pxe_debug_utils.js +2 -1
- package/dest/entrypoints/client/bundle/utils.d.ts +1 -1
- package/dest/entrypoints/client/bundle/utils.d.ts.map +1 -1
- package/dest/entrypoints/client/bundle/utils.js +10 -1
- package/dest/entrypoints/client/lazy/utils.d.ts +1 -1
- package/dest/entrypoints/client/lazy/utils.d.ts.map +1 -1
- package/dest/entrypoints/client/lazy/utils.js +10 -1
- package/dest/entrypoints/pxe_creation_options.d.ts +3 -2
- package/dest/entrypoints/pxe_creation_options.d.ts.map +1 -1
- package/dest/entrypoints/server/index.d.ts +2 -1
- package/dest/entrypoints/server/index.d.ts.map +1 -1
- package/dest/entrypoints/server/index.js +1 -0
- package/dest/entrypoints/server/utils.d.ts +1 -1
- package/dest/entrypoints/server/utils.d.ts.map +1 -1
- package/dest/entrypoints/server/utils.js +11 -7
- package/dest/events/event_service.d.ts +4 -3
- package/dest/events/event_service.d.ts.map +1 -1
- package/dest/events/event_service.js +17 -19
- package/dest/events/private_event_filter_validator.d.ts +5 -5
- package/dest/events/private_event_filter_validator.d.ts.map +1 -1
- package/dest/events/private_event_filter_validator.js +5 -6
- package/dest/job_coordinator/job_coordinator.d.ts +74 -0
- package/dest/job_coordinator/job_coordinator.d.ts.map +1 -0
- package/dest/job_coordinator/job_coordinator.js +93 -0
- package/dest/logs/log_service.d.ts +3 -2
- package/dest/logs/log_service.d.ts.map +1 -1
- package/dest/logs/log_service.js +22 -13
- package/dest/notes/note_service.d.ts +5 -4
- package/dest/notes/note_service.d.ts.map +1 -1
- package/dest/notes/note_service.js +31 -34
- package/dest/oracle_version.d.ts +3 -3
- package/dest/oracle_version.d.ts.map +1 -1
- package/dest/oracle_version.js +4 -3
- package/dest/private_kernel/hints/index.d.ts +2 -2
- package/dest/private_kernel/hints/index.d.ts.map +1 -1
- package/dest/private_kernel/hints/index.js +1 -1
- package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts +28 -0
- package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts.map +1 -0
- package/dest/private_kernel/hints/{build_private_kernel_reset_private_inputs.js → private_kernel_reset_private_inputs_builder.js} +13 -7
- package/dest/private_kernel/private_kernel_execution_prover.d.ts +1 -1
- package/dest/private_kernel/private_kernel_execution_prover.d.ts.map +1 -1
- package/dest/private_kernel/private_kernel_execution_prover.js +4 -5
- package/dest/private_kernel/private_kernel_oracle.d.ts +24 -28
- package/dest/private_kernel/private_kernel_oracle.d.ts.map +1 -1
- package/dest/private_kernel/private_kernel_oracle.js +90 -2
- package/dest/pxe.d.ts +8 -36
- package/dest/pxe.d.ts.map +1 -1
- package/dest/pxe.js +71 -90
- package/dest/storage/capsule_store/capsule_store.d.ts +24 -9
- package/dest/storage/capsule_store/capsule_store.d.ts.map +1 -1
- package/dest/storage/capsule_store/capsule_store.js +132 -23
- package/dest/storage/contract_store/contract_store.d.ts +2 -1
- package/dest/storage/contract_store/contract_store.d.ts.map +1 -1
- package/dest/storage/contract_store/contract_store.js +12 -0
- package/dest/storage/note_store/note_store.d.ts +45 -56
- package/dest/storage/note_store/note_store.d.ts.map +1 -1
- package/dest/storage/note_store/note_store.js +244 -263
- package/dest/storage/note_store/stored_note.d.ts +16 -0
- package/dest/storage/note_store/stored_note.d.ts.map +1 -0
- package/dest/storage/note_store/stored_note.js +43 -0
- package/dest/storage/private_event_store/private_event_store.d.ts +47 -7
- package/dest/storage/private_event_store/private_event_store.d.ts.map +1 -1
- package/dest/storage/private_event_store/private_event_store.js +203 -68
- package/dest/storage/private_event_store/stored_private_event.d.ts +23 -0
- package/dest/storage/private_event_store/stored_private_event.d.ts.map +1 -0
- package/dest/storage/private_event_store/stored_private_event.js +56 -0
- package/dest/storage/tagging_store/recipient_tagging_store.d.ts +15 -8
- package/dest/storage/tagging_store/recipient_tagging_store.d.ts.map +1 -1
- package/dest/storage/tagging_store/recipient_tagging_store.js +69 -12
- package/dest/storage/tagging_store/sender_tagging_store.d.ts +19 -9
- package/dest/storage/tagging_store/sender_tagging_store.d.ts.map +1 -1
- package/dest/storage/tagging_store/sender_tagging_store.js +110 -28
- package/dest/tagging/constants.d.ts +2 -0
- package/dest/tagging/constants.d.ts.map +1 -0
- package/dest/tagging/constants.js +10 -0
- package/dest/tagging/get_all_logs_by_tags.d.ts +24 -0
- package/dest/tagging/get_all_logs_by_tags.d.ts.map +1 -0
- package/dest/tagging/get_all_logs_by_tags.js +46 -0
- package/dest/tagging/index.d.ts +3 -2
- package/dest/tagging/index.d.ts.map +1 -1
- package/dest/tagging/index.js +2 -10
- package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts +3 -2
- package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts.map +1 -1
- package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.js +8 -8
- package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts +3 -2
- package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts.map +1 -1
- package/dest/tagging/recipient_sync/utils/load_logs_for_range.js +5 -2
- package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts +3 -2
- package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts.map +1 -1
- package/dest/tagging/sender_sync/sync_sender_tagging_indexes.js +8 -8
- package/dest/tagging/sender_sync/utils/get_status_change_of_pending.d.ts +1 -1
- package/dest/tagging/sender_sync/utils/get_status_change_of_pending.d.ts.map +1 -1
- package/dest/tagging/sender_sync/utils/get_status_change_of_pending.js +5 -8
- package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts +5 -2
- package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts.map +1 -1
- package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.js +10 -5
- package/package.json +18 -18
- package/src/block_synchronizer/block_synchronizer.ts +77 -20
- package/src/config/index.ts +14 -0
- package/src/config/package_info.ts +1 -1
- package/src/contract_function_simulator/benchmarked_node.ts +103 -0
- package/src/contract_function_simulator/contract_function_simulator.ts +39 -21
- package/src/contract_function_simulator/execution_note_cache.ts +44 -25
- package/src/contract_function_simulator/index.ts +1 -1
- package/src/contract_function_simulator/noir-structs/event_validation_request.ts +4 -0
- package/src/contract_function_simulator/noir-structs/utility_context.ts +6 -25
- package/src/contract_function_simulator/oracle/interfaces.ts +19 -9
- package/src/contract_function_simulator/oracle/note_packing_utils.ts +10 -10
- package/src/contract_function_simulator/oracle/oracle.ts +54 -39
- package/src/contract_function_simulator/oracle/private_execution.ts +30 -20
- package/src/contract_function_simulator/oracle/private_execution_oracle.ts +44 -42
- package/src/contract_function_simulator/oracle/utility_execution_oracle.ts +89 -75
- package/src/debug/pxe_debug_utils.ts +2 -1
- package/src/entrypoints/client/bundle/utils.ts +7 -1
- package/src/entrypoints/client/lazy/utils.ts +7 -2
- package/src/entrypoints/pxe_creation_options.ts +2 -1
- package/src/entrypoints/server/index.ts +1 -0
- package/src/entrypoints/server/utils.ts +11 -15
- package/src/events/event_service.ts +17 -21
- package/src/events/private_event_filter_validator.ts +3 -5
- package/src/job_coordinator/job_coordinator.ts +149 -0
- package/src/logs/log_service.ts +28 -9
- package/src/notes/note_service.ts +38 -40
- package/src/oracle_version.ts +4 -3
- package/src/private_kernel/hints/index.ts +1 -1
- package/src/private_kernel/hints/{build_private_kernel_reset_private_inputs.ts → private_kernel_reset_private_inputs_builder.ts} +33 -22
- package/src/private_kernel/private_kernel_execution_prover.ts +3 -5
- package/src/private_kernel/private_kernel_oracle.ts +116 -36
- package/src/pxe.ts +125 -119
- package/src/storage/capsule_store/capsule_store.ts +159 -23
- package/src/storage/contract_store/contract_store.ts +20 -0
- package/src/storage/note_store/note_store.ts +286 -317
- package/src/storage/note_store/stored_note.ts +48 -0
- package/src/storage/private_event_store/private_event_store.ts +277 -76
- package/src/storage/private_event_store/stored_private_event.ts +73 -0
- package/src/storage/tagging_store/recipient_tagging_store.ts +89 -13
- package/src/storage/tagging_store/sender_tagging_store.ts +129 -28
- package/src/tagging/constants.ts +10 -0
- package/src/tagging/get_all_logs_by_tags.ts +68 -0
- package/src/tagging/index.ts +2 -11
- package/src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts +21 -7
- package/src/tagging/recipient_sync/utils/load_logs_for_range.ts +7 -1
- package/src/tagging/sender_sync/sync_sender_tagging_indexes.ts +10 -7
- package/src/tagging/sender_sync/utils/get_status_change_of_pending.ts +5 -13
- package/src/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.ts +16 -4
- package/dest/contract_function_simulator/proxied_node.d.ts +0 -9
- package/dest/contract_function_simulator/proxied_node.d.ts.map +0 -1
- package/dest/contract_function_simulator/proxied_node.js +0 -27
- package/dest/private_kernel/hints/build_private_kernel_reset_private_inputs.d.ts +0 -28
- package/dest/private_kernel/hints/build_private_kernel_reset_private_inputs.d.ts.map +0 -1
- package/dest/private_kernel/private_kernel_oracle_impl.d.ts +0 -46
- package/dest/private_kernel/private_kernel_oracle_impl.d.ts.map +0 -1
- package/dest/private_kernel/private_kernel_oracle_impl.js +0 -86
- package/dest/public_storage/public_storage_service.d.ts +0 -24
- package/dest/public_storage/public_storage_service.d.ts.map +0 -1
- package/dest/public_storage/public_storage_service.js +0 -26
- package/dest/tree_membership/tree_membership_service.d.ts +0 -52
- package/dest/tree_membership/tree_membership_service.d.ts.map +0 -1
- package/dest/tree_membership/tree_membership_service.js +0 -84
- package/src/contract_function_simulator/proxied_node.ts +0 -33
- package/src/private_kernel/private_kernel_oracle_impl.ts +0 -133
- package/src/public_storage/public_storage_service.ts +0 -33
- package/src/tree_membership/tree_membership_service.ts +0 -112
|
@@ -4,7 +4,8 @@ import { createLogger } from '@aztec/foundation/log';
|
|
|
4
4
|
import { Timer } from '@aztec/foundation/timer';
|
|
5
5
|
import { toACVMWitness } from '@aztec/simulator/client';
|
|
6
6
|
import { FunctionSelector, countArgumentsSize } from '@aztec/stdlib/abi';
|
|
7
|
-
import {
|
|
7
|
+
import { L2BlockHash } from '@aztec/stdlib/block';
|
|
8
|
+
import { siloNullifier } from '@aztec/stdlib/hash';
|
|
8
9
|
import { PrivateContextInputs } from '@aztec/stdlib/kernel';
|
|
9
10
|
import { DirectionalAppTaggingSecret } from '@aztec/stdlib/logs';
|
|
10
11
|
import { Tag } from '@aztec/stdlib/logs';
|
|
@@ -13,7 +14,7 @@ import { CallContext, CountedContractClassLog, NoteAndSlot } from '@aztec/stdlib
|
|
|
13
14
|
import { NoteService } from '../../notes/note_service.js';
|
|
14
15
|
import { syncSenderTaggingIndexes } from '../../tagging/index.js';
|
|
15
16
|
import { pickNotes } from '../pick_notes.js';
|
|
16
|
-
import {
|
|
17
|
+
import { ensureContractSynced, executePrivateFunction } from './private_execution.js';
|
|
17
18
|
import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
18
19
|
/**
|
|
19
20
|
* The execution oracle for the private part of a transaction.
|
|
@@ -22,6 +23,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
22
23
|
txContext;
|
|
23
24
|
callContext;
|
|
24
25
|
anchorBlockHeader;
|
|
26
|
+
utilityExecutor;
|
|
25
27
|
executionCache;
|
|
26
28
|
noteCache;
|
|
27
29
|
taggingIndexCache;
|
|
@@ -39,21 +41,12 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
39
41
|
* This information is only for references (currently used for tests), and is not used for any sort of constrains.
|
|
40
42
|
* Users can also use this to get a clearer idea of what's happened during a simulation.
|
|
41
43
|
*/ newNotes;
|
|
42
|
-
/**
|
|
43
|
-
* Notes from previous transactions that are returned to the oracle call `getNotes` during this execution.
|
|
44
|
-
* The mapping maps from the unique siloed note hash to the index for notes created in private executions.
|
|
45
|
-
* It maps from siloed note hash to the index for notes created by public functions.
|
|
46
|
-
*
|
|
47
|
-
* They are not part of the ExecutionNoteCache and being forwarded to nested contexts via `extend()`
|
|
48
|
-
* because these notes are meant to be maintained on a per-call basis
|
|
49
|
-
* They should act as references for the read requests output by an app circuit via public inputs.
|
|
50
|
-
*/ noteHashLeafIndexMap;
|
|
51
44
|
noteHashNullifierCounterMap;
|
|
52
45
|
contractClassLogs;
|
|
53
46
|
offchainEffects;
|
|
54
47
|
nestedExecutionResults;
|
|
55
|
-
constructor(argsHash, txContext, callContext, /** Header of a block whose state is used during private execution (not the block the transaction is included in). */ anchorBlockHeader, /** List of transient auth witnesses to be used during this simulation */ authWitnesses, capsules, executionCache, noteCache, taggingIndexCache, contractStore, noteStore, keyStore, addressStore, aztecNode, anchorBlockStore, senderTaggingStore, recipientTaggingStore, senderAddressBookStore, capsuleStore, privateEventStore, totalPublicCalldataCount = 0, sideEffectCounter = 0, log = createLogger('simulator:client_execution_context'), scopes, senderForTags, simulator){
|
|
56
|
-
super(callContext.contractAddress, authWitnesses, capsules, anchorBlockHeader, contractStore, noteStore, keyStore, addressStore, aztecNode, anchorBlockStore, recipientTaggingStore, senderAddressBookStore, capsuleStore, privateEventStore, log, scopes), this.argsHash = argsHash, this.txContext = txContext, this.callContext = callContext, this.anchorBlockHeader = anchorBlockHeader, 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.
|
|
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, anchorBlockStore, 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, anchorBlockStore, 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 = [];
|
|
57
50
|
}
|
|
58
51
|
getPrivateContextInputs() {
|
|
59
52
|
return new PrivateContextInputs(this.callContext, this.anchorBlockHeader, this.txContext, this.sideEffectCounter);
|
|
@@ -81,12 +74,6 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
81
74
|
return toACVMWitness(0, fields);
|
|
82
75
|
}
|
|
83
76
|
/**
|
|
84
|
-
* The KernelProver will use this to fully populate witnesses and provide hints to the kernel circuit
|
|
85
|
-
* regarding which note hash each settled read request corresponds to.
|
|
86
|
-
*/ getNoteHashLeafIndexMap() {
|
|
87
|
-
return this.noteHashLeafIndexMap;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
77
|
* Get the data for the newly created notes.
|
|
91
78
|
*/ getNewNotes() {
|
|
92
79
|
return this.newNotes;
|
|
@@ -169,8 +156,9 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
169
156
|
// This is a tagging secret we've not yet used in this tx, so first sync our store to make sure its indices
|
|
170
157
|
// are up to date. We do this here because this store is not synced as part of the global sync because
|
|
171
158
|
// that'd be wasteful as most tagging secrets are not used in each tx.
|
|
172
|
-
|
|
173
|
-
|
|
159
|
+
const anchorBlockHash = L2BlockHash.fromField(await this.anchorBlockHeader.hash());
|
|
160
|
+
await syncSenderTaggingIndexes(secret, this.contractAddress, this.aztecNode, this.senderTaggingStore, anchorBlockHash, this.jobId);
|
|
161
|
+
const lastUsedIndex = await this.senderTaggingStore.getLastUsedIndex(secret, this.jobId);
|
|
174
162
|
// If lastUsedIndex is undefined, we've never used this secret, so start from 0
|
|
175
163
|
// Otherwise, the next index to use is one past the last used index
|
|
176
164
|
return lastUsedIndex === undefined ? 0 : lastUsedIndex + 1;
|
|
@@ -228,7 +216,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
228
216
|
// Nullified pending notes are already removed from the list.
|
|
229
217
|
const pendingNotes = this.noteCache.getNotes(this.callContext.contractAddress, owner, storageSlot);
|
|
230
218
|
const pendingNullifiers = this.noteCache.getNullifiers(this.callContext.contractAddress);
|
|
231
|
-
const noteService = new NoteService(this.noteStore, this.aztecNode, this.anchorBlockStore);
|
|
219
|
+
const noteService = new NoteService(this.noteStore, this.aztecNode, this.anchorBlockStore, this.jobId);
|
|
232
220
|
const dbNotes = await noteService.getNotes(this.callContext.contractAddress, owner, storageSlot, status, this.scopes);
|
|
233
221
|
const dbNotesFiltered = dbNotes.filter((n)=>!pendingNullifiers.has(n.siloedNullifier.value));
|
|
234
222
|
const notes = pickNotes([
|
|
@@ -256,19 +244,6 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
256
244
|
offset
|
|
257
245
|
});
|
|
258
246
|
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(', ')}`);
|
|
259
|
-
const noteHashesAndIndexes = await Promise.all(notes.map(async (n)=>{
|
|
260
|
-
if (n.index !== undefined) {
|
|
261
|
-
const siloedNoteHash = await siloNoteHash(n.contractAddress, n.noteHash);
|
|
262
|
-
const uniqueNoteHash = await computeUniqueNoteHash(n.noteNonce, siloedNoteHash);
|
|
263
|
-
return {
|
|
264
|
-
hash: uniqueNoteHash,
|
|
265
|
-
index: n.index
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
}));
|
|
269
|
-
noteHashesAndIndexes.filter((n)=>n !== undefined).forEach((n)=>{
|
|
270
|
-
this.noteHashLeafIndexMap.set(n.hash.toBigInt(), n.index);
|
|
271
|
-
});
|
|
272
247
|
return notes;
|
|
273
248
|
}
|
|
274
249
|
/**
|
|
@@ -298,7 +273,8 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
298
273
|
noteNonce: Fr.ZERO,
|
|
299
274
|
note,
|
|
300
275
|
siloedNullifier: undefined,
|
|
301
|
-
noteHash
|
|
276
|
+
noteHash,
|
|
277
|
+
isPending: true
|
|
302
278
|
}, counter);
|
|
303
279
|
this.newNotes.push(NoteAndSlot.from({
|
|
304
280
|
note,
|
|
@@ -330,6 +306,17 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
330
306
|
return this.noteCache.nullifierCreated(this.callContext.contractAddress, innerNullifier);
|
|
331
307
|
}
|
|
332
308
|
/**
|
|
309
|
+
* Check if a nullifier has been emitted in the same transaction, i.e. if privateNotifyCreatedNullifier has been
|
|
310
|
+
* called for this inner nullifier from the contract with the specified address.
|
|
311
|
+
* @param innerNullifier - The inner nullifier to check.
|
|
312
|
+
* @param contractAddress - Address of the contract that emitted the nullifier.
|
|
313
|
+
* @returns A boolean indicating whether the nullifier is pending or not.
|
|
314
|
+
*/ async privateIsNullifierPending(innerNullifier, contractAddress) {
|
|
315
|
+
const siloedNullifier = await siloNullifier(contractAddress, innerNullifier);
|
|
316
|
+
const isNullifierPending = this.noteCache.getNullifiers(contractAddress).has(siloedNullifier.toBigInt());
|
|
317
|
+
return Promise.resolve(isNullifierPending);
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
333
320
|
* Emit a contract class log.
|
|
334
321
|
* This fn exists because we only carry a poseidon hash through the kernels, and need to
|
|
335
322
|
* keep the preimage in ts for later.
|
|
@@ -362,11 +349,11 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
362
349
|
const simulatorSetupTimer = new Timer();
|
|
363
350
|
this.log.debug(`Calling private function ${targetContractAddress}:${functionSelector} from ${this.callContext.contractAddress}`);
|
|
364
351
|
isStaticCall = isStaticCall || this.callContext.isStaticCall;
|
|
365
|
-
await
|
|
352
|
+
await ensureContractSynced(targetContractAddress, functionSelector, this.utilityExecutor, this.aztecNode, this.contractStore, this.anchorBlockHeader);
|
|
366
353
|
const targetArtifact = await this.contractStore.getFunctionArtifactWithDebugMetadata(targetContractAddress, functionSelector);
|
|
367
354
|
const derivedTxContext = this.txContext.clone();
|
|
368
355
|
const derivedCallContext = await this.deriveCallContext(targetContractAddress, targetArtifact, isStaticCall);
|
|
369
|
-
const privateExecutionOracle = new PrivateExecutionOracle(argsHash, derivedTxContext, derivedCallContext, this.anchorBlockHeader, this.authWitnesses, this.capsules, this.executionCache, this.noteCache, this.taggingIndexCache, this.contractStore, this.noteStore, this.keyStore, this.addressStore, this.aztecNode, this.anchorBlockStore, this.senderTaggingStore, this.recipientTaggingStore, this.senderAddressBookStore, this.capsuleStore, this.privateEventStore, this.totalPublicCalldataCount, sideEffectCounter, this.log, this.scopes, this.senderForTags, this.simulator);
|
|
356
|
+
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.anchorBlockStore, this.senderTaggingStore, this.recipientTaggingStore, this.senderAddressBookStore, this.capsuleStore, this.privateEventStore, this.jobId, this.totalPublicCalldataCount, sideEffectCounter, this.log, this.scopes, this.senderForTags, this.simulator);
|
|
370
357
|
const setupTime = simulatorSetupTimer.ms();
|
|
371
358
|
const childExecutionResult = await executePrivateFunction(this.simulator, privateExecutionOracle, targetArtifact, targetContractAddress, functionSelector);
|
|
372
359
|
if (isStaticCall) {
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import type { ARCHIVE_HEIGHT, NOTE_HASH_TREE_HEIGHT } from '@aztec/constants';
|
|
1
2
|
import type { BlockNumber } from '@aztec/foundation/branded-types';
|
|
2
3
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
4
|
import { Point } from '@aztec/foundation/curves/grumpkin';
|
|
5
|
+
import type { MembershipWitness } from '@aztec/foundation/trees';
|
|
4
6
|
import type { KeyStore } from '@aztec/key-store';
|
|
5
7
|
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
6
8
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
9
|
+
import { L2BlockHash } from '@aztec/stdlib/block';
|
|
7
10
|
import type { CompleteAddress, ContractInstance } from '@aztec/stdlib/contract';
|
|
8
11
|
import type { AztecNode } from '@aztec/stdlib/interfaces/server';
|
|
9
12
|
import type { KeyValidationRequest } from '@aztec/stdlib/kernel';
|
|
10
13
|
import type { NoteStatus } from '@aztec/stdlib/note';
|
|
11
|
-
import {
|
|
14
|
+
import { type NullifierMembershipWitness, PublicDataWitness } from '@aztec/stdlib/trees';
|
|
12
15
|
import type { BlockHeader, Capsule } from '@aztec/stdlib/tx';
|
|
13
16
|
import type { AddressStore } from '../../storage/address_store/address_store.js';
|
|
14
17
|
import type { AnchorBlockStore } from '../../storage/anchor_block_store/anchor_block_store.js';
|
|
@@ -40,6 +43,7 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
40
43
|
protected readonly senderAddressBookStore: SenderAddressBookStore;
|
|
41
44
|
protected readonly capsuleStore: CapsuleStore;
|
|
42
45
|
protected readonly privateEventStore: PrivateEventStore;
|
|
46
|
+
protected readonly jobId: string;
|
|
43
47
|
protected log: import("@aztec/foundation/log").Logger;
|
|
44
48
|
protected readonly scopes?: AztecAddress[] | undefined;
|
|
45
49
|
isMisc: true;
|
|
@@ -47,7 +51,7 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
47
51
|
private aztecNrDebugLog;
|
|
48
52
|
constructor(contractAddress: AztecAddress,
|
|
49
53
|
/** List of transient auth witnesses to be used during this simulation */
|
|
50
|
-
authWitnesses: AuthWitness[], capsules: Capsule[], anchorBlockHeader: BlockHeader, contractStore: ContractStore, noteStore: NoteStore, keyStore: KeyStore, addressStore: AddressStore, aztecNode: AztecNode, anchorBlockStore: AnchorBlockStore, recipientTaggingStore: RecipientTaggingStore, senderAddressBookStore: SenderAddressBookStore, capsuleStore: CapsuleStore, privateEventStore: PrivateEventStore, log?: import("@aztec/foundation/log").Logger, scopes?: AztecAddress[] | undefined);
|
|
54
|
+
authWitnesses: AuthWitness[], capsules: Capsule[], anchorBlockHeader: BlockHeader, contractStore: ContractStore, noteStore: NoteStore, keyStore: KeyStore, addressStore: AddressStore, aztecNode: AztecNode, anchorBlockStore: AnchorBlockStore, recipientTaggingStore: RecipientTaggingStore, senderAddressBookStore: SenderAddressBookStore, capsuleStore: CapsuleStore, privateEventStore: PrivateEventStore, jobId: string, log?: import("@aztec/foundation/log").Logger, scopes?: AztecAddress[] | undefined);
|
|
51
55
|
utilityAssertCompatibleOracleVersion(version: number): void;
|
|
52
56
|
utilityGetRandomField(): Fr;
|
|
53
57
|
utilityGetUtilityContext(): UtilityContext;
|
|
@@ -59,37 +63,43 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
59
63
|
*/
|
|
60
64
|
utilityGetKeyValidationRequest(pkMHash: Fr): Promise<KeyValidationRequest>;
|
|
61
65
|
/**
|
|
62
|
-
* Fetches the index and sibling path of a leaf at a given block from
|
|
63
|
-
* @param
|
|
64
|
-
* @param treeId - Id of the tree to get the sibling path from.
|
|
66
|
+
* Fetches the index and sibling path of a leaf at a given block from the note hash tree.
|
|
67
|
+
* @param blockHash - The block hash at which to get the membership witness.
|
|
65
68
|
* @param leafValue - The leaf value
|
|
66
|
-
* @returns The index and sibling path
|
|
69
|
+
* @returns The membership witness containing the leaf index and sibling path
|
|
67
70
|
*/
|
|
68
|
-
|
|
71
|
+
utilityGetNoteHashMembershipWitness(blockHash: L2BlockHash, leafValue: Fr): Promise<MembershipWitness<typeof NOTE_HASH_TREE_HEIGHT> | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* Fetches the index and sibling path of a leaf at a given block from the archive tree.
|
|
74
|
+
* @param blockHash - The block hash at which to get the membership witness.
|
|
75
|
+
* @param leafValue - The leaf value
|
|
76
|
+
* @returns The membership witness containing the leaf index and sibling path
|
|
77
|
+
*/
|
|
78
|
+
utilityGetArchiveMembershipWitness(blockHash: L2BlockHash, leafValue: Fr): Promise<MembershipWitness<typeof ARCHIVE_HEIGHT> | undefined>;
|
|
69
79
|
/**
|
|
70
80
|
* Returns a nullifier membership witness for a given nullifier at a given block.
|
|
71
|
-
* @param
|
|
81
|
+
* @param blockHash - The block hash at which to get the index.
|
|
72
82
|
* @param nullifier - Nullifier we try to find witness for.
|
|
73
83
|
* @returns The nullifier membership witness (if found).
|
|
74
84
|
*/
|
|
75
|
-
utilityGetNullifierMembershipWitness(
|
|
85
|
+
utilityGetNullifierMembershipWitness(blockHash: L2BlockHash, nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
|
|
76
86
|
/**
|
|
77
87
|
* Returns a low nullifier membership witness for a given nullifier at a given block.
|
|
78
|
-
* @param
|
|
88
|
+
* @param blockHash - The block hash at which to get the index.
|
|
79
89
|
* @param nullifier - Nullifier we try to find the low nullifier witness for.
|
|
80
90
|
* @returns The low nullifier membership witness (if found).
|
|
81
91
|
* @remarks Low nullifier witness can be used to perform a nullifier non-inclusion proof by leveraging the "linked
|
|
82
92
|
* list structure" of leaves and proving that a lower nullifier is pointing to a bigger next value than the nullifier
|
|
83
93
|
* we are trying to prove non-inclusion for.
|
|
84
94
|
*/
|
|
85
|
-
utilityGetLowNullifierMembershipWitness(
|
|
95
|
+
utilityGetLowNullifierMembershipWitness(blockHash: L2BlockHash, nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
|
|
86
96
|
/**
|
|
87
97
|
* Returns a public data tree witness for a given leaf slot at a given block.
|
|
88
|
-
* @param
|
|
98
|
+
* @param blockHash - The block hash at which to get the index.
|
|
89
99
|
* @param leafSlot - The slot of the public data tree to get the witness for.
|
|
90
100
|
* @returns - The witness
|
|
91
101
|
*/
|
|
92
|
-
utilityGetPublicDataWitness(
|
|
102
|
+
utilityGetPublicDataWitness(blockHash: L2BlockHash, leafSlot: Fr): Promise<PublicDataWitness | undefined>;
|
|
93
103
|
/**
|
|
94
104
|
* Fetches a block header of a given block.
|
|
95
105
|
* @param blockNumber - The number of a block of which to get the block header.
|
|
@@ -158,12 +168,12 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
158
168
|
utilityGetL1ToL2MembershipWitness(contractAddress: AztecAddress, messageHash: Fr, secret: Fr): Promise<MessageLoadOracleInputs<36>>;
|
|
159
169
|
/**
|
|
160
170
|
* Read the public storage data.
|
|
171
|
+
* @param blockHash - The block hash to read storage at.
|
|
161
172
|
* @param contractAddress - The address to read storage from.
|
|
162
173
|
* @param startStorageSlot - The starting storage slot.
|
|
163
|
-
* @param blockNumber - The block number to read storage at.
|
|
164
174
|
* @param numberOfElements - Number of elements to read from the starting storage slot.
|
|
165
175
|
*/
|
|
166
|
-
utilityStorageRead(contractAddress: AztecAddress, startStorageSlot: Fr,
|
|
176
|
+
utilityStorageRead(blockHash: L2BlockHash, contractAddress: AztecAddress, startStorageSlot: Fr, numberOfElements: number): Promise<Fr[]>;
|
|
167
177
|
utilityDebugLog(level: number, message: string, fields: Fr[]): void;
|
|
168
178
|
utilityFetchTaggedLogs(pendingTaggedLogArrayBaseSlot: Fr): Promise<void>;
|
|
169
179
|
/**
|
|
@@ -192,4 +202,4 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
192
202
|
utilityGetSharedSecret(address: AztecAddress, ephPk: Point): Promise<Point>;
|
|
193
203
|
protected getSharedSecret(address: AztecAddress, ephPk: Point): Promise<Point>;
|
|
194
204
|
}
|
|
195
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
205
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eV9leGVjdXRpb25fb3JhY2xlLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3RfZnVuY3Rpb25fc2ltdWxhdG9yL29yYWNsZS91dGlsaXR5X2V4ZWN1dGlvbl9vcmFjbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsY0FBYyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDOUUsT0FBTyxLQUFLLEVBQUUsV0FBVyxFQUFFLE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0FBQyxLQUFLLENBQUMsQ0FRbkY7Q0FDRiJ9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utility_execution_oracle.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/utility_execution_oracle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAE1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEhF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"utility_execution_oracle.d.ts","sourceRoot":"","sources":["../../../src/contract_function_simulator/oracle/utility_execution_oracle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAA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