@aztec/pxe 0.0.1-commit.d3ec352c → 0.0.1-commit.e6bd8901
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/bin/check_oracle_version.js +105 -15
- package/dest/block_synchronizer/block_synchronizer.d.ts +43 -0
- package/dest/block_synchronizer/block_synchronizer.d.ts.map +1 -0
- package/dest/block_synchronizer/block_synchronizer.js +147 -0
- package/dest/block_synchronizer/index.d.ts +2 -0
- package/dest/block_synchronizer/index.d.ts.map +1 -0
- package/dest/block_synchronizer/index.js +1 -0
- package/dest/config/index.d.ts +6 -4
- 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 +42 -14
- package/dest/contract_function_simulator/contract_function_simulator.d.ts.map +1 -1
- package/dest/contract_function_simulator/contract_function_simulator.js +71 -30
- package/dest/contract_function_simulator/execution_note_cache.d.ts +21 -12
- package/dest/contract_function_simulator/execution_note_cache.d.ts.map +1 -1
- package/dest/contract_function_simulator/execution_note_cache.js +48 -31
- package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts +1 -1
- package/dest/contract_function_simulator/execution_tagging_index_cache.js +1 -1
- package/dest/contract_function_simulator/hashed_values_cache.d.ts +2 -2
- package/dest/contract_function_simulator/hashed_values_cache.d.ts.map +1 -1
- 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 +5 -4
- 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 +6 -3
- package/dest/contract_function_simulator/noir-structs/log_retrieval_request.d.ts +5 -4
- package/dest/contract_function_simulator/noir-structs/log_retrieval_request.d.ts.map +1 -1
- package/dest/contract_function_simulator/noir-structs/log_retrieval_request.js +7 -6
- package/dest/contract_function_simulator/noir-structs/log_retrieval_response.d.ts +2 -2
- package/dest/contract_function_simulator/noir-structs/log_retrieval_response.d.ts.map +1 -1
- package/dest/contract_function_simulator/noir-structs/log_retrieval_response.js +1 -1
- package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts +3 -3
- package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts.map +1 -1
- package/dest/contract_function_simulator/noir-structs/note_validation_request.js +1 -1
- 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 +20 -16
- package/dest/contract_function_simulator/oracle/interfaces.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.d.ts +4 -2
- package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.js +1 -1
- package/dest/contract_function_simulator/oracle/note_packing_utils.d.ts +11 -7
- package/dest/contract_function_simulator/oracle/note_packing_utils.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/note_packing_utils.js +14 -10
- package/dest/contract_function_simulator/oracle/oracle.d.ts +10 -8
- package/dest/contract_function_simulator/oracle/oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/oracle.js +58 -36
- package/dest/contract_function_simulator/oracle/private_execution.d.ts +2 -28
- package/dest/contract_function_simulator/oracle/private_execution.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/private_execution.js +2 -38
- package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts +33 -25
- package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/private_execution_oracle.js +43 -45
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts +75 -25
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.js +170 -64
- package/dest/contract_function_simulator/pick_notes.d.ts +2 -2
- package/dest/contract_function_simulator/pick_notes.d.ts.map +1 -1
- package/dest/contract_function_simulator/pick_notes.js +1 -1
- package/dest/contract_function_simulator/proxied_contract_data_source.d.ts +4 -4
- package/dest/contract_function_simulator/proxied_contract_data_source.d.ts.map +1 -1
- package/dest/contract_function_simulator/proxied_contract_data_source.js +23 -5
- package/dest/contract_sync/index.d.ts +23 -0
- package/dest/contract_sync/index.d.ts.map +1 -0
- package/dest/contract_sync/index.js +56 -0
- package/dest/debug/pxe_debug_utils.d.ts +31 -0
- package/dest/debug/pxe_debug_utils.d.ts.map +1 -0
- package/dest/debug/pxe_debug_utils.js +38 -0
- package/dest/entrypoints/client/bundle/index.d.ts +1 -2
- package/dest/entrypoints/client/bundle/index.d.ts.map +1 -1
- package/dest/entrypoints/client/bundle/index.js +0 -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 +12 -3
- package/dest/entrypoints/client/lazy/index.d.ts +1 -2
- package/dest/entrypoints/client/lazy/index.d.ts.map +1 -1
- package/dest/entrypoints/client/lazy/index.js +0 -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 +12 -3
- package/dest/entrypoints/pxe_creation_options.d.ts +5 -2
- package/dest/entrypoints/pxe_creation_options.d.ts.map +1 -1
- package/dest/entrypoints/server/index.d.ts +4 -2
- package/dest/entrypoints/server/index.d.ts.map +1 -1
- package/dest/entrypoints/server/index.js +3 -1
- 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 +12 -8
- package/dest/error_enriching.d.ts +4 -4
- package/dest/error_enriching.d.ts.map +1 -1
- package/dest/error_enriching.js +6 -6
- package/dest/events/event_service.d.ts +16 -0
- package/dest/events/event_service.d.ts.map +1 -0
- package/dest/events/event_service.js +45 -0
- package/dest/events/index.d.ts +2 -0
- package/dest/events/index.d.ts.map +1 -0
- package/dest/events/index.js +1 -0
- package/dest/events/private_event_filter_validator.d.ts +9 -0
- package/dest/events/private_event_filter_validator.d.ts.map +1 -0
- package/dest/events/private_event_filter_validator.js +38 -0
- 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 +27 -0
- package/dest/logs/log_service.d.ts.map +1 -0
- package/dest/logs/log_service.js +129 -0
- package/dest/notes/index.d.ts +2 -0
- package/dest/notes/index.d.ts.map +1 -0
- package/dest/notes/index.js +1 -0
- package/dest/notes/note_service.d.ts +49 -0
- package/dest/notes/note_service.d.ts.map +1 -0
- package/dest/notes/note_service.js +149 -0
- 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 +8 -9
- package/dest/private_kernel/private_kernel_oracle.d.ts +26 -29
- 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 +45 -81
- package/dest/pxe.d.ts.map +1 -1
- package/dest/pxe.js +186 -216
- package/dest/storage/address_store/address_store.d.ts +11 -0
- package/dest/storage/address_store/address_store.d.ts.map +1 -0
- package/dest/storage/{address_data_provider/address_data_provider.js → address_store/address_store.js} +1 -1
- package/dest/storage/address_store/index.d.ts +2 -0
- package/dest/storage/address_store/index.d.ts.map +1 -0
- package/dest/storage/address_store/index.js +1 -0
- package/dest/storage/{sync_data_provider/sync_data_provider.d.ts → anchor_block_store/anchor_block_store.d.ts} +2 -4
- package/dest/storage/anchor_block_store/anchor_block_store.d.ts.map +1 -0
- package/dest/storage/{sync_data_provider/sync_data_provider.js → anchor_block_store/anchor_block_store.js} +2 -9
- package/dest/storage/{sync_data_provider → anchor_block_store}/index.d.ts +2 -2
- package/dest/storage/anchor_block_store/index.d.ts.map +1 -0
- package/dest/storage/anchor_block_store/index.js +1 -0
- package/dest/storage/capsule_store/capsule_store.d.ts +72 -0
- package/dest/storage/capsule_store/capsule_store.d.ts.map +1 -0
- package/dest/storage/capsule_store/capsule_store.js +255 -0
- package/dest/storage/capsule_store/index.d.ts +2 -0
- package/dest/storage/capsule_store/index.d.ts.map +1 -0
- package/dest/storage/capsule_store/index.js +1 -0
- package/dest/storage/{contract_data_provider/contract_data_provider.d.ts → contract_store/contract_store.d.ts} +7 -5
- package/dest/storage/contract_store/contract_store.d.ts.map +1 -0
- package/dest/storage/{contract_data_provider/contract_data_provider.js → contract_store/contract_store.js} +34 -3
- package/dest/storage/contract_store/index.d.ts +2 -0
- package/dest/storage/contract_store/index.d.ts.map +1 -0
- package/dest/storage/contract_store/index.js +1 -0
- package/dest/storage/{contract_data_provider → contract_store}/private_functions_tree.d.ts +1 -1
- package/dest/storage/contract_store/private_functions_tree.d.ts.map +1 -0
- package/dest/storage/{contract_data_provider → contract_store}/private_functions_tree.js +1 -1
- package/dest/storage/index.d.ts +8 -8
- package/dest/storage/index.d.ts.map +1 -1
- package/dest/storage/index.js +7 -7
- package/dest/storage/note_store/index.d.ts +3 -0
- package/dest/storage/note_store/index.d.ts.map +1 -0
- package/dest/storage/note_store/index.js +2 -0
- package/dest/storage/note_store/note_store.d.ts +73 -0
- package/dest/storage/note_store/note_store.d.ts.map +1 -0
- package/dest/storage/note_store/note_store.js +303 -0
- 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 +91 -0
- package/dest/storage/private_event_store/private_event_store.d.ts.map +1 -0
- package/dest/storage/private_event_store/private_event_store.js +250 -0
- 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/index.d.ts +4 -0
- package/dest/storage/tagging_store/index.d.ts.map +1 -0
- package/dest/storage/tagging_store/index.js +3 -0
- package/dest/storage/tagging_store/recipient_tagging_store.d.ts +28 -0
- package/dest/storage/tagging_store/recipient_tagging_store.d.ts.map +1 -0
- package/dest/storage/tagging_store/recipient_tagging_store.js +99 -0
- package/dest/storage/tagging_store/sender_address_book_store.d.ts +14 -0
- package/dest/storage/tagging_store/sender_address_book_store.d.ts.map +1 -0
- package/dest/storage/tagging_store/sender_address_book_store.js +30 -0
- package/dest/storage/tagging_store/sender_tagging_store.d.ts +77 -0
- package/dest/storage/tagging_store/sender_tagging_store.d.ts.map +1 -0
- package/dest/storage/tagging_store/sender_tagging_store.js +278 -0
- package/dest/tagging/constants.d.ts +2 -2
- package/dest/tagging/constants.d.ts.map +1 -1
- package/dest/tagging/constants.js +10 -2
- 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 +16 -6
- package/dest/tagging/index.d.ts.map +1 -1
- package/dest/tagging/index.js +15 -5
- package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts +15 -0
- package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts.map +1 -0
- package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.js +99 -0
- package/dest/tagging/recipient_sync/utils/find_highest_indexes.d.ts +12 -0
- package/dest/tagging/recipient_sync/utils/find_highest_indexes.d.ts.map +1 -0
- package/dest/tagging/recipient_sync/utils/find_highest_indexes.js +20 -0
- package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts +15 -0
- package/dest/tagging/recipient_sync/utils/load_logs_for_range.d.ts.map +1 -0
- package/dest/tagging/recipient_sync/utils/load_logs_for_range.js +32 -0
- package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts +21 -0
- package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts.map +1 -0
- package/dest/tagging/sender_sync/sync_sender_tagging_indexes.js +74 -0
- package/dest/tagging/sender_sync/utils/get_status_change_of_pending.d.ts +11 -0
- package/dest/tagging/sender_sync/utils/get_status_change_of_pending.d.ts.map +1 -0
- package/dest/tagging/sender_sync/utils/get_status_change_of_pending.js +29 -0
- package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts +21 -0
- package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts.map +1 -0
- package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.js +60 -0
- package/package.json +18 -18
- package/src/bin/check_oracle_version.ts +131 -20
- package/src/block_synchronizer/block_synchronizer.ts +174 -0
- package/src/block_synchronizer/index.ts +1 -0
- package/src/config/index.ts +17 -3
- 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 +113 -33
- package/src/contract_function_simulator/execution_note_cache.ts +51 -29
- package/src/contract_function_simulator/execution_tagging_index_cache.ts +1 -1
- package/src/contract_function_simulator/hashed_values_cache.ts +1 -1
- package/src/contract_function_simulator/index.ts +1 -1
- package/src/contract_function_simulator/noir-structs/event_validation_request.ts +6 -2
- package/src/contract_function_simulator/noir-structs/log_retrieval_request.ts +6 -5
- package/src/contract_function_simulator/noir-structs/log_retrieval_response.ts +1 -1
- package/src/contract_function_simulator/noir-structs/note_validation_request.ts +2 -2
- package/src/contract_function_simulator/noir-structs/utility_context.ts +6 -25
- package/src/contract_function_simulator/oracle/interfaces.ts +25 -15
- package/src/contract_function_simulator/oracle/message_load_oracle_inputs.ts +1 -1
- package/src/contract_function_simulator/oracle/note_packing_utils.ts +27 -13
- package/src/contract_function_simulator/oracle/oracle.ts +74 -45
- package/src/contract_function_simulator/oracle/private_execution.ts +2 -69
- package/src/contract_function_simulator/oracle/private_execution_oracle.ts +126 -59
- package/src/contract_function_simulator/oracle/utility_execution_oracle.ts +259 -81
- package/src/contract_function_simulator/pick_notes.ts +1 -1
- package/src/contract_function_simulator/proxied_contract_data_source.ts +24 -7
- package/src/contract_sync/index.ts +100 -0
- package/src/debug/pxe_debug_utils.ts +49 -0
- package/src/entrypoints/client/bundle/index.ts +0 -1
- package/src/entrypoints/client/bundle/utils.ts +9 -3
- package/src/entrypoints/client/lazy/index.ts +0 -1
- package/src/entrypoints/client/lazy/utils.ts +9 -4
- package/src/entrypoints/pxe_creation_options.ts +4 -1
- package/src/entrypoints/server/index.ts +3 -1
- package/src/entrypoints/server/utils.ts +12 -16
- package/src/error_enriching.ts +7 -15
- package/src/events/event_service.ts +73 -0
- package/src/events/index.ts +1 -0
- package/src/events/private_event_filter_validator.ts +46 -0
- package/src/job_coordinator/job_coordinator.ts +149 -0
- package/src/logs/log_service.ts +221 -0
- package/src/notes/index.ts +1 -0
- package/src/notes/note_service.ts +198 -0
- 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} +34 -23
- package/src/private_kernel/private_kernel_execution_prover.ts +7 -9
- package/src/private_kernel/private_kernel_oracle.ts +118 -37
- package/src/pxe.ts +258 -280
- package/src/storage/{address_data_provider/address_data_provider.ts → address_store/address_store.ts} +1 -1
- package/src/storage/address_store/index.ts +1 -0
- package/src/storage/{sync_data_provider/sync_data_provider.ts → anchor_block_store/anchor_block_store.ts} +2 -12
- package/src/storage/anchor_block_store/index.ts +1 -0
- package/src/storage/capsule_store/capsule_store.ts +315 -0
- package/src/storage/capsule_store/index.ts +1 -0
- package/src/storage/{contract_data_provider/contract_data_provider.ts → contract_store/contract_store.ts} +45 -3
- package/src/storage/contract_store/index.ts +1 -0
- package/src/storage/{contract_data_provider → contract_store}/private_functions_tree.ts +1 -1
- package/src/storage/index.ts +7 -7
- package/src/storage/note_store/index.ts +2 -0
- package/src/storage/note_store/note_store.ts +381 -0
- package/src/storage/note_store/stored_note.ts +48 -0
- package/src/storage/private_event_store/private_event_store.ts +363 -0
- package/src/storage/private_event_store/stored_private_event.ts +73 -0
- package/src/storage/tagging_store/index.ts +3 -0
- package/src/storage/tagging_store/recipient_tagging_store.ts +129 -0
- package/src/storage/tagging_store/sender_address_book_store.ts +42 -0
- package/src/storage/tagging_store/sender_tagging_store.ts +345 -0
- package/src/tagging/constants.ts +10 -2
- package/src/tagging/get_all_logs_by_tags.ts +68 -0
- package/src/tagging/index.ts +18 -5
- package/src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts +143 -0
- package/src/tagging/recipient_sync/utils/find_highest_indexes.ts +34 -0
- package/src/tagging/recipient_sync/utils/load_logs_for_range.ts +49 -0
- package/src/tagging/sender_sync/sync_sender_tagging_indexes.ts +99 -0
- package/src/tagging/sender_sync/utils/get_status_change_of_pending.ts +36 -0
- package/src/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.ts +84 -0
- package/dest/contract_function_simulator/execution_data_provider.d.ts +0 -267
- package/dest/contract_function_simulator/execution_data_provider.d.ts.map +0 -1
- package/dest/contract_function_simulator/execution_data_provider.js +0 -14
- 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/contract_function_simulator/pxe_oracle_interface.d.ts +0 -123
- package/dest/contract_function_simulator/pxe_oracle_interface.d.ts.map +0 -1
- package/dest/contract_function_simulator/pxe_oracle_interface.js +0 -696
- 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 -45
- 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/storage/address_data_provider/address_data_provider.d.ts +0 -11
- package/dest/storage/address_data_provider/address_data_provider.d.ts.map +0 -1
- package/dest/storage/address_data_provider/index.d.ts +0 -2
- package/dest/storage/address_data_provider/index.d.ts.map +0 -1
- package/dest/storage/address_data_provider/index.js +0 -1
- package/dest/storage/capsule_data_provider/capsule_data_provider.d.ts +0 -25
- package/dest/storage/capsule_data_provider/capsule_data_provider.d.ts.map +0 -1
- package/dest/storage/capsule_data_provider/capsule_data_provider.js +0 -118
- package/dest/storage/capsule_data_provider/index.d.ts +0 -2
- package/dest/storage/capsule_data_provider/index.d.ts.map +0 -1
- package/dest/storage/capsule_data_provider/index.js +0 -1
- package/dest/storage/contract_data_provider/contract_data_provider.d.ts.map +0 -1
- package/dest/storage/contract_data_provider/index.d.ts +0 -2
- package/dest/storage/contract_data_provider/index.d.ts.map +0 -1
- package/dest/storage/contract_data_provider/index.js +0 -1
- package/dest/storage/contract_data_provider/private_functions_tree.d.ts.map +0 -1
- package/dest/storage/note_data_provider/index.d.ts +0 -3
- package/dest/storage/note_data_provider/index.d.ts.map +0 -1
- package/dest/storage/note_data_provider/index.js +0 -2
- package/dest/storage/note_data_provider/note_data_provider.d.ts +0 -83
- package/dest/storage/note_data_provider/note_data_provider.d.ts.map +0 -1
- package/dest/storage/note_data_provider/note_data_provider.js +0 -314
- package/dest/storage/private_event_data_provider/private_event_data_provider.d.ts +0 -37
- package/dest/storage/private_event_data_provider/private_event_data_provider.d.ts.map +0 -1
- package/dest/storage/private_event_data_provider/private_event_data_provider.js +0 -105
- package/dest/storage/sync_data_provider/index.d.ts.map +0 -1
- package/dest/storage/sync_data_provider/index.js +0 -1
- package/dest/storage/sync_data_provider/sync_data_provider.d.ts.map +0 -1
- package/dest/storage/tagging_data_provider/index.d.ts +0 -2
- package/dest/storage/tagging_data_provider/index.d.ts.map +0 -1
- package/dest/storage/tagging_data_provider/index.js +0 -1
- package/dest/storage/tagging_data_provider/tagging_data_provider.d.ts +0 -40
- package/dest/storage/tagging_data_provider/tagging_data_provider.d.ts.map +0 -1
- package/dest/storage/tagging_data_provider/tagging_data_provider.js +0 -89
- package/dest/synchronizer/index.d.ts +0 -2
- package/dest/synchronizer/index.d.ts.map +0 -1
- package/dest/synchronizer/index.js +0 -1
- package/dest/synchronizer/synchronizer.d.ts +0 -36
- package/dest/synchronizer/synchronizer.d.ts.map +0 -1
- package/dest/synchronizer/synchronizer.js +0 -102
- package/dest/tagging/siloed_tag.d.ts +0 -14
- package/dest/tagging/siloed_tag.d.ts.map +0 -1
- package/dest/tagging/siloed_tag.js +0 -20
- package/dest/tagging/tag.d.ts +0 -12
- package/dest/tagging/tag.d.ts.map +0 -1
- package/dest/tagging/tag.js +0 -17
- package/dest/tagging/utils.d.ts +0 -18
- package/dest/tagging/utils.d.ts.map +0 -1
- package/dest/tagging/utils.js +0 -24
- package/src/contract_function_simulator/execution_data_provider.ts +0 -342
- package/src/contract_function_simulator/proxied_node.ts +0 -33
- package/src/contract_function_simulator/pxe_oracle_interface.ts +0 -1023
- package/src/private_kernel/private_kernel_oracle_impl.ts +0 -132
- package/src/storage/address_data_provider/index.ts +0 -1
- package/src/storage/capsule_data_provider/capsule_data_provider.ts +0 -147
- package/src/storage/capsule_data_provider/index.ts +0 -1
- package/src/storage/contract_data_provider/index.ts +0 -1
- package/src/storage/note_data_provider/index.ts +0 -2
- package/src/storage/note_data_provider/note_data_provider.ts +0 -403
- package/src/storage/private_event_data_provider/private_event_data_provider.ts +0 -143
- package/src/storage/sync_data_provider/index.ts +0 -1
- package/src/storage/tagging_data_provider/index.ts +0 -1
- package/src/storage/tagging_data_provider/tagging_data_provider.ts +0 -120
- package/src/synchronizer/index.ts +0 -1
- package/src/synchronizer/synchronizer.ts +0 -121
- package/src/tagging/siloed_tag.ts +0 -22
- package/src/tagging/tag.ts +0 -16
- package/src/tagging/utils.ts +0 -31
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { MAX_FR_CALLDATA_TO_ALL_ENQUEUED_CALLS, PRIVATE_CONTEXT_INPUTS_LENGTH } from '@aztec/constants';
|
|
2
|
-
import { Fr } from '@aztec/foundation/
|
|
2
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
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';
|
|
10
|
+
import { DirectionalAppTaggingSecret } from '@aztec/stdlib/logs';
|
|
11
|
+
import { Tag } from '@aztec/stdlib/logs';
|
|
9
12
|
import { Note } from '@aztec/stdlib/note';
|
|
10
13
|
import { CallContext, CountedContractClassLog, NoteAndSlot } from '@aztec/stdlib/tx';
|
|
11
|
-
import {
|
|
14
|
+
import { ensureContractSynced } from '../../contract_sync/index.js';
|
|
15
|
+
import { NoteService } from '../../notes/note_service.js';
|
|
16
|
+
import { syncSenderTaggingIndexes } from '../../tagging/index.js';
|
|
12
17
|
import { pickNotes } from '../pick_notes.js';
|
|
13
|
-
import { executePrivateFunction
|
|
18
|
+
import { executePrivateFunction } from './private_execution.js';
|
|
14
19
|
import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
15
20
|
/**
|
|
16
21
|
* The execution oracle for the private part of a transaction.
|
|
@@ -19,9 +24,11 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
19
24
|
txContext;
|
|
20
25
|
callContext;
|
|
21
26
|
anchorBlockHeader;
|
|
27
|
+
utilityExecutor;
|
|
22
28
|
executionCache;
|
|
23
29
|
noteCache;
|
|
24
30
|
taggingIndexCache;
|
|
31
|
+
senderTaggingStore;
|
|
25
32
|
totalPublicCalldataCount;
|
|
26
33
|
sideEffectCounter;
|
|
27
34
|
senderForTags;
|
|
@@ -35,21 +42,12 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
35
42
|
* This information is only for references (currently used for tests), and is not used for any sort of constrains.
|
|
36
43
|
* Users can also use this to get a clearer idea of what's happened during a simulation.
|
|
37
44
|
*/ newNotes;
|
|
38
|
-
/**
|
|
39
|
-
* Notes from previous transactions that are returned to the oracle call `getNotes` during this execution.
|
|
40
|
-
* The mapping maps from the unique siloed note hash to the index for notes created in private executions.
|
|
41
|
-
* It maps from siloed note hash to the index for notes created by public functions.
|
|
42
|
-
*
|
|
43
|
-
* They are not part of the ExecutionNoteCache and being forwarded to nested contexts via `extend()`
|
|
44
|
-
* because these notes are meant to be maintained on a per-call basis
|
|
45
|
-
* They should act as references for the read requests output by an app circuit via public inputs.
|
|
46
|
-
*/ noteHashLeafIndexMap;
|
|
47
45
|
noteHashNullifierCounterMap;
|
|
48
46
|
contractClassLogs;
|
|
49
47
|
offchainEffects;
|
|
50
48
|
nestedExecutionResults;
|
|
51
|
-
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,
|
|
52
|
-
super(callContext.contractAddress, authWitnesses, capsules,
|
|
49
|
+
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){
|
|
50
|
+
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 = [];
|
|
53
51
|
}
|
|
54
52
|
getPrivateContextInputs() {
|
|
55
53
|
return new PrivateContextInputs(this.callContext, this.anchorBlockHeader, this.txContext, this.sideEffectCounter);
|
|
@@ -77,12 +75,6 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
77
75
|
return toACVMWitness(0, fields);
|
|
78
76
|
}
|
|
79
77
|
/**
|
|
80
|
-
* The KernelProver will use this to fully populate witnesses and provide hints to the kernel circuit
|
|
81
|
-
* regarding which note hash each settled read request corresponds to.
|
|
82
|
-
*/ getNoteHashLeafIndexMap() {
|
|
83
|
-
return this.noteHashLeafIndexMap;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
78
|
* Get the data for the newly created notes.
|
|
87
79
|
*/ getNewNotes() {
|
|
88
80
|
return this.newNotes;
|
|
@@ -101,7 +93,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
101
93
|
return this.offchainEffects;
|
|
102
94
|
}
|
|
103
95
|
/**
|
|
104
|
-
* Returns the pre
|
|
96
|
+
* Returns the pre-tags that were used in this execution (and that need to be stored in the db).
|
|
105
97
|
*/ getUsedPreTags() {
|
|
106
98
|
return this.taggingIndexCache.getUsedPreTags();
|
|
107
99
|
}
|
|
@@ -142,7 +134,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
142
134
|
* @param recipient - The address receiving the log
|
|
143
135
|
* @returns An app tag to be used in a log.
|
|
144
136
|
*/ async privateGetNextAppTagAsSender(sender, recipient) {
|
|
145
|
-
const secret = await this
|
|
137
|
+
const secret = await this.#calculateDirectionalAppTaggingSecret(this.contractAddress, sender, recipient);
|
|
146
138
|
const index = await this.#getIndexToUseForSecret(secret);
|
|
147
139
|
this.log.debug(`Incrementing tagging index for sender: ${sender}, recipient: ${recipient}, contract: ${this.contractAddress} to ${index}`);
|
|
148
140
|
this.taggingIndexCache.setLastUsedIndex(secret, index);
|
|
@@ -151,6 +143,11 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
151
143
|
index
|
|
152
144
|
});
|
|
153
145
|
}
|
|
146
|
+
async #calculateDirectionalAppTaggingSecret(contractAddress, sender, recipient) {
|
|
147
|
+
const senderCompleteAddress = await this.getCompleteAddress(sender);
|
|
148
|
+
const senderIvsk = await this.keyStore.getMasterIncomingViewingSecretKey(sender);
|
|
149
|
+
return DirectionalAppTaggingSecret.compute(senderCompleteAddress, senderIvsk, recipient, contractAddress, recipient);
|
|
150
|
+
}
|
|
154
151
|
async #getIndexToUseForSecret(secret) {
|
|
155
152
|
// If we have the tagging index in the cache, we use it. If not we obtain it from the execution data provider.
|
|
156
153
|
const lastUsedIndexInTx = this.taggingIndexCache.getLastUsedIndex(secret);
|
|
@@ -160,8 +157,9 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
160
157
|
// This is a tagging secret we've not yet used in this tx, so first sync our store to make sure its indices
|
|
161
158
|
// are up to date. We do this here because this store is not synced as part of the global sync because
|
|
162
159
|
// that'd be wasteful as most tagging secrets are not used in each tx.
|
|
163
|
-
await this.
|
|
164
|
-
|
|
160
|
+
const anchorBlockHash = L2BlockHash.fromField(await this.anchorBlockHeader.hash());
|
|
161
|
+
await syncSenderTaggingIndexes(secret, this.contractAddress, this.aztecNode, this.senderTaggingStore, anchorBlockHash, this.jobId);
|
|
162
|
+
const lastUsedIndex = await this.senderTaggingStore.getLastUsedIndex(secret, this.jobId);
|
|
165
163
|
// If lastUsedIndex is undefined, we've never used this secret, so start from 0
|
|
166
164
|
// Otherwise, the next index to use is one past the last used index
|
|
167
165
|
return lastUsedIndex === undefined ? 0 : lastUsedIndex + 1;
|
|
@@ -203,7 +201,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
203
201
|
* Real notes coming from DB will have a leafIndex which
|
|
204
202
|
* represents their index in the note hash tree.
|
|
205
203
|
*
|
|
206
|
-
* @param owner - The owner of the notes.
|
|
204
|
+
* @param owner - The owner of the notes. If undefined, returns notes for all owners.
|
|
207
205
|
* @param storageSlot - The storage slot.
|
|
208
206
|
* @param numSelects - The number of valid selects in selectBy and selectValues.
|
|
209
207
|
* @param selectBy - An array of indices of the fields to selects.
|
|
@@ -219,7 +217,8 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
219
217
|
// Nullified pending notes are already removed from the list.
|
|
220
218
|
const pendingNotes = this.noteCache.getNotes(this.callContext.contractAddress, owner, storageSlot);
|
|
221
219
|
const pendingNullifiers = this.noteCache.getNullifiers(this.callContext.contractAddress);
|
|
222
|
-
const
|
|
220
|
+
const noteService = new NoteService(this.noteStore, this.aztecNode, this.anchorBlockStore, this.jobId);
|
|
221
|
+
const dbNotes = await noteService.getNotes(this.callContext.contractAddress, owner, storageSlot, status, this.scopes);
|
|
223
222
|
const dbNotesFiltered = dbNotes.filter((n)=>!pendingNullifiers.has(n.siloedNullifier.value));
|
|
224
223
|
const notes = pickNotes([
|
|
225
224
|
...dbNotesFiltered,
|
|
@@ -246,19 +245,6 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
246
245
|
offset
|
|
247
246
|
});
|
|
248
247
|
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(', ')}`);
|
|
249
|
-
const noteHashesAndIndexes = await Promise.all(notes.map(async (n)=>{
|
|
250
|
-
if (n.index !== undefined) {
|
|
251
|
-
const siloedNoteHash = await siloNoteHash(n.contractAddress, n.noteHash);
|
|
252
|
-
const uniqueNoteHash = await computeUniqueNoteHash(n.noteNonce, siloedNoteHash);
|
|
253
|
-
return {
|
|
254
|
-
hash: uniqueNoteHash,
|
|
255
|
-
index: n.index
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
}));
|
|
259
|
-
noteHashesAndIndexes.filter((n)=>n !== undefined).forEach((n)=>{
|
|
260
|
-
this.noteHashLeafIndexMap.set(n.hash.toBigInt(), n.index);
|
|
261
|
-
});
|
|
262
248
|
return notes;
|
|
263
249
|
}
|
|
264
250
|
/**
|
|
@@ -288,7 +274,8 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
288
274
|
noteNonce: Fr.ZERO,
|
|
289
275
|
note,
|
|
290
276
|
siloedNullifier: undefined,
|
|
291
|
-
noteHash
|
|
277
|
+
noteHash,
|
|
278
|
+
isPending: true
|
|
292
279
|
}, counter);
|
|
293
280
|
this.newNotes.push(NoteAndSlot.from({
|
|
294
281
|
note,
|
|
@@ -320,6 +307,17 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
320
307
|
return this.noteCache.nullifierCreated(this.callContext.contractAddress, innerNullifier);
|
|
321
308
|
}
|
|
322
309
|
/**
|
|
310
|
+
* Check if a nullifier has been emitted in the same transaction, i.e. if privateNotifyCreatedNullifier has been
|
|
311
|
+
* called for this inner nullifier from the contract with the specified address.
|
|
312
|
+
* @param innerNullifier - The inner nullifier to check.
|
|
313
|
+
* @param contractAddress - Address of the contract that emitted the nullifier.
|
|
314
|
+
* @returns A boolean indicating whether the nullifier is pending or not.
|
|
315
|
+
*/ async privateIsNullifierPending(innerNullifier, contractAddress) {
|
|
316
|
+
const siloedNullifier = await siloNullifier(contractAddress, innerNullifier);
|
|
317
|
+
const isNullifierPending = this.noteCache.getNullifiers(contractAddress).has(siloedNullifier.toBigInt());
|
|
318
|
+
return Promise.resolve(isNullifierPending);
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
323
321
|
* Emit a contract class log.
|
|
324
322
|
* This fn exists because we only carry a poseidon hash through the kernels, and need to
|
|
325
323
|
* keep the preimage in ts for later.
|
|
@@ -352,11 +350,11 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
352
350
|
const simulatorSetupTimer = new Timer();
|
|
353
351
|
this.log.debug(`Calling private function ${targetContractAddress}:${functionSelector} from ${this.callContext.contractAddress}`);
|
|
354
352
|
isStaticCall = isStaticCall || this.callContext.isStaticCall;
|
|
355
|
-
await
|
|
356
|
-
const targetArtifact = await this.
|
|
353
|
+
await ensureContractSynced(targetContractAddress, functionSelector, this.utilityExecutor, this.aztecNode, this.contractStore, this.anchorBlockHeader);
|
|
354
|
+
const targetArtifact = await this.contractStore.getFunctionArtifactWithDebugMetadata(targetContractAddress, functionSelector);
|
|
357
355
|
const derivedTxContext = this.txContext.clone();
|
|
358
356
|
const derivedCallContext = await this.deriveCallContext(targetContractAddress, targetArtifact, isStaticCall);
|
|
359
|
-
const privateExecutionOracle = new PrivateExecutionOracle(argsHash, derivedTxContext, derivedCallContext, this.anchorBlockHeader, this.authWitnesses, this.capsules, this.executionCache, this.noteCache, this.taggingIndexCache, this.
|
|
357
|
+
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);
|
|
360
358
|
const setupTime = simulatorSetupTimer.ms();
|
|
361
359
|
const childExecutionResult = await executePrivateFunction(this.simulator, privateExecutionOracle, targetArtifact, targetContractAddress, functionSelector);
|
|
362
360
|
if (isStaticCall) {
|
|
@@ -419,7 +417,7 @@ import { UtilityExecutionOracle } from './utility_execution_oracle.js';
|
|
|
419
417
|
return new CallContext(this.contractAddress, targetContractAddress, await FunctionSelector.fromNameAndParameters(targetArtifact.name, targetArtifact.parameters), isStaticCall);
|
|
420
418
|
}
|
|
421
419
|
getDebugFunctionName() {
|
|
422
|
-
return this.
|
|
420
|
+
return this.contractStore.getDebugFunctionName(this.contractAddress, this.callContext.functionSelector);
|
|
423
421
|
}
|
|
424
422
|
utilityEmitOffchainEffect(data) {
|
|
425
423
|
this.offchainEffects.push({
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
+
import type { ARCHIVE_HEIGHT, NOTE_HASH_TREE_HEIGHT } from '@aztec/constants';
|
|
1
2
|
import type { BlockNumber } from '@aztec/foundation/branded-types';
|
|
2
|
-
import { Fr
|
|
3
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
4
|
+
import { Point } from '@aztec/foundation/curves/grumpkin';
|
|
5
|
+
import type { MembershipWitness } from '@aztec/foundation/trees';
|
|
6
|
+
import type { KeyStore } from '@aztec/key-store';
|
|
3
7
|
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
4
8
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
9
|
+
import { L2BlockHash } from '@aztec/stdlib/block';
|
|
5
10
|
import type { CompleteAddress, ContractInstance } from '@aztec/stdlib/contract';
|
|
11
|
+
import type { AztecNode } from '@aztec/stdlib/interfaces/server';
|
|
6
12
|
import type { KeyValidationRequest } from '@aztec/stdlib/kernel';
|
|
7
13
|
import type { NoteStatus } from '@aztec/stdlib/note';
|
|
8
|
-
import { type
|
|
14
|
+
import { type NullifierMembershipWitness, PublicDataWitness } from '@aztec/stdlib/trees';
|
|
9
15
|
import type { BlockHeader, Capsule } from '@aztec/stdlib/tx';
|
|
10
|
-
import type {
|
|
16
|
+
import type { AddressStore } from '../../storage/address_store/address_store.js';
|
|
17
|
+
import type { AnchorBlockStore } from '../../storage/anchor_block_store/anchor_block_store.js';
|
|
18
|
+
import type { CapsuleStore } from '../../storage/capsule_store/capsule_store.js';
|
|
19
|
+
import type { ContractStore } from '../../storage/contract_store/contract_store.js';
|
|
20
|
+
import type { NoteStore } from '../../storage/note_store/note_store.js';
|
|
21
|
+
import type { PrivateEventStore } from '../../storage/private_event_store/private_event_store.js';
|
|
22
|
+
import type { RecipientTaggingStore } from '../../storage/tagging_store/recipient_tagging_store.js';
|
|
23
|
+
import type { SenderAddressBookStore } from '../../storage/tagging_store/sender_address_book_store.js';
|
|
11
24
|
import { UtilityContext } from '../noir-structs/utility_context.js';
|
|
12
25
|
import type { IMiscOracle, IUtilityExecutionOracle, NoteData } from './interfaces.js';
|
|
26
|
+
import { MessageLoadOracleInputs } from './message_load_oracle_inputs.js';
|
|
13
27
|
/**
|
|
14
28
|
* The oracle for an execution of utility contract functions.
|
|
15
29
|
*/
|
|
@@ -18,7 +32,18 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
18
32
|
/** List of transient auth witnesses to be used during this simulation */
|
|
19
33
|
protected readonly authWitnesses: AuthWitness[];
|
|
20
34
|
protected readonly capsules: Capsule[];
|
|
21
|
-
protected readonly
|
|
35
|
+
protected readonly anchorBlockHeader: BlockHeader;
|
|
36
|
+
protected readonly contractStore: ContractStore;
|
|
37
|
+
protected readonly noteStore: NoteStore;
|
|
38
|
+
protected readonly keyStore: KeyStore;
|
|
39
|
+
protected readonly addressStore: AddressStore;
|
|
40
|
+
protected readonly aztecNode: AztecNode;
|
|
41
|
+
protected readonly anchorBlockStore: AnchorBlockStore;
|
|
42
|
+
protected readonly recipientTaggingStore: RecipientTaggingStore;
|
|
43
|
+
protected readonly senderAddressBookStore: SenderAddressBookStore;
|
|
44
|
+
protected readonly capsuleStore: CapsuleStore;
|
|
45
|
+
protected readonly privateEventStore: PrivateEventStore;
|
|
46
|
+
protected readonly jobId: string;
|
|
22
47
|
protected log: import("@aztec/foundation/log").Logger;
|
|
23
48
|
protected readonly scopes?: AztecAddress[] | undefined;
|
|
24
49
|
isMisc: true;
|
|
@@ -26,10 +51,10 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
26
51
|
private aztecNrDebugLog;
|
|
27
52
|
constructor(contractAddress: AztecAddress,
|
|
28
53
|
/** List of transient auth witnesses to be used during this simulation */
|
|
29
|
-
authWitnesses: AuthWitness[], capsules: Capsule[],
|
|
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);
|
|
30
55
|
utilityAssertCompatibleOracleVersion(version: number): void;
|
|
31
56
|
utilityGetRandomField(): Fr;
|
|
32
|
-
utilityGetUtilityContext():
|
|
57
|
+
utilityGetUtilityContext(): UtilityContext;
|
|
33
58
|
/**
|
|
34
59
|
* Retrieve keys associated with a specific master public key and app address.
|
|
35
60
|
* @param pkMHash - The master public key hash.
|
|
@@ -38,37 +63,43 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
38
63
|
*/
|
|
39
64
|
utilityGetKeyValidationRequest(pkMHash: Fr): Promise<KeyValidationRequest>;
|
|
40
65
|
/**
|
|
41
|
-
* Fetches the index and sibling path of a leaf at a given block from
|
|
42
|
-
* @param
|
|
43
|
-
* @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.
|
|
44
68
|
* @param leafValue - The leaf value
|
|
45
|
-
* @returns The index and sibling path
|
|
69
|
+
* @returns The membership witness containing the leaf index and sibling path
|
|
46
70
|
*/
|
|
47
|
-
|
|
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>;
|
|
48
79
|
/**
|
|
49
80
|
* Returns a nullifier membership witness for a given nullifier at a given block.
|
|
50
|
-
* @param
|
|
81
|
+
* @param blockHash - The block hash at which to get the index.
|
|
51
82
|
* @param nullifier - Nullifier we try to find witness for.
|
|
52
83
|
* @returns The nullifier membership witness (if found).
|
|
53
84
|
*/
|
|
54
|
-
utilityGetNullifierMembershipWitness(
|
|
85
|
+
utilityGetNullifierMembershipWitness(blockHash: L2BlockHash, nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
|
|
55
86
|
/**
|
|
56
87
|
* Returns a low nullifier membership witness for a given nullifier at a given block.
|
|
57
|
-
* @param
|
|
88
|
+
* @param blockHash - The block hash at which to get the index.
|
|
58
89
|
* @param nullifier - Nullifier we try to find the low nullifier witness for.
|
|
59
90
|
* @returns The low nullifier membership witness (if found).
|
|
60
91
|
* @remarks Low nullifier witness can be used to perform a nullifier non-inclusion proof by leveraging the "linked
|
|
61
92
|
* list structure" of leaves and proving that a lower nullifier is pointing to a bigger next value than the nullifier
|
|
62
93
|
* we are trying to prove non-inclusion for.
|
|
63
94
|
*/
|
|
64
|
-
utilityGetLowNullifierMembershipWitness(
|
|
95
|
+
utilityGetLowNullifierMembershipWitness(blockHash: L2BlockHash, nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
|
|
65
96
|
/**
|
|
66
97
|
* Returns a public data tree witness for a given leaf slot at a given block.
|
|
67
|
-
* @param
|
|
98
|
+
* @param blockHash - The block hash at which to get the index.
|
|
68
99
|
* @param leafSlot - The slot of the public data tree to get the witness for.
|
|
69
100
|
* @returns - The witness
|
|
70
101
|
*/
|
|
71
|
-
utilityGetPublicDataWitness(
|
|
102
|
+
utilityGetPublicDataWitness(blockHash: L2BlockHash, leafSlot: Fr): Promise<PublicDataWitness | undefined>;
|
|
72
103
|
/**
|
|
73
104
|
* Fetches a block header of a given block.
|
|
74
105
|
* @param blockNumber - The number of a block of which to get the block header.
|
|
@@ -82,12 +113,14 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
82
113
|
* @throws An error if the account is not registered in the database.
|
|
83
114
|
*/
|
|
84
115
|
utilityGetPublicKeysAndPartialAddress(account: AztecAddress): Promise<CompleteAddress>;
|
|
116
|
+
protected getCompleteAddress(account: AztecAddress): Promise<CompleteAddress>;
|
|
85
117
|
/**
|
|
86
118
|
* Returns a contract instance associated with an address or throws if not found.
|
|
87
119
|
* @param address - Address.
|
|
88
120
|
* @returns A contract instance.
|
|
89
121
|
*/
|
|
90
122
|
utilityGetContractInstance(address: AztecAddress): Promise<ContractInstance>;
|
|
123
|
+
protected getContractInstance(address: AztecAddress): Promise<ContractInstance>;
|
|
91
124
|
/**
|
|
92
125
|
* Returns an auth witness for the given message hash. Checks on the list of transient witnesses
|
|
93
126
|
* for this transaction first, and falls back to the local database if not found.
|
|
@@ -104,7 +137,7 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
104
137
|
* Real notes coming from DB will have a leafIndex which
|
|
105
138
|
* represents their index in the note hash tree.
|
|
106
139
|
*
|
|
107
|
-
* @param owner - The owner of the notes.
|
|
140
|
+
* @param owner - The owner of the notes. If undefined, returns notes for all owners.
|
|
108
141
|
* @param storageSlot - The storage slot.
|
|
109
142
|
* @param numSelects - The number of valid selects in selectBy and selectValues.
|
|
110
143
|
* @param selectBy - An array of indices of the fields to selects.
|
|
@@ -117,7 +150,7 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
117
150
|
* @param status - The status of notes to fetch.
|
|
118
151
|
* @returns Array of note data.
|
|
119
152
|
*/
|
|
120
|
-
utilityGetNotes(owner: AztecAddress, 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[]>;
|
|
153
|
+
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[]>;
|
|
121
154
|
/**
|
|
122
155
|
* Check if a nullifier exists in the nullifier tree.
|
|
123
156
|
* @param innerNullifier - The inner nullifier.
|
|
@@ -125,31 +158,48 @@ export declare class UtilityExecutionOracle implements IMiscOracle, IUtilityExec
|
|
|
125
158
|
*/
|
|
126
159
|
utilityCheckNullifierExists(innerNullifier: Fr): Promise<boolean>;
|
|
127
160
|
/**
|
|
128
|
-
* Fetches a message from the
|
|
161
|
+
* Fetches a message from the executionStore, given its key.
|
|
129
162
|
* @param contractAddress - Address of a contract by which the message was emitted.
|
|
130
163
|
* @param messageHash - Hash of the message.
|
|
131
164
|
* @param secret - Secret used to compute a nullifier.
|
|
132
165
|
* @dev Contract address and secret are only used to compute the nullifier to get non-nullified messages
|
|
133
166
|
* @returns The l1 to l2 membership witness (index of message in the tree and sibling path).
|
|
134
167
|
*/
|
|
135
|
-
utilityGetL1ToL2MembershipWitness(contractAddress: AztecAddress, messageHash: Fr, secret: Fr): Promise<
|
|
168
|
+
utilityGetL1ToL2MembershipWitness(contractAddress: AztecAddress, messageHash: Fr, secret: Fr): Promise<MessageLoadOracleInputs<36>>;
|
|
136
169
|
/**
|
|
137
170
|
* Read the public storage data.
|
|
171
|
+
* @param blockHash - The block hash to read storage at.
|
|
138
172
|
* @param contractAddress - The address to read storage from.
|
|
139
173
|
* @param startStorageSlot - The starting storage slot.
|
|
140
|
-
* @param blockNumber - The block number to read storage at.
|
|
141
174
|
* @param numberOfElements - Number of elements to read from the starting storage slot.
|
|
142
175
|
*/
|
|
143
|
-
utilityStorageRead(contractAddress: AztecAddress, startStorageSlot: Fr,
|
|
176
|
+
utilityStorageRead(blockHash: L2BlockHash, contractAddress: AztecAddress, startStorageSlot: Fr, numberOfElements: number): Promise<Fr[]>;
|
|
144
177
|
utilityDebugLog(level: number, message: string, fields: Fr[]): void;
|
|
145
178
|
utilityFetchTaggedLogs(pendingTaggedLogArrayBaseSlot: Fr): Promise<void>;
|
|
146
|
-
|
|
179
|
+
/**
|
|
180
|
+
* Validates all note and event validation requests enqueued via `enqueue_note_for_validation` and
|
|
181
|
+
* `enqueue_event_for_validation`, inserting them into the note database and event store respectively, making them
|
|
182
|
+
* queryable via `get_notes` and `getPrivateEvents`.
|
|
183
|
+
*
|
|
184
|
+
* This automatically clears both validation request queues, so no further work needs to be done by the caller.
|
|
185
|
+
* @param contractAddress - The address of the contract that the logs are tagged for.
|
|
186
|
+
* @param noteValidationRequestsArrayBaseSlot - The base slot of capsule array containing note validation requests.
|
|
187
|
+
* @param eventValidationRequestsArrayBaseSlot - The base slot of capsule array containing event validation requests.
|
|
188
|
+
*/
|
|
189
|
+
utilityValidateAndStoreEnqueuedNotesAndEvents(contractAddress: AztecAddress, noteValidationRequestsArrayBaseSlot: Fr, eventValidationRequestsArrayBaseSlot: Fr): Promise<void>;
|
|
147
190
|
utilityBulkRetrieveLogs(contractAddress: AztecAddress, logRetrievalRequestsArrayBaseSlot: Fr, logRetrievalResponsesArrayBaseSlot: Fr): Promise<void>;
|
|
148
191
|
utilityStoreCapsule(contractAddress: AztecAddress, slot: Fr, capsule: Fr[]): Promise<void>;
|
|
149
192
|
utilityLoadCapsule(contractAddress: AztecAddress, slot: Fr): Promise<Fr[] | null>;
|
|
150
193
|
utilityDeleteCapsule(contractAddress: AztecAddress, slot: Fr): Promise<void>;
|
|
151
194
|
utilityCopyCapsule(contractAddress: AztecAddress, srcSlot: Fr, dstSlot: Fr, numEntries: number): Promise<void>;
|
|
152
195
|
utilityAes128Decrypt(ciphertext: Buffer, iv: Buffer, symKey: Buffer): Promise<Buffer>;
|
|
196
|
+
/**
|
|
197
|
+
* Retrieves the shared secret for a given address and ephemeral public key.
|
|
198
|
+
* @param address - The address to get the secret for.
|
|
199
|
+
* @param ephPk - The ephemeral public key to get the secret for.
|
|
200
|
+
* @returns The secret for the given address.
|
|
201
|
+
*/
|
|
153
202
|
utilityGetSharedSecret(address: AztecAddress, ephPk: Point): Promise<Point>;
|
|
203
|
+
protected getSharedSecret(address: AztecAddress, ephPk: Point): Promise<Point>;
|
|
154
204
|
}
|
|
155
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
205
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eV9leGVjdXRpb25fb3JhY2xlLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3RfZnVuY3Rpb25fc2ltdWxhdG9yL29yYWNsZS91dGlsaXR5X2V4ZWN1dGlvbl9vcmFjbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsY0FBYyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDOUUsT0FBTyxLQUFLLEVBQUUsV0FBVyxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFFbkUsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3BELE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUUxRCxPQUFPLEtBQUssRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQ2pFLE9BQU8sS0FBSyxFQUFFLFFBQVEsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2pELE9BQU8sS0FBSyxFQUFFLFdBQVcsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQzlELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDbEQsT0FBTyxLQUFLLEVBQUUsZUFBZSxFQUFFLGdCQUFnQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFaEYsT0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QixDQUN2QixlQUFlLEVBQUUsWUFBWSxFQUM3QixPQUFPLEVBQUUsRUFBRSxFQUNYLE9BQU8sRUFBRSxFQUFFLEVBQ1gsVUFBVSxFQUFFLE1BQU0sR0FDakIsT0FBTyxDQUFDLElBQUksQ0FBQyxDQU1mO0lBR00sb0JBQW9CLENBQUMsVUFBVSxFQUFFLE1BQU0sRUFBRSxFQUFFLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFBRSxNQUFNLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUczRjtJQUVEOzs7OztPQUtHO0lBQ0ksc0JBQXNCLENBQUMsT0FBTyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsS0FBSyxHQUFHLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FFakY7SUFFRCxVQUFnQixlQUFlLENBQUMsT0FBTyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsS0FBSyxHQUFHLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FRbkY7Q0FDRiJ9
|
|
@@ -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,KAAK,EAAE,MAAM,
|
|
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,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