@aztec/pxe 0.0.1-commit.d3ec352c → 0.0.1-commit.d431d1c
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 +41 -0
- package/dest/block_synchronizer/block_synchronizer.d.ts.map +1 -0
- package/dest/{synchronizer/synchronizer.js → block_synchronizer/block_synchronizer.js} +35 -30
- 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 +4 -4
- package/dest/config/index.d.ts.map +1 -1
- 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 +73 -29
- 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 +4 -3
- 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/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 +2 -2
- package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts.map +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 +14 -13
- 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 +7 -7
- package/dest/contract_function_simulator/oracle/oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/oracle.js +40 -28
- package/dest/contract_function_simulator/oracle/private_execution.d.ts +10 -16
- package/dest/contract_function_simulator/oracle/private_execution.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/private_execution.js +19 -18
- package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts +25 -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 +29 -44
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts +63 -21
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.js +162 -54
- 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/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 +37 -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 +3 -2
- package/dest/entrypoints/server/index.d.ts.map +1 -1
- package/dest/entrypoints/server/index.js +2 -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 +122 -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 +48 -0
- package/dest/notes/note_service.d.ts.map +1 -0
- package/dest/notes/note_service.js +147 -0
- package/dest/oracle_version.d.ts +2 -2
- package/dest/oracle_version.js +2 -2
- 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 +182 -215
- 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} +8 -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} +46 -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_data_provider/note_data_provider.d.ts → note_store/note_store.d.ts} +15 -13
- package/dest/storage/note_store/note_store.d.ts.map +1 -0
- package/dest/storage/{note_data_provider/note_data_provider.js → note_store/note_store.js} +105 -102
- package/dest/storage/private_event_store/private_event_store.d.ts +78 -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 +222 -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/index.d.ts +15 -6
- package/dest/tagging/index.d.ts.map +1 -1
- package/dest/tagging/index.js +14 -5
- package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts +14 -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 +14 -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 +29 -0
- package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts +20 -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 +32 -0
- package/dest/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.d.ts +20 -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 +57 -0
- package/dest/tree_membership/tree_membership_service.d.ts +50 -0
- package/dest/tree_membership/tree_membership_service.d.ts.map +1 -0
- package/dest/tree_membership/tree_membership_service.js +75 -0
- package/package.json +18 -18
- package/src/bin/check_oracle_version.ts +130 -20
- package/src/{synchronizer/synchronizer.ts → block_synchronizer/block_synchronizer.ts} +44 -30
- package/src/block_synchronizer/index.ts +1 -0
- package/src/config/index.ts +3 -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 +118 -30
- 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 +5 -1
- 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 +1 -1
- package/src/contract_function_simulator/noir-structs/utility_context.ts +6 -25
- package/src/contract_function_simulator/oracle/interfaces.ts +13 -12
- 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 +48 -32
- package/src/contract_function_simulator/oracle/private_execution.ts +22 -30
- package/src/contract_function_simulator/oracle/private_execution_oracle.ts +97 -58
- package/src/contract_function_simulator/oracle/utility_execution_oracle.ts +233 -63
- package/src/contract_function_simulator/pick_notes.ts +1 -1
- package/src/contract_function_simulator/proxied_contract_data_source.ts +24 -7
- package/src/debug/pxe_debug_utils.ts +48 -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 +2 -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 +204 -0
- package/src/notes/index.ts +1 -0
- package/src/notes/note_service.ts +194 -0
- package/src/oracle_version.ts +2 -2
- 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 +233 -279
- 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} +65 -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_data_provider/note_data_provider.ts → note_store/note_store.ts} +117 -105
- package/src/storage/private_event_store/private_event_store.ts +324 -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/index.ts +17 -5
- package/src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts +133 -0
- package/src/tagging/recipient_sync/utils/find_highest_indexes.ts +34 -0
- package/src/tagging/recipient_sync/utils/load_logs_for_range.ts +43 -0
- package/src/tagging/sender_sync/sync_sender_tagging_indexes.ts +97 -0
- package/src/tagging/sender_sync/utils/get_status_change_of_pending.ts +48 -0
- package/src/tagging/sender_sync/utils/load_and_store_new_tagging_indexes.ts +75 -0
- package/src/tree_membership/tree_membership_service.ts +97 -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.map +0 -1
- 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/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/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/tagging/siloed_tag.ts +0 -22
- package/src/tagging/tag.ts +0 -16
- package/src/tagging/utils.ts +0 -31
package/dest/storage/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
1
|
+
export * from './address_store/index.js';
|
|
2
|
+
export * from './capsule_store/index.js';
|
|
3
|
+
export * from './contract_store/index.js';
|
|
4
|
+
export * from './note_store/index.js';
|
|
5
|
+
export * from './anchor_block_store/index.js';
|
|
6
|
+
export * from './tagging_store/index.js';
|
|
7
7
|
export * from './metadata.js';
|
|
8
|
-
export * from './
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
export * from './private_event_store/private_event_store.js';
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdG9yYWdlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsOENBQThDLENBQUMifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,8CAA8C,CAAC"}
|
package/dest/storage/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
1
|
+
export * from './address_store/index.js';
|
|
2
|
+
export * from './capsule_store/index.js';
|
|
3
|
+
export * from './contract_store/index.js';
|
|
4
|
+
export * from './note_store/index.js';
|
|
5
|
+
export * from './anchor_block_store/index.js';
|
|
6
|
+
export * from './tagging_store/index.js';
|
|
7
7
|
export * from './metadata.js';
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './private_event_store/private_event_store.js';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { NoteDao } from '@aztec/stdlib/note';
|
|
2
|
+
export { NoteStore } from './note_store.js';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zdG9yYWdlL25vdGVfc3RvcmUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQyJ9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/note_store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dest/storage/{note_data_provider/note_data_provider.d.ts → note_store/note_store.d.ts}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import type { Fr } from '@aztec/foundation/
|
|
1
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
2
2
|
import type { AztecAsyncKVStore } from '@aztec/kv-store';
|
|
3
3
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
4
|
import type { DataInBlock } from '@aztec/stdlib/block';
|
|
5
5
|
import { type NotesFilter } from '@aztec/stdlib/note';
|
|
6
6
|
import { NoteDao } from '@aztec/stdlib/note';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* NoteStore manages the storage and retrieval of notes.
|
|
9
9
|
*
|
|
10
10
|
* Notes can be active or nullified. This class processes new notes, nullifications,
|
|
11
11
|
* and performs rollback handling in the case of a reorg.
|
|
12
12
|
**/
|
|
13
|
-
export declare class
|
|
13
|
+
export declare class NoteStore {
|
|
14
14
|
#private;
|
|
15
15
|
private constructor();
|
|
16
16
|
/**
|
|
17
|
-
* Creates and initializes a new
|
|
17
|
+
* Creates and initializes a new NoteStore instance.
|
|
18
18
|
*
|
|
19
|
-
* This factory method creates a
|
|
19
|
+
* This factory method creates a NoteStore and restores any existing
|
|
20
20
|
* scope-specific indexes from the database.
|
|
21
21
|
*
|
|
22
22
|
* @param store - The key-value store to use for persistence
|
|
23
|
-
* @returns Promise resolving to a fully initialized
|
|
23
|
+
* @returns Promise resolving to a fully initialized NoteStore instance
|
|
24
24
|
*/
|
|
25
|
-
static create(store: AztecAsyncKVStore): Promise<
|
|
25
|
+
static create(store: AztecAsyncKVStore): Promise<NoteStore>;
|
|
26
26
|
/**
|
|
27
27
|
* Adds a new scope to the note data provider.
|
|
28
28
|
*
|
|
@@ -36,9 +36,8 @@ export declare class NoteDataProvider {
|
|
|
36
36
|
/**
|
|
37
37
|
* Adds multiple notes to the data provider under the specified scope.
|
|
38
38
|
*
|
|
39
|
-
* Notes are stored using their
|
|
40
|
-
*
|
|
41
|
-
* for efficient retrieval.
|
|
39
|
+
* Notes are stored using their siloedNullifier as the key, which provides uniqueness. Each note is indexed
|
|
40
|
+
* by multiple criteria for efficient retrieval.
|
|
42
41
|
*
|
|
43
42
|
* @param notes - Notes to store
|
|
44
43
|
* @param scope - The scope (user/account) under which to store the notes
|
|
@@ -51,10 +50,12 @@ export declare class NoteDataProvider {
|
|
|
51
50
|
* specified block number. It restores any notes that were nullified after the given block
|
|
52
51
|
* and deletes any active notes created after that block.
|
|
53
52
|
*
|
|
53
|
+
* IMPORTANT: This method must be called within a transaction to ensure atomicity.
|
|
54
|
+
*
|
|
54
55
|
* @param blockNumber - The new chain tip after a reorg
|
|
55
56
|
* @param synchedBlockNumber - The block number up to which PXE managed to sync before the reorg happened.
|
|
56
57
|
*/
|
|
57
|
-
|
|
58
|
+
rollback(blockNumber: number, synchedBlockNumber: number): Promise<void>;
|
|
58
59
|
/**
|
|
59
60
|
* Retrieves notes based on the provided filter criteria.
|
|
60
61
|
*
|
|
@@ -63,7 +64,8 @@ export declare class NoteDataProvider {
|
|
|
63
64
|
*
|
|
64
65
|
* @param filter - Filter criteria including contractAddress (required), and optional
|
|
65
66
|
* owner, storageSlot, status, scopes, and siloedNullifier.
|
|
66
|
-
* @returns
|
|
67
|
+
* @returns Filtered and deduplicated notes (a note might be present in multiple scopes - we ensure it is only
|
|
68
|
+
* returned once if this is the case)
|
|
67
69
|
* @throws If filtering by an empty scopes array. Scopes have to be set to undefined or to a non-empty array.
|
|
68
70
|
*/
|
|
69
71
|
getNotes(filter: NotesFilter): Promise<NoteDao[]>;
|
|
@@ -80,4 +82,4 @@ export declare class NoteDataProvider {
|
|
|
80
82
|
*/
|
|
81
83
|
applyNullifiers(nullifiers: DataInBlock<Fr>[]): Promise<NoteDao[]>;
|
|
82
84
|
}
|
|
83
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
85
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90ZV9zdG9yZS5kLnRzIiwic291cmNlUm9vd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E,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGpF;IAiFD;;;;;;;;;;;OAWG;IACG,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAmHtD;IAED;;;;;;;;;;OAUG;IACH,eAAe,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAoDjE;CACF"}
|
|
@@ -1,52 +1,48 @@
|
|
|
1
|
-
import { toBufferBE } from '@aztec/foundation/bigint-buffer';
|
|
2
1
|
import { toArray } from '@aztec/foundation/iterable';
|
|
3
2
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
3
|
import { NoteStatus } from '@aztec/stdlib/note';
|
|
5
4
|
import { NoteDao } from '@aztec/stdlib/note';
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
6
|
+
* NoteStore manages the storage and retrieval of notes.
|
|
8
7
|
*
|
|
9
8
|
* Notes can be active or nullified. This class processes new notes, nullifications,
|
|
10
9
|
* and performs rollback handling in the case of a reorg.
|
|
11
|
-
**/ export class
|
|
10
|
+
**/ export class NoteStore {
|
|
12
11
|
#store;
|
|
13
|
-
|
|
14
|
-
#
|
|
15
|
-
#
|
|
16
|
-
#nullifiersByBlockNumber;
|
|
17
|
-
#nullifiedNotesToScope;
|
|
18
|
-
#nullifiedNotesByContract;
|
|
19
|
-
#nullifiedNotesByStorageSlot;
|
|
20
|
-
#
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
#notesByStorageSlotAndScope;
|
|
12
|
+
// Note that we use the siloedNullifier as the note id in the store as it's guaranteed to be unique.
|
|
13
|
+
/** noteId (siloedNullifier) -> NoteDao (serialized) */ #notes;
|
|
14
|
+
/** noteId (siloedNullifier) -> NoteDao (serialized) */ #nullifiedNotes;
|
|
15
|
+
/** blockNumber -> siloedNullifier */ #nullifiersByBlockNumber;
|
|
16
|
+
/** noteId (siloedNullifier) -> scope */ #nullifiedNotesToScope;
|
|
17
|
+
/** contractAddress -> noteId (siloedNullifier) */ #nullifiedNotesByContract;
|
|
18
|
+
/** storageSlot -> noteId (siloedNullifier) */ #nullifiedNotesByStorageSlot;
|
|
19
|
+
/** scope (AztecAddress) -> true */ #scopes;
|
|
20
|
+
/** noteId (siloedNullifier) -> scope */ #notesToScope;
|
|
21
|
+
/** scope -> MultiMap(contractAddress -> noteId) */ #notesByContractAndScope;
|
|
22
|
+
/** scope -> MultiMap(storageSlot -> noteId) */ #notesByStorageSlotAndScope;
|
|
25
23
|
constructor(store){
|
|
26
24
|
this.#store = store;
|
|
27
25
|
this.#notes = store.openMap('notes');
|
|
28
26
|
this.#nullifiedNotes = store.openMap('nullified_notes');
|
|
29
|
-
this.#nullifierToNoteId = store.openMap('nullifier_to_note');
|
|
30
27
|
this.#nullifiersByBlockNumber = store.openMultiMap('nullifier_to_block_number');
|
|
31
28
|
this.#nullifiedNotesToScope = store.openMultiMap('nullified_notes_to_scope');
|
|
32
29
|
this.#nullifiedNotesByContract = store.openMultiMap('nullified_notes_by_contract');
|
|
33
30
|
this.#nullifiedNotesByStorageSlot = store.openMultiMap('nullified_notes_by_storage_slot');
|
|
34
|
-
this.#nullifiedNotesByNullifier = store.openMap('nullified_notes_by_nullifier');
|
|
35
31
|
this.#scopes = store.openMap('scopes');
|
|
36
32
|
this.#notesToScope = store.openMultiMap('notes_to_scope');
|
|
37
33
|
this.#notesByContractAndScope = new Map();
|
|
38
34
|
this.#notesByStorageSlotAndScope = new Map();
|
|
39
35
|
}
|
|
40
36
|
/**
|
|
41
|
-
* Creates and initializes a new
|
|
37
|
+
* Creates and initializes a new NoteStore instance.
|
|
42
38
|
*
|
|
43
|
-
* This factory method creates a
|
|
39
|
+
* This factory method creates a NoteStore and restores any existing
|
|
44
40
|
* scope-specific indexes from the database.
|
|
45
41
|
*
|
|
46
42
|
* @param store - The key-value store to use for persistence
|
|
47
|
-
* @returns Promise resolving to a fully initialized
|
|
43
|
+
* @returns Promise resolving to a fully initialized NoteStore instance
|
|
48
44
|
*/ static async create(store) {
|
|
49
|
-
const pxeDB = new
|
|
45
|
+
const pxeDB = new NoteStore(store);
|
|
50
46
|
for await (const scope of pxeDB.#scopes.keysAsync()){
|
|
51
47
|
pxeDB.#notesByContractAndScope.set(scope, store.openMultiMap(`${scope}:notes_by_contract`));
|
|
52
48
|
pxeDB.#notesByStorageSlotAndScope.set(scope, store.openMultiMap(`${scope}:notes_by_storage_slot`));
|
|
@@ -74,9 +70,8 @@ import { NoteDao } from '@aztec/stdlib/note';
|
|
|
74
70
|
/**
|
|
75
71
|
* Adds multiple notes to the data provider under the specified scope.
|
|
76
72
|
*
|
|
77
|
-
* Notes are stored using their
|
|
78
|
-
*
|
|
79
|
-
* for efficient retrieval.
|
|
73
|
+
* Notes are stored using their siloedNullifier as the key, which provides uniqueness. Each note is indexed
|
|
74
|
+
* by multiple criteria for efficient retrieval.
|
|
80
75
|
*
|
|
81
76
|
* @param notes - Notes to store
|
|
82
77
|
* @param scope - The scope (user/account) under which to store the notes
|
|
@@ -86,12 +81,11 @@ import { NoteDao } from '@aztec/stdlib/note';
|
|
|
86
81
|
await this.addScope(scope);
|
|
87
82
|
}
|
|
88
83
|
for (const dao of notes){
|
|
89
|
-
const
|
|
90
|
-
await this.#notes.set(
|
|
91
|
-
await this.#notesToScope.set(
|
|
92
|
-
await this.#
|
|
93
|
-
await this.#
|
|
94
|
-
await this.#notesByStorageSlotAndScope.get(scope.toString()).set(dao.storageSlot.toString(), noteIndex);
|
|
84
|
+
const noteId = dao.siloedNullifier.toString();
|
|
85
|
+
await this.#notes.set(noteId, dao.toBuffer());
|
|
86
|
+
await this.#notesToScope.set(noteId, scope.toString());
|
|
87
|
+
await this.#notesByContractAndScope.get(scope.toString()).set(dao.contractAddress.toString(), noteId);
|
|
88
|
+
await this.#notesByStorageSlotAndScope.get(scope.toString()).set(dao.storageSlot.toString(), noteId);
|
|
95
89
|
}
|
|
96
90
|
});
|
|
97
91
|
}
|
|
@@ -102,9 +96,11 @@ import { NoteDao } from '@aztec/stdlib/note';
|
|
|
102
96
|
* specified block number. It restores any notes that were nullified after the given block
|
|
103
97
|
* and deletes any active notes created after that block.
|
|
104
98
|
*
|
|
99
|
+
* IMPORTANT: This method must be called within a transaction to ensure atomicity.
|
|
100
|
+
*
|
|
105
101
|
* @param blockNumber - The new chain tip after a reorg
|
|
106
102
|
* @param synchedBlockNumber - The block number up to which PXE managed to sync before the reorg happened.
|
|
107
|
-
*/ async
|
|
103
|
+
*/ async rollback(blockNumber, synchedBlockNumber) {
|
|
108
104
|
await this.#rewindNullifiersAfterBlock(blockNumber, synchedBlockNumber);
|
|
109
105
|
await this.#deleteActiveNotesAfterBlock(blockNumber);
|
|
110
106
|
}
|
|
@@ -115,24 +111,21 @@ import { NoteDao } from '@aztec/stdlib/note';
|
|
|
115
111
|
* Note: This only affects #notes (active notes), not #nullifiedNotes.
|
|
116
112
|
*
|
|
117
113
|
* @param blockNumber - Notes created after this block number will be deleted
|
|
118
|
-
*/ #deleteActiveNotesAfterBlock(blockNumber) {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
await this.#notesByContractAndScope.get(scope).deleteValue(noteDao.contractAddress.toString(), noteIndex);
|
|
131
|
-
await this.#notesByStorageSlotAndScope.get(scope).deleteValue(noteDao.storageSlot.toString(), noteIndex);
|
|
132
|
-
}
|
|
114
|
+
*/ async #deleteActiveNotesAfterBlock(blockNumber) {
|
|
115
|
+
const notes = await toArray(this.#notes.valuesAsync());
|
|
116
|
+
for (const note of notes){
|
|
117
|
+
const noteDao = NoteDao.fromBuffer(note);
|
|
118
|
+
if (noteDao.l2BlockNumber > blockNumber) {
|
|
119
|
+
const noteId = noteDao.siloedNullifier.toString();
|
|
120
|
+
await this.#notes.delete(noteId);
|
|
121
|
+
await this.#notesToScope.delete(noteId);
|
|
122
|
+
const scopes = await toArray(this.#scopes.keysAsync());
|
|
123
|
+
for (const scope of scopes){
|
|
124
|
+
await this.#notesByContractAndScope.get(scope).deleteValue(noteDao.contractAddress.toString(), noteId);
|
|
125
|
+
await this.#notesByStorageSlotAndScope.get(scope).deleteValue(noteDao.storageSlot.toString(), noteId);
|
|
133
126
|
}
|
|
134
127
|
}
|
|
135
|
-
}
|
|
128
|
+
}
|
|
136
129
|
}
|
|
137
130
|
/**
|
|
138
131
|
* Rewinds nullifications after a given block number.
|
|
@@ -144,39 +137,38 @@ import { NoteDao } from '@aztec/stdlib/note';
|
|
|
144
137
|
* @param blockNumber - Revert nullifications that occurred after this block
|
|
145
138
|
* @param synchedBlockNumber - Upper bound for the block range to process
|
|
146
139
|
*/ async #rewindNullifiersAfterBlock(blockNumber, synchedBlockNumber) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
140
|
+
const noteIdsToReinsert = [];
|
|
141
|
+
const currentBlockNumber = blockNumber + 1;
|
|
142
|
+
for(let i = currentBlockNumber; i <= synchedBlockNumber; i++){
|
|
143
|
+
// noteId === siloedNullifier.toString(), so we can use nullifiers directly as noteIds
|
|
144
|
+
noteIdsToReinsert.push(...await toArray(this.#nullifiersByBlockNumber.getValuesAsync(i)));
|
|
145
|
+
}
|
|
146
|
+
const nullifiedNoteBuffers = await Promise.all(noteIdsToReinsert.map((noteId)=>this.#nullifiedNotes.getAsync(noteId)));
|
|
147
|
+
const noteDaos = nullifiedNoteBuffers.filter((buffer)=>buffer != undefined).map((buffer)=>NoteDao.fromBuffer(buffer));
|
|
148
|
+
for (const dao of noteDaos){
|
|
149
|
+
const noteId = dao.siloedNullifier.toString();
|
|
150
|
+
const scopes = await toArray(this.#nullifiedNotesToScope.getValuesAsync(noteId));
|
|
151
|
+
if (scopes.length === 0) {
|
|
152
|
+
// We should never run into this error because notes always have a scope assigned to them - either on initial
|
|
153
|
+
// insertion via `addNotes` or when removing their nullifiers.
|
|
154
|
+
throw new Error(`No scopes found for nullified note with nullifier ${noteId}`);
|
|
152
155
|
}
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
await this.#notes.set(noteIndex, dao.toBuffer());
|
|
160
|
-
await this.#nullifierToNoteId.set(dao.siloedNullifier.toString(), noteIndex);
|
|
161
|
-
const scopes = await toArray(this.#nullifiedNotesToScope.getValuesAsync(noteIndex));
|
|
162
|
-
if (scopes.length === 0) {
|
|
163
|
-
// We should never run into this error because notes always have a scope assigned to them - either on initial
|
|
164
|
-
// insertion via `addNotes` or when removing their nullifiers.
|
|
165
|
-
throw new Error(`No scopes found for nullified note with index ${noteIndex}`);
|
|
166
|
-
}
|
|
167
|
-
for (const scope of scopes){
|
|
168
|
-
await this.#notesByContractAndScope.get(scope.toString()).set(dao.contractAddress.toString(), noteIndex);
|
|
169
|
-
await this.#notesByStorageSlotAndScope.get(scope.toString()).set(dao.storageSlot.toString(), noteIndex);
|
|
170
|
-
await this.#notesToScope.set(noteIndex, scope);
|
|
171
|
-
}
|
|
172
|
-
await this.#nullifiedNotes.delete(noteIndex);
|
|
173
|
-
await this.#nullifiedNotesToScope.delete(noteIndex);
|
|
174
|
-
await this.#nullifiersByBlockNumber.deleteValue(dao.l2BlockNumber, dao.siloedNullifier.toString());
|
|
175
|
-
await this.#nullifiedNotesByContract.deleteValue(dao.contractAddress.toString(), noteIndex);
|
|
176
|
-
await this.#nullifiedNotesByStorageSlot.deleteValue(dao.storageSlot.toString(), noteIndex);
|
|
177
|
-
await this.#nullifiedNotesByNullifier.delete(dao.siloedNullifier.toString());
|
|
156
|
+
for (const scope of scopes){
|
|
157
|
+
await Promise.all([
|
|
158
|
+
this.#notesByContractAndScope.get(scope.toString()).set(dao.contractAddress.toString(), noteId),
|
|
159
|
+
this.#notesByStorageSlotAndScope.get(scope.toString()).set(dao.storageSlot.toString(), noteId),
|
|
160
|
+
this.#notesToScope.set(noteId, scope)
|
|
161
|
+
]);
|
|
178
162
|
}
|
|
179
|
-
|
|
163
|
+
await Promise.all([
|
|
164
|
+
this.#notes.set(noteId, dao.toBuffer()),
|
|
165
|
+
this.#nullifiedNotes.delete(noteId),
|
|
166
|
+
this.#nullifiedNotesToScope.delete(noteId),
|
|
167
|
+
this.#nullifiersByBlockNumber.deleteValue(dao.l2BlockNumber, dao.siloedNullifier.toString()),
|
|
168
|
+
this.#nullifiedNotesByContract.deleteValue(dao.contractAddress.toString(), noteId),
|
|
169
|
+
this.#nullifiedNotesByStorageSlot.deleteValue(dao.storageSlot.toString(), noteId)
|
|
170
|
+
]);
|
|
171
|
+
}
|
|
180
172
|
}
|
|
181
173
|
/**
|
|
182
174
|
* Retrieves notes based on the provided filter criteria.
|
|
@@ -186,7 +178,8 @@ import { NoteDao } from '@aztec/stdlib/note';
|
|
|
186
178
|
*
|
|
187
179
|
* @param filter - Filter criteria including contractAddress (required), and optional
|
|
188
180
|
* owner, storageSlot, status, scopes, and siloedNullifier.
|
|
189
|
-
* @returns
|
|
181
|
+
* @returns Filtered and deduplicated notes (a note might be present in multiple scopes - we ensure it is only
|
|
182
|
+
* returned once if this is the case)
|
|
190
183
|
* @throws If filtering by an empty scopes array. Scopes have to be set to undefined or to a non-empty array.
|
|
191
184
|
*/ async getNotes(filter) {
|
|
192
185
|
filter.status = filter.status ?? NoteStatus.ACTIVE;
|
|
@@ -249,7 +242,24 @@ import { NoteDao } from '@aztec/stdlib/note';
|
|
|
249
242
|
result.push(note);
|
|
250
243
|
}
|
|
251
244
|
}
|
|
252
|
-
|
|
245
|
+
// A note might be present in multiple scopes - we ensure it is only returned once
|
|
246
|
+
const deduplicated = [];
|
|
247
|
+
for (const note of result){
|
|
248
|
+
if (!deduplicated.some((existing)=>existing.equals(note))) {
|
|
249
|
+
deduplicated.push(note);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
// Sort by block number, then by tx index within block, then by note index within tx
|
|
253
|
+
deduplicated.sort((a, b)=>{
|
|
254
|
+
if (a.l2BlockNumber !== b.l2BlockNumber) {
|
|
255
|
+
return a.l2BlockNumber - b.l2BlockNumber;
|
|
256
|
+
}
|
|
257
|
+
if (a.txIndexInBlock !== b.txIndexInBlock) {
|
|
258
|
+
return a.txIndexInBlock - b.txIndexInBlock;
|
|
259
|
+
}
|
|
260
|
+
return a.noteIndexInTx - b.noteIndexInTx;
|
|
261
|
+
});
|
|
262
|
+
return deduplicated;
|
|
253
263
|
}
|
|
254
264
|
/**
|
|
255
265
|
* Transitions notes from "active" to "nullified" state.
|
|
@@ -269,21 +279,16 @@ import { NoteDao } from '@aztec/stdlib/note';
|
|
|
269
279
|
const nullifiedNotes = [];
|
|
270
280
|
for (const blockScopedNullifier of nullifiers){
|
|
271
281
|
const { data: nullifier, l2BlockNumber: blockNumber } = blockScopedNullifier;
|
|
272
|
-
const
|
|
273
|
-
const
|
|
274
|
-
if (!
|
|
275
|
-
// Check if already nullified
|
|
276
|
-
|
|
277
|
-
if (alreadyNullified) {
|
|
282
|
+
const noteId = nullifier.toString();
|
|
283
|
+
const noteBuffer = await this.#notes.getAsync(noteId);
|
|
284
|
+
if (!noteBuffer) {
|
|
285
|
+
// Check if already nullified (noteId === siloedNullifier, so we can check #nullifiedNotes directly)
|
|
286
|
+
if (await this.#nullifiedNotes.hasAsync(noteId)) {
|
|
278
287
|
throw new Error(`Nullifier already applied in applyNullifiers`);
|
|
279
288
|
}
|
|
280
289
|
throw new Error('Nullifier not found in applyNullifiers');
|
|
281
290
|
}
|
|
282
|
-
const
|
|
283
|
-
if (!noteBuffer) {
|
|
284
|
-
throw new Error('Note not found in applyNullifiers');
|
|
285
|
-
}
|
|
286
|
-
const noteScopes = await toArray(this.#notesToScope.getValuesAsync(noteIndex));
|
|
291
|
+
const noteScopes = await toArray(this.#notesToScope.getValuesAsync(noteId));
|
|
287
292
|
if (noteScopes.length === 0) {
|
|
288
293
|
// We should never run into this error because notes always have a scope assigned to them - either on initial
|
|
289
294
|
// insertion via `addNotes` or when removing their nullifiers.
|
|
@@ -291,22 +296,20 @@ import { NoteDao } from '@aztec/stdlib/note';
|
|
|
291
296
|
}
|
|
292
297
|
const note = NoteDao.fromBuffer(noteBuffer);
|
|
293
298
|
nullifiedNotes.push(note);
|
|
294
|
-
await this.#notes.delete(
|
|
295
|
-
await this.#notesToScope.delete(
|
|
299
|
+
await this.#notes.delete(noteId);
|
|
300
|
+
await this.#notesToScope.delete(noteId);
|
|
296
301
|
const scopes = await toArray(this.#scopes.keysAsync());
|
|
297
302
|
for (const scope of scopes){
|
|
298
|
-
await this.#notesByContractAndScope.get(scope).deleteValue(note.contractAddress.toString(),
|
|
299
|
-
await this.#notesByStorageSlotAndScope.get(scope).deleteValue(note.storageSlot.toString(),
|
|
303
|
+
await this.#notesByContractAndScope.get(scope).deleteValue(note.contractAddress.toString(), noteId);
|
|
304
|
+
await this.#notesByStorageSlotAndScope.get(scope).deleteValue(note.storageSlot.toString(), noteId);
|
|
300
305
|
}
|
|
301
306
|
for (const scope of noteScopes){
|
|
302
|
-
await this.#nullifiedNotesToScope.set(
|
|
307
|
+
await this.#nullifiedNotesToScope.set(noteId, scope);
|
|
303
308
|
}
|
|
304
|
-
await this.#nullifiedNotes.set(
|
|
305
|
-
await this.#nullifiersByBlockNumber.set(blockNumber,
|
|
306
|
-
await this.#nullifiedNotesByContract.set(note.contractAddress.toString(),
|
|
307
|
-
await this.#nullifiedNotesByStorageSlot.set(note.storageSlot.toString(),
|
|
308
|
-
await this.#nullifiedNotesByNullifier.set(nullifier.toString(), noteIndex);
|
|
309
|
-
await this.#nullifierToNoteId.delete(nullifier.toString());
|
|
309
|
+
await this.#nullifiedNotes.set(noteId, note.toBuffer());
|
|
310
|
+
await this.#nullifiersByBlockNumber.set(blockNumber, noteId);
|
|
311
|
+
await this.#nullifiedNotesByContract.set(note.contractAddress.toString(), noteId);
|
|
312
|
+
await this.#nullifiedNotesByStorageSlot.set(note.storageSlot.toString(), noteId);
|
|
310
313
|
}
|
|
311
314
|
return nullifiedNotes;
|
|
312
315
|
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
2
|
+
import type { AztecAsyncKVStore } from '@aztec/kv-store';
|
|
3
|
+
import type { EventSelector } from '@aztec/stdlib/abi';
|
|
4
|
+
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
5
|
+
import { type InTx, TxHash } from '@aztec/stdlib/tx';
|
|
6
|
+
import type { StagedStore } from '../../job_coordinator/job_coordinator.js';
|
|
7
|
+
import type { PackedPrivateEvent } from '../../pxe.js';
|
|
8
|
+
export type PrivateEventStoreFilter = {
|
|
9
|
+
contractAddress: AztecAddress;
|
|
10
|
+
fromBlock: number;
|
|
11
|
+
toBlock: number;
|
|
12
|
+
scopes: AztecAddress[];
|
|
13
|
+
txHash?: TxHash;
|
|
14
|
+
};
|
|
15
|
+
type PrivateEventMetadata = InTx & {
|
|
16
|
+
contractAddress: AztecAddress;
|
|
17
|
+
scope: AztecAddress;
|
|
18
|
+
/** The index of the tx within the block */
|
|
19
|
+
txIndexInBlock: number;
|
|
20
|
+
/** The index of the event within the tx (based on nullifier position) */
|
|
21
|
+
eventIndexInTx: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Stores decrypted private event logs.
|
|
25
|
+
*/
|
|
26
|
+
export declare class PrivateEventStore implements StagedStore {
|
|
27
|
+
#private;
|
|
28
|
+
readonly storeName: string;
|
|
29
|
+
logger: import("@aztec/foundation/log").Logger;
|
|
30
|
+
constructor(store: AztecAsyncKVStore);
|
|
31
|
+
commit(jobId: string): Promise<void>;
|
|
32
|
+
discardStaged(jobId: string): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Store a private event log.
|
|
35
|
+
* @param eventSelector - The event selector of the event.
|
|
36
|
+
* @param randomness - The randomness used for the event commitment.
|
|
37
|
+
* @param msgContent - The content of the event.
|
|
38
|
+
* @param siloedEventCommitment - The siloed event commitment (used as unique identifier).
|
|
39
|
+
* @param metadata
|
|
40
|
+
* contractAddress - The address of the contract that emitted the event.
|
|
41
|
+
* scope - The address to which the event is scoped.
|
|
42
|
+
* txHash - The transaction hash of the event log.
|
|
43
|
+
* blockNumber - The block number in which the event was emitted.
|
|
44
|
+
*/
|
|
45
|
+
storePrivateEventLog(eventSelector: EventSelector, randomness: Fr, msgContent: Fr[], siloedEventCommitment: Fr, metadata: PrivateEventMetadata, jobId: string): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the private events given search parameters.
|
|
48
|
+
* @param eventSelector - The event selector to filter by.
|
|
49
|
+
* @param filter - Filtering criteria:
|
|
50
|
+
* contractAddress: The address of the contract to get events from.
|
|
51
|
+
* fromBlock: The block number to search from (inclusive).
|
|
52
|
+
* toBlock: The block number to search upto (exclusive).
|
|
53
|
+
* scope: - The addresses that decrypted the logs.
|
|
54
|
+
* @returns - The event log contents, augmented with metadata about the transaction and block in which the event was
|
|
55
|
+
* included.
|
|
56
|
+
*/
|
|
57
|
+
getPrivateEvents(eventSelector: EventSelector, filter: PrivateEventStoreFilter): Promise<PackedPrivateEvent[]>;
|
|
58
|
+
/**
|
|
59
|
+
* Rolls back private events that were stored after a given `blockNumber` and up to `synchedBlockNumber` (the block
|
|
60
|
+
* number up to which PXE managed to sync before the reorg happened).
|
|
61
|
+
*
|
|
62
|
+
* We don't need staged writes for a rollback since it's handled in the context of a blockchain rewind.
|
|
63
|
+
*
|
|
64
|
+
* Rollbacks are handled by the BlockSynchronizer, which runs a DB transaction across stores when it detects a
|
|
65
|
+
* re-org, including setting the new anchor block after rolling back.
|
|
66
|
+
*
|
|
67
|
+
* So if anything fails in the process of rolling back any store, all DB changes occurring during rollbacks will be
|
|
68
|
+
* lost and the anchor block will not be updated; which means this code will eventually need to run again
|
|
69
|
+
* (i.e.: PXE will detect it's basing it work on an invalid block hash, then which re-triggers rewind).
|
|
70
|
+
*
|
|
71
|
+
* For further details, refer to `BlockSynchronizer#handleBlockStreamEvent`.
|
|
72
|
+
*
|
|
73
|
+
* IMPORTANT: This method must be called within a transaction to ensure atomicity.
|
|
74
|
+
*/
|
|
75
|
+
rollback(blockNumber: number, synchedBlockNumber: number): Promise<void>;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZV9ldmVudF9zdG9yZS5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3N0b3JhZ2UvcHJpdmF0ZV9ldmVudF9zdG9yZS9wcml2YXRlX2V2ZW50X3N0b3JlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUdwRCxPQUFPLEtBQUssRUFBRSxpQkFBaUIsRUFBcUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM1RixPQUFPLEtBQUssRUFBRSxhQUFhLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUN2RCxPQUFPLEtBQUssRUFBRSxZQUFZLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUVoRSxPQUFPLEVBQUUsS0FBSyxJQUFJLEVBQUUsTUFBTSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFckQsT0FBTyxLQUFLLEVBQUUsV0FBVyxFQUFFLE1BQU0sMENBQTBDLENBQUM7QUFDNUUsT0FBTyxLQUFLLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFdkQsTUFBTSxNQUFNLHVCQUF1QixHQUFHO0lBQ3BDLGVBQWUsRUFBRSxZQUFZLENBQUM7SUFDOUIsU0FBUyxFQUFFLE1BQU0sQ0FBQztJQUNsQixPQUFPLEVBQUUsTUFBTSxD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BQU8sQ0FBQyxrQkFBa0IsRUFBRSxDQUFDLENBdUQvQjtJQUVEOzs7Ozs7Ozs7Ozs7Ozs7O09BZ0JHO0lBQ1UsUUFBUSxDQUFDLFdBQVcsRUFBRSxNQUFNLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0E0QnBGO0NBQ0YifQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private_event_store.d.ts","sourceRoot":"","sources":["../../../src/storage/private_event_store/private_event_store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAGpD,OAAO,KAAK,EAAE,iBAAiB,EAAqC,MAAM,iBAAiB,CAAC;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,MAAM,uBAAuB,GAAG;IACpC,eAAe,EAAE,YAAY,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAgBF,KAAK,oBAAoB,GAAG,IAAI,GAAG;IACjC,eAAe,EAAE,YAAY,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,2CAA2C;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,yEAAyE;IACzE,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,qBAAa,iBAAkB,YAAW,W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