@aztec/pxe 0.0.1-commit.b655e406 → 0.0.1-commit.c0b82b2
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/access_scopes.d.ts +9 -0
- package/dest/access_scopes.d.ts.map +1 -0
- package/dest/access_scopes.js +6 -0
- package/dest/bin/check_oracle_version.d.ts +1 -1
- package/dest/bin/check_oracle_version.js +105 -15
- package/dest/block_synchronizer/block_synchronizer.d.ts +45 -0
- package/dest/block_synchronizer/block_synchronizer.d.ts.map +1 -0
- package/dest/block_synchronizer/block_synchronizer.js +153 -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 -12
- package/dest/config/index.d.ts.map +1 -1
- package/dest/config/index.js +24 -13
- package/dest/config/package_info.d.ts +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 +78 -26
- package/dest/contract_function_simulator/contract_function_simulator.d.ts.map +1 -1
- package/dest/contract_function_simulator/contract_function_simulator.js +226 -82
- package/dest/contract_function_simulator/execution_note_cache.d.ts +25 -14
- package/dest/contract_function_simulator/execution_note_cache.d.ts.map +1 -1
- package/dest/contract_function_simulator/execution_note_cache.js +59 -34
- package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts +6 -6
- package/dest/contract_function_simulator/execution_tagging_index_cache.d.ts.map +1 -1
- package/dest/contract_function_simulator/execution_tagging_index_cache.js +4 -4
- 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 +7 -4
- 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 +3 -3
- 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 +7 -5
- 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 +13 -4
- 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/index.d.ts +1 -1
- package/dest/contract_function_simulator/oracle/interfaces.d.ts +30 -20
- package/dest/contract_function_simulator/oracle/interfaces.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/message_load_oracle_inputs.d.ts +2 -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 +14 -8
- package/dest/contract_function_simulator/oracle/note_packing_utils.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/note_packing_utils.js +16 -11
- package/dest/contract_function_simulator/oracle/oracle.d.ts +15 -12
- package/dest/contract_function_simulator/oracle/oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/oracle.js +93 -53
- package/dest/contract_function_simulator/oracle/private_execution.d.ts +2 -27
- 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 +56 -52
- package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/private_execution_oracle.js +120 -66
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts +114 -39
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts.map +1 -1
- package/dest/contract_function_simulator/oracle/utility_execution_oracle.js +214 -86
- 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_logging.d.ts +22 -0
- package/dest/contract_logging.d.ts.map +1 -0
- package/dest/contract_logging.js +23 -0
- package/dest/contract_sync/contract_sync_service.d.ts +43 -0
- package/dest/contract_sync/contract_sync_service.d.ts.map +1 -0
- package/dest/contract_sync/contract_sync_service.js +97 -0
- package/dest/contract_sync/helpers.d.ts +29 -0
- package/dest/contract_sync/helpers.d.ts.map +1 -0
- package/dest/contract_sync/helpers.js +55 -0
- package/dest/debug/pxe_debug_utils.d.ts +45 -0
- package/dest/debug/pxe_debug_utils.d.ts.map +1 -0
- package/dest/debug/pxe_debug_utils.js +48 -0
- package/dest/entrypoints/client/bundle/index.d.ts +4 -2
- package/dest/entrypoints/client/bundle/index.d.ts.map +1 -1
- package/dest/entrypoints/client/bundle/index.js +3 -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 +33 -10
- package/dest/entrypoints/client/lazy/index.d.ts +4 -2
- package/dest/entrypoints/client/lazy/index.d.ts.map +1 -1
- package/dest/entrypoints/client/lazy/index.js +3 -1
- package/dest/entrypoints/client/lazy/utils.d.ts +2 -2
- package/dest/entrypoints/client/lazy/utils.d.ts.map +1 -1
- package/dest/entrypoints/client/lazy/utils.js +34 -11
- package/dest/entrypoints/pxe_creation_options.d.ts +7 -3
- package/dest/entrypoints/pxe_creation_options.d.ts.map +1 -1
- package/dest/entrypoints/server/index.d.ts +6 -2
- package/dest/entrypoints/server/index.d.ts.map +1 -1
- package/dest/entrypoints/server/index.js +5 -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 +40 -28
- 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 +15 -0
- package/dest/events/event_service.d.ts.map +1 -0
- package/dest/events/event_service.js +44 -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 +75 -0
- package/dest/job_coordinator/job_coordinator.d.ts.map +1 -0
- package/dest/job_coordinator/job_coordinator.js +94 -0
- package/dest/logs/log_service.d.ts +29 -0
- package/dest/logs/log_service.d.ts.map +1 -0
- package/dest/logs/log_service.js +118 -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 +148 -0
- package/dest/notes_filter.d.ts +25 -0
- package/dest/notes_filter.d.ts.map +1 -0
- package/dest/notes_filter.js +4 -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/compute_tx_expiration_timestamp.d.ts +4 -0
- package/dest/private_kernel/hints/compute_tx_expiration_timestamp.d.ts.map +1 -0
- package/dest/private_kernel/hints/{compute_tx_include_by_timestamp.js → compute_tx_expiration_timestamp.js} +12 -12
- package/dest/private_kernel/hints/index.d.ts +3 -3
- package/dest/private_kernel/hints/index.d.ts.map +1 -1
- package/dest/private_kernel/hints/index.js +2 -2
- package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.d.ts +29 -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} +144 -77
- package/dest/private_kernel/hints/test_utils.d.ts +122 -0
- package/dest/private_kernel/hints/test_utils.d.ts.map +1 -0
- package/dest/private_kernel/hints/test_utils.js +203 -0
- package/dest/private_kernel/index.d.ts +1 -1
- package/dest/private_kernel/private_kernel_execution_prover.d.ts +3 -2
- package/dest/private_kernel/private_kernel_execution_prover.d.ts.map +1 -1
- package/dest/private_kernel/private_kernel_execution_prover.js +33 -25
- package/dest/private_kernel/private_kernel_oracle.d.ts +26 -25
- package/dest/private_kernel/private_kernel_oracle.d.ts.map +1 -1
- package/dest/private_kernel/private_kernel_oracle.js +94 -2
- package/dest/pxe.d.ts +121 -103
- package/dest/pxe.d.ts.map +1 -1
- package/dest/pxe.js +268 -279
- 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} +13 -12
- 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/anchor_block_store/anchor_block_store.d.ts +17 -0
- 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} +10 -10
- package/dest/storage/anchor_block_store/index.d.ts +2 -0
- 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 +253 -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_store/contract_store.d.ts +93 -0
- package/dest/storage/contract_store/contract_store.d.ts.map +1 -0
- package/dest/storage/contract_store/contract_store.js +309 -0
- 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/metadata.d.ts +2 -2
- package/dest/storage/metadata.js +1 -1
- 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 +83 -0
- package/dest/storage/note_store/note_store.d.ts.map +1 -0
- package/dest/storage/note_store/note_store.js +343 -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 +273 -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 +111 -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 +36 -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 +348 -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 +60 -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 +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 +33 -0
- package/dest/tagging/sender_sync/sync_sender_tagging_indexes.d.ts +17 -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 +71 -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 +18 -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 +59 -0
- package/package.json +29 -19
- package/src/access_scopes.ts +9 -0
- package/src/bin/check_oracle_version.ts +131 -20
- package/src/block_synchronizer/block_synchronizer.ts +178 -0
- package/src/block_synchronizer/index.ts +1 -0
- package/src/config/index.ts +24 -25
- 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 +396 -116
- package/src/contract_function_simulator/execution_note_cache.ts +58 -28
- package/src/contract_function_simulator/execution_tagging_index_cache.ts +6 -6
- 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 +7 -3
- package/src/contract_function_simulator/noir-structs/log_retrieval_request.ts +6 -5
- package/src/contract_function_simulator/noir-structs/log_retrieval_response.ts +2 -2
- package/src/contract_function_simulator/noir-structs/note_validation_request.ts +15 -3
- package/src/contract_function_simulator/noir-structs/utility_context.ts +6 -25
- package/src/contract_function_simulator/oracle/interfaces.ts +43 -18
- package/src/contract_function_simulator/oracle/message_load_oracle_inputs.ts +1 -1
- package/src/contract_function_simulator/oracle/note_packing_utils.ts +30 -14
- package/src/contract_function_simulator/oracle/oracle.ts +111 -49
- package/src/contract_function_simulator/oracle/private_execution.ts +2 -68
- package/src/contract_function_simulator/oracle/private_execution_oracle.ts +166 -98
- package/src/contract_function_simulator/oracle/utility_execution_oracle.ts +350 -91
- 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_logging.ts +39 -0
- package/src/contract_sync/contract_sync_service.ts +152 -0
- package/src/contract_sync/helpers.ts +98 -0
- package/src/debug/pxe_debug_utils.ts +93 -0
- package/src/entrypoints/client/bundle/index.ts +3 -1
- package/src/entrypoints/client/bundle/utils.ts +25 -18
- package/src/entrypoints/client/lazy/index.ts +3 -1
- package/src/entrypoints/client/lazy/utils.ts +26 -19
- package/src/entrypoints/pxe_creation_options.ts +6 -2
- package/src/entrypoints/server/index.ts +5 -1
- package/src/entrypoints/server/utils.ts +34 -56
- package/src/error_enriching.ts +7 -15
- package/src/events/event_service.ts +71 -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 +150 -0
- package/src/logs/log_service.ts +213 -0
- package/src/notes/index.ts +1 -0
- package/src/notes/note_service.ts +196 -0
- package/src/notes_filter.ts +26 -0
- package/src/oracle_version.ts +4 -3
- package/src/private_kernel/hints/{compute_tx_include_by_timestamp.ts → compute_tx_expiration_timestamp.ts} +13 -13
- package/src/private_kernel/hints/index.ts +2 -2
- package/src/private_kernel/hints/{build_private_kernel_reset_private_inputs.ts → private_kernel_reset_private_inputs_builder.ts} +199 -145
- package/src/private_kernel/hints/test_utils.ts +325 -0
- package/src/private_kernel/private_kernel_execution_prover.ts +38 -34
- package/src/private_kernel/private_kernel_oracle.ts +118 -37
- package/src/pxe.ts +410 -382
- package/src/storage/{address_data_provider/address_data_provider.ts → address_store/address_store.ts} +16 -16
- 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} +10 -11
- 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_store/contract_store.ts +429 -0
- 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/metadata.ts +1 -1
- package/src/storage/note_store/index.ts +2 -0
- package/src/storage/note_store/note_store.ts +418 -0
- package/src/storage/note_store/stored_note.ts +48 -0
- package/src/storage/private_event_store/private_event_store.ts +384 -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 +143 -0
- package/src/storage/tagging_store/sender_address_book_store.ts +48 -0
- package/src/storage/tagging_store/sender_tagging_store.ts +429 -0
- package/src/tagging/constants.ts +10 -2
- package/src/tagging/get_all_logs_by_tags.ts +92 -0
- package/src/tagging/index.ts +18 -5
- package/src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts +140 -0
- package/src/tagging/recipient_sync/utils/find_highest_indexes.ts +34 -0
- package/src/tagging/recipient_sync/utils/load_logs_for_range.ts +44 -0
- package/src/tagging/sender_sync/sync_sender_tagging_indexes.ts +94 -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 +75 -0
- package/dest/contract_function_simulator/execution_data_provider.d.ts +0 -274
- 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 -122
- package/dest/contract_function_simulator/pxe_oracle_interface.d.ts.map +0 -1
- package/dest/contract_function_simulator/pxe_oracle_interface.js +0 -701
- 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/hints/compute_tx_include_by_timestamp.d.ts +0 -4
- package/dest/private_kernel/hints/compute_tx_include_by_timestamp.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 +0 -74
- package/dest/storage/contract_data_provider/contract_data_provider.d.ts.map +0 -1
- package/dest/storage/contract_data_provider/contract_data_provider.js +0 -205
- 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_dao.d.ts +0 -100
- package/dest/storage/note_data_provider/note_dao.d.ts.map +0 -1
- package/dest/storage/note_data_provider/note_dao.js +0 -102
- 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 -308
- package/dest/storage/private_event_data_provider/private_event_data_provider.d.ts +0 -43
- 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 -104
- package/dest/storage/sync_data_provider/index.d.ts +0 -2
- 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 +0 -10
- 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 -35
- package/dest/synchronizer/synchronizer.d.ts.map +0 -1
- package/dest/synchronizer/synchronizer.js +0 -101
- 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 -343
- package/src/contract_function_simulator/proxied_node.ts +0 -33
- package/src/contract_function_simulator/pxe_oracle_interface.ts +0 -1019
- 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/contract_data_provider.ts +0 -294
- 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_dao.ts +0 -154
- package/src/storage/note_data_provider/note_data_provider.ts +0 -393
- package/src/storage/private_event_data_provider/private_event_data_provider.ts +0 -148
- 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 -120
- package/src/tagging/siloed_tag.ts +0 -22
- package/src/tagging/tag.ts +0 -16
- package/src/tagging/utils.ts +0 -31
|
@@ -4,14 +4,9 @@ import { padArrayEnd } from '@aztec/foundation/collection';
|
|
|
4
4
|
import { assertLength } from '@aztec/foundation/serialize';
|
|
5
5
|
import { MembershipWitness } from '@aztec/foundation/trees';
|
|
6
6
|
import { privateKernelResetDimensionsConfig } from '@aztec/noir-protocol-circuits-types/client';
|
|
7
|
-
import { KeyValidationHint, PaddedSideEffects, PrivateKernelData, PrivateKernelResetCircuitPrivateInputs, PrivateKernelResetDimensions, PrivateKernelResetHints, ReadRequestActionEnum, ReadRequestResetActions,
|
|
7
|
+
import { KeyValidationHint, PaddedSideEffects, PrivateKernelData, PrivateKernelResetCircuitPrivateInputs, PrivateKernelResetDimensions, PrivateKernelResetHints, ReadRequestActionEnum, ReadRequestResetActions, TransientDataSquashingHint, buildNoteHashReadRequestHintsFromResetActions, buildNullifierReadRequestHintsFromResetActions, buildTransientDataHints, countSquashedLogs, findPrivateKernelResetDimensions, getNoteHashReadRequestResetActions, getNullifierReadRequestResetActions, privateKernelResetDimensionNames } from '@aztec/stdlib/kernel';
|
|
8
8
|
import { collectNested } from '@aztec/stdlib/tx';
|
|
9
9
|
import { VkData } from '@aztec/stdlib/vks';
|
|
10
|
-
function collectNestedReadRequests(executionStack, extractReadRequests) {
|
|
11
|
-
return collectNested(executionStack, (executionResult)=>{
|
|
12
|
-
return extractReadRequests(executionResult).getActiveItems().map((readRequest)=>new ScopedReadRequest(readRequest, executionResult.publicInputs.callContext.contractAddress));
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
10
|
function getNullifierMembershipWitnessResolver(oracle) {
|
|
16
11
|
return async (nullifier)=>{
|
|
17
12
|
const res = await oracle.getNullifierMembershipWitness(nullifier);
|
|
@@ -25,7 +20,7 @@ function getNullifierMembershipWitnessResolver(oracle) {
|
|
|
25
20
|
};
|
|
26
21
|
};
|
|
27
22
|
}
|
|
28
|
-
async function
|
|
23
|
+
async function getMasterSecretKeysAndKeyTypeDomainSeparators(keyValidationRequests, numRequestsToVerify, oracle) {
|
|
29
24
|
const numRequestsToProcess = Math.min(keyValidationRequests.claimedLength, numRequestsToVerify);
|
|
30
25
|
const keysHints = await Promise.all(keyValidationRequests.array.slice(0, numRequestsToProcess).map(async ({ request })=>{
|
|
31
26
|
const secretKeys = await oracle.getMasterSecretKey(request.request.pkM);
|
|
@@ -37,7 +32,7 @@ export class PrivateKernelResetPrivateInputsBuilder {
|
|
|
37
32
|
previousKernelOutput;
|
|
38
33
|
executionStack;
|
|
39
34
|
noteHashNullifierCounterMap;
|
|
40
|
-
|
|
35
|
+
splitCounter;
|
|
41
36
|
previousKernel;
|
|
42
37
|
// If there's no next iteration, it's the final reset.
|
|
43
38
|
nextIteration;
|
|
@@ -46,23 +41,26 @@ export class PrivateKernelResetPrivateInputsBuilder {
|
|
|
46
41
|
numTransientData;
|
|
47
42
|
transientDataSquashingHints;
|
|
48
43
|
requestedDimensions;
|
|
49
|
-
constructor(previousKernelOutput, executionStack, noteHashNullifierCounterMap,
|
|
44
|
+
constructor(previousKernelOutput, executionStack, noteHashNullifierCounterMap, splitCounter){
|
|
50
45
|
this.previousKernelOutput = previousKernelOutput;
|
|
51
46
|
this.executionStack = executionStack;
|
|
52
47
|
this.noteHashNullifierCounterMap = noteHashNullifierCounterMap;
|
|
53
|
-
this.
|
|
54
|
-
this.previousKernel = previousKernelOutput.publicInputs;
|
|
55
|
-
this.requestedDimensions = PrivateKernelResetDimensions.empty();
|
|
48
|
+
this.splitCounter = splitCounter;
|
|
56
49
|
this.noteHashResetActions = ReadRequestResetActions.empty(MAX_NOTE_HASH_READ_REQUESTS_PER_TX);
|
|
57
50
|
this.nullifierResetActions = ReadRequestResetActions.empty(MAX_NULLIFIER_READ_REQUESTS_PER_TX);
|
|
58
51
|
this.transientDataSquashingHints = makeTuple(MAX_NULLIFIERS_PER_TX, ()=>new TransientDataSquashingHint(MAX_NULLIFIERS_PER_TX, MAX_NOTE_HASHES_PER_TX));
|
|
52
|
+
this.requestedDimensions = PrivateKernelResetDimensions.empty();
|
|
53
|
+
this.previousKernel = previousKernelOutput.publicInputs;
|
|
59
54
|
this.nextIteration = executionStack[this.executionStack.length - 1]?.publicInputs;
|
|
60
55
|
}
|
|
56
|
+
getRequestedDimensions() {
|
|
57
|
+
return this.requestedDimensions;
|
|
58
|
+
}
|
|
61
59
|
needsReset() {
|
|
62
60
|
const fns = [
|
|
63
61
|
()=>this.needsResetNoteHashReadRequests(),
|
|
64
62
|
()=>this.needsResetNullifierReadRequests(),
|
|
65
|
-
()=>this.
|
|
63
|
+
()=>this.needsResetKeyValidationRequests(),
|
|
66
64
|
()=>this.needsResetTransientData()
|
|
67
65
|
];
|
|
68
66
|
if (this.nextIteration) {
|
|
@@ -82,26 +80,31 @@ export class PrivateKernelResetPrivateInputsBuilder {
|
|
|
82
80
|
return result.some((r)=>r);
|
|
83
81
|
}
|
|
84
82
|
}
|
|
85
|
-
async build(oracle
|
|
83
|
+
async build(oracle) {
|
|
86
84
|
if (privateKernelResetDimensionNames.every((name)=>!this.requestedDimensions[name])) {
|
|
87
85
|
throw new Error('Reset is not required.');
|
|
88
86
|
}
|
|
89
87
|
const isInner = !!this.nextIteration;
|
|
90
|
-
// "final" reset must be done
|
|
91
|
-
// Because the code that silo note hashes can't be run repeatedly.
|
|
88
|
+
// "final" reset must be done exactly once, because siloing can't be run repeatedly.
|
|
92
89
|
// The dimensions found must be big enough to reset all values, i.e. empty remainder.
|
|
93
90
|
const allowRemainder = isInner;
|
|
94
91
|
const dimensions = findPrivateKernelResetDimensions(this.requestedDimensions, privateKernelResetDimensionsConfig, isInner, allowRemainder);
|
|
95
|
-
const previousVkMembershipWitness = await oracle.getVkMembershipWitness(this.previousKernelOutput.verificationKey.keyAsFields);
|
|
96
|
-
const vkData = new VkData(this.previousKernelOutput.verificationKey, Number(previousVkMembershipWitness.leafIndex), previousVkMembershipWitness.siblingPath);
|
|
97
|
-
const previousKernelData = new PrivateKernelData(this.previousKernelOutput.publicInputs, vkData);
|
|
98
92
|
this.reduceReadRequestActions(this.noteHashResetActions, dimensions.NOTE_HASH_PENDING_READ, dimensions.NOTE_HASH_SETTLED_READ);
|
|
99
93
|
this.reduceReadRequestActions(this.nullifierResetActions, dimensions.NULLIFIER_PENDING_READ, dimensions.NULLIFIER_SETTLED_READ);
|
|
94
|
+
// Execute all the expensive node querying operations in parallel.
|
|
95
|
+
const [previousVkMembershipWitness, noteHashReadRequestHints, nullifierReadRequestHints, keyValidationHints] = await Promise.all([
|
|
96
|
+
oracle.getVkMembershipWitness(this.previousKernelOutput.verificationKey.keyAsFields),
|
|
97
|
+
buildNoteHashReadRequestHintsFromResetActions(oracle, this.previousKernel.validationRequests.noteHashReadRequests, this.previousKernel.end.noteHashes, this.noteHashResetActions),
|
|
98
|
+
buildNullifierReadRequestHintsFromResetActions({
|
|
99
|
+
getNullifierMembershipWitness: getNullifierMembershipWitnessResolver(oracle)
|
|
100
|
+
}, this.previousKernel.validationRequests.nullifierReadRequests, this.nullifierResetActions),
|
|
101
|
+
getMasterSecretKeysAndKeyTypeDomainSeparators(this.previousKernel.validationRequests.scopedKeyValidationRequestsAndSeparators, dimensions.KEY_VALIDATION, oracle)
|
|
102
|
+
]);
|
|
103
|
+
const vkData = new VkData(this.previousKernelOutput.verificationKey, Number(previousVkMembershipWitness.leafIndex), previousVkMembershipWitness.siblingPath);
|
|
104
|
+
const previousKernelData = new PrivateKernelData(this.previousKernelOutput.publicInputs, vkData);
|
|
100
105
|
// TODO: Enable padding when we have a better idea what are the final amounts we should pad to.
|
|
101
106
|
const paddedSideEffects = PaddedSideEffects.empty();
|
|
102
|
-
return new PrivateKernelResetCircuitPrivateInputs(previousKernelData, paddedSideEffects, new PrivateKernelResetHints(
|
|
103
|
-
getNullifierMembershipWitness: getNullifierMembershipWitnessResolver(oracle)
|
|
104
|
-
}, this.previousKernel.validationRequests.nullifierReadRequests, this.nullifierResetActions), await getMasterSecretKeysAndAppKeyGenerators(this.previousKernel.validationRequests.scopedKeyValidationRequestsAndGenerators, dimensions.KEY_VALIDATION, oracle), this.transientDataSquashingHints, this.validationRequestsSplitCounter), dimensions);
|
|
107
|
+
return new PrivateKernelResetCircuitPrivateInputs(previousKernelData, paddedSideEffects, new PrivateKernelResetHints(noteHashReadRequestHints, nullifierReadRequestHints, keyValidationHints, this.transientDataSquashingHints), dimensions);
|
|
105
108
|
}
|
|
106
109
|
reduceReadRequestActions(resetActions, maxPending, maxSettled) {
|
|
107
110
|
let numPending = 0;
|
|
@@ -124,69 +127,112 @@ export class PrivateKernelResetPrivateInputsBuilder {
|
|
|
124
127
|
}
|
|
125
128
|
resetActions.pendingReadHints = resetActions.pendingReadHints.slice(0, maxPending);
|
|
126
129
|
}
|
|
127
|
-
needsResetNoteHashReadRequests(
|
|
130
|
+
needsResetNoteHashReadRequests(forceReset = false) {
|
|
128
131
|
const numCurr = this.previousKernel.validationRequests.noteHashReadRequests.claimedLength;
|
|
129
132
|
const numNext = this.nextIteration ? this.nextIteration.noteHashReadRequests.claimedLength : 0;
|
|
130
|
-
const maxAmountToKeep = !this.nextIteration ||
|
|
133
|
+
const maxAmountToKeep = !this.nextIteration || forceReset ? 0 : MAX_NOTE_HASH_READ_REQUESTS_PER_TX;
|
|
131
134
|
if (numCurr + numNext <= maxAmountToKeep) {
|
|
132
135
|
return false;
|
|
133
136
|
}
|
|
134
|
-
const
|
|
135
|
-
return executionResult.publicInputs.noteHashes.getActiveItems().map((noteHash)=>new ScopedNoteHash(noteHash, executionResult.publicInputs.callContext.contractAddress));
|
|
136
|
-
});
|
|
137
|
-
const resetActions = getNoteHashReadRequestResetActions(this.previousKernel.validationRequests.noteHashReadRequests, this.previousKernel.end.noteHashes, futureNoteHashes);
|
|
137
|
+
const resetActions = getNoteHashReadRequestResetActions(this.previousKernel.validationRequests.noteHashReadRequests, this.previousKernel.end.noteHashes);
|
|
138
138
|
const numPendingReads = resetActions.pendingReadHints.length;
|
|
139
139
|
const numSettledReads = resetActions.actions.reduce((accum, action)=>accum + (action === ReadRequestActionEnum.READ_AS_SETTLED ? 1 : 0), 0);
|
|
140
|
+
const totalReadsToReset = numPendingReads + numSettledReads;
|
|
141
|
+
const minResetNeeded = numCurr + numNext - maxAmountToKeep;
|
|
142
|
+
if (totalReadsToReset < minResetNeeded) {
|
|
143
|
+
if (!this.nextIteration) {
|
|
144
|
+
// In the final reset, all note hashes have been emitted. So if we can't reset all requests, at least one
|
|
145
|
+
// pending read request doesn't match any of them.
|
|
146
|
+
throw new Error('No matching note hash found for note hash read request.');
|
|
147
|
+
} else if (!forceReset) {
|
|
148
|
+
// A pending read request can only be reset if its note hash has already been included (e.g. a parent call might
|
|
149
|
+
// be reading a note hash emitted by a child call. The read request of the parent call is included before the note
|
|
150
|
+
// hash of the child call).
|
|
151
|
+
// If we can't clear enough read requests to make room for the next iteration's reads, we're stuck.
|
|
152
|
+
throw new Error('Number of note hash read requests exceeds the limit.');
|
|
153
|
+
} else if (totalReadsToReset == 0) {
|
|
154
|
+
// It's transient data squashing asking for the read requests to be reset first (forceReset == true), and
|
|
155
|
+
// there's nothing to reset, returns false and let needsResetTransientData throw a more descriptive error.
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
// Otherwise, forceReset is true, we should proceed to reset as many as we can.
|
|
159
|
+
}
|
|
140
160
|
if (!this.nextIteration) {
|
|
161
|
+
// If there's no next iteration, we need to reset all the read requests.
|
|
141
162
|
this.noteHashResetActions = resetActions;
|
|
142
163
|
this.requestedDimensions.NOTE_HASH_PENDING_READ = numPendingReads;
|
|
143
164
|
this.requestedDimensions.NOTE_HASH_SETTLED_READ = numSettledReads;
|
|
144
165
|
} else {
|
|
145
|
-
//
|
|
166
|
+
// If there's a next iteration, only one dimension can be reset at a time.
|
|
167
|
+
// So we pick the dimension that has more read requests to reset.
|
|
146
168
|
if (numPendingReads > numSettledReads) {
|
|
169
|
+
// Reset the pending read requests.
|
|
170
|
+
const pendingOnlyActions = assertLength(resetActions.actions.map((action)=>action === ReadRequestActionEnum.READ_AS_PENDING ? action : ReadRequestActionEnum.SKIP), MAX_NOTE_HASH_READ_REQUESTS_PER_TX);
|
|
171
|
+
this.noteHashResetActions = new ReadRequestResetActions(pendingOnlyActions, resetActions.pendingReadHints);
|
|
147
172
|
this.requestedDimensions.NOTE_HASH_PENDING_READ = numPendingReads;
|
|
148
|
-
this.noteHashResetActions.actions = assertLength(resetActions.actions.map((action)=>action === ReadRequestActionEnum.READ_AS_PENDING ? action : ReadRequestActionEnum.SKIP), MAX_NOTE_HASH_READ_REQUESTS_PER_TX);
|
|
149
|
-
this.noteHashResetActions.pendingReadHints = resetActions.pendingReadHints;
|
|
150
173
|
} else {
|
|
174
|
+
// Reset the settled read requests.
|
|
175
|
+
const settledOnlyActions = assertLength(resetActions.actions.map((action)=>action === ReadRequestActionEnum.READ_AS_SETTLED ? action : ReadRequestActionEnum.SKIP), MAX_NOTE_HASH_READ_REQUESTS_PER_TX);
|
|
176
|
+
this.noteHashResetActions = new ReadRequestResetActions(settledOnlyActions, []);
|
|
151
177
|
this.requestedDimensions.NOTE_HASH_SETTLED_READ = numSettledReads;
|
|
152
|
-
this.noteHashResetActions.actions = assertLength(resetActions.actions.map((action)=>action === ReadRequestActionEnum.READ_AS_SETTLED ? action : ReadRequestActionEnum.SKIP), MAX_NOTE_HASH_READ_REQUESTS_PER_TX);
|
|
153
178
|
}
|
|
154
179
|
}
|
|
155
180
|
return true;
|
|
156
181
|
}
|
|
157
|
-
needsResetNullifierReadRequests(
|
|
182
|
+
needsResetNullifierReadRequests(forceReset = false) {
|
|
158
183
|
const numCurr = this.previousKernel.validationRequests.nullifierReadRequests.claimedLength;
|
|
159
184
|
const numNext = this.nextIteration ? this.nextIteration.nullifierReadRequests.claimedLength : 0;
|
|
160
|
-
const maxAmountToKeep = !this.nextIteration ||
|
|
185
|
+
const maxAmountToKeep = !this.nextIteration || forceReset ? 0 : MAX_NULLIFIER_READ_REQUESTS_PER_TX;
|
|
161
186
|
if (numCurr + numNext <= maxAmountToKeep) {
|
|
162
187
|
return false;
|
|
163
188
|
}
|
|
164
|
-
const
|
|
165
|
-
return executionResult.publicInputs.nullifiers.getActiveItems().map((nullifier)=>new ScopedNullifier(nullifier, executionResult.publicInputs.callContext.contractAddress));
|
|
166
|
-
});
|
|
167
|
-
const resetActions = getNullifierReadRequestResetActions(this.previousKernel.validationRequests.nullifierReadRequests, this.previousKernel.end.nullifiers, futureNullifiers);
|
|
189
|
+
const resetActions = getNullifierReadRequestResetActions(this.previousKernel.validationRequests.nullifierReadRequests, this.previousKernel.end.nullifiers);
|
|
168
190
|
const numPendingReads = resetActions.pendingReadHints.length;
|
|
169
191
|
const numSettledReads = resetActions.actions.reduce((accum, action)=>accum + (action === ReadRequestActionEnum.READ_AS_SETTLED ? 1 : 0), 0);
|
|
192
|
+
const totalReadsToReset = numPendingReads + numSettledReads;
|
|
193
|
+
const minResetNeeded = numCurr + numNext - maxAmountToKeep;
|
|
194
|
+
if (totalReadsToReset < minResetNeeded) {
|
|
195
|
+
if (!this.nextIteration) {
|
|
196
|
+
// In the final reset, all nullifiers have been emitted. So if we can't reset all requests, at least one pending
|
|
197
|
+
// read request doesn't match any of them.
|
|
198
|
+
throw new Error('No matching nullifier found for nullifier read request.');
|
|
199
|
+
} else if (!forceReset) {
|
|
200
|
+
// A pending read request can only be reset if its nullifier has already been included (e.g. a parent call might
|
|
201
|
+
// be reading a nullifier emitted by a child call. The read request of the parent call is included before the
|
|
202
|
+
// nullifier of the child call).
|
|
203
|
+
// If we can't clear enough read requests to make room for the next iteration's reads, we're stuck.
|
|
204
|
+
throw new Error('Number of nullifier read requests exceeds the limit.');
|
|
205
|
+
} else if (totalReadsToReset == 0) {
|
|
206
|
+
// It's transient data squashing asking for the read requests to be reset first (forceReset == true), and
|
|
207
|
+
// there's nothing to reset, returns false and let needsResetTransientData throw a more descriptive error.
|
|
208
|
+
return false;
|
|
209
|
+
}
|
|
210
|
+
// Otherwise, forceReset is true, we should proceed to reset as many as we can.
|
|
211
|
+
}
|
|
170
212
|
if (!this.nextIteration) {
|
|
213
|
+
// If there's no next iteration, we need to reset all the read requests.
|
|
171
214
|
this.nullifierResetActions = resetActions;
|
|
172
215
|
this.requestedDimensions.NULLIFIER_PENDING_READ = numPendingReads;
|
|
173
216
|
this.requestedDimensions.NULLIFIER_SETTLED_READ = numSettledReads;
|
|
174
217
|
} else {
|
|
175
|
-
//
|
|
218
|
+
// If there's a next iteration, we can only reset one dimension at a time.
|
|
176
219
|
if (numPendingReads > numSettledReads) {
|
|
220
|
+
// Reset the pending read requests.
|
|
221
|
+
const pendingOnlyActions = assertLength(resetActions.actions.map((action)=>action === ReadRequestActionEnum.READ_AS_PENDING ? action : ReadRequestActionEnum.SKIP), MAX_NULLIFIER_READ_REQUESTS_PER_TX);
|
|
222
|
+
this.nullifierResetActions = new ReadRequestResetActions(pendingOnlyActions, resetActions.pendingReadHints);
|
|
177
223
|
this.requestedDimensions.NULLIFIER_PENDING_READ = numPendingReads;
|
|
178
|
-
this.nullifierResetActions.actions = assertLength(resetActions.actions.map((action)=>action === ReadRequestActionEnum.READ_AS_PENDING ? action : ReadRequestActionEnum.SKIP), MAX_NULLIFIER_READ_REQUESTS_PER_TX);
|
|
179
|
-
this.nullifierResetActions.pendingReadHints = resetActions.pendingReadHints;
|
|
180
224
|
} else {
|
|
225
|
+
// Reset the settled read requests.
|
|
226
|
+
const settledOnlyActions = assertLength(resetActions.actions.map((action)=>action === ReadRequestActionEnum.READ_AS_SETTLED ? action : ReadRequestActionEnum.SKIP), MAX_NULLIFIER_READ_REQUESTS_PER_TX);
|
|
227
|
+
this.nullifierResetActions = new ReadRequestResetActions(settledOnlyActions, []);
|
|
181
228
|
this.requestedDimensions.NULLIFIER_SETTLED_READ = numSettledReads;
|
|
182
|
-
this.nullifierResetActions.actions = assertLength(resetActions.actions.map((action)=>action === ReadRequestActionEnum.READ_AS_SETTLED ? action : ReadRequestActionEnum.SKIP), MAX_NULLIFIER_READ_REQUESTS_PER_TX);
|
|
183
229
|
}
|
|
184
230
|
}
|
|
185
231
|
return true;
|
|
186
232
|
}
|
|
187
|
-
|
|
188
|
-
const numCurr = this.previousKernel.validationRequests.
|
|
189
|
-
const numNext = this.nextIteration ? this.nextIteration.
|
|
233
|
+
needsResetKeyValidationRequests() {
|
|
234
|
+
const numCurr = this.previousKernel.validationRequests.scopedKeyValidationRequestsAndSeparators.claimedLength;
|
|
235
|
+
const numNext = this.nextIteration ? this.nextIteration.keyValidationRequestsAndSeparators.claimedLength : 0;
|
|
190
236
|
const maxAmountToKeep = !this.nextIteration ? 0 : MAX_KEY_VALIDATION_REQUESTS_PER_TX;
|
|
191
237
|
if (numCurr + numNext <= maxAmountToKeep) {
|
|
192
238
|
return false;
|
|
@@ -195,8 +241,6 @@ export class PrivateKernelResetPrivateInputsBuilder {
|
|
|
195
241
|
return true;
|
|
196
242
|
}
|
|
197
243
|
needsResetTransientData() {
|
|
198
|
-
// Initialize this to 0 so that needsSilo can be run.
|
|
199
|
-
this.numTransientData = 0;
|
|
200
244
|
const nextAccumNoteHashes = this.previousKernel.end.noteHashes.claimedLength + (this.nextIteration?.noteHashes.claimedLength ?? 0);
|
|
201
245
|
const noteHashWillOverflow = nextAccumNoteHashes > MAX_NOTE_HASHES_PER_TX;
|
|
202
246
|
const nextAccumNullifiers = this.previousKernel.end.nullifiers.claimedLength + (this.nextIteration?.nullifiers.claimedLength ?? 0);
|
|
@@ -206,27 +250,45 @@ export class PrivateKernelResetPrivateInputsBuilder {
|
|
|
206
250
|
if (this.nextIteration && !noteHashWillOverflow && !nullifierWillOverflow && !logsWillOverflow) {
|
|
207
251
|
return false;
|
|
208
252
|
}
|
|
209
|
-
const futureNoteHashReads =
|
|
210
|
-
const futureNullifierReads =
|
|
211
|
-
|
|
212
|
-
// (i.e. none of the future logs are linked to the to-be-squashed note hashes).
|
|
253
|
+
const futureNoteHashReads = collectNested(this.executionStack, (executionResult)=>executionResult.publicInputs.noteHashReadRequests.getActiveItems());
|
|
254
|
+
const futureNullifierReads = collectNested(this.executionStack, (executionResult)=>executionResult.publicInputs.nullifierReadRequests.getActiveItems());
|
|
255
|
+
const futureLogs = collectNested(this.executionStack, (executionResult)=>executionResult.publicInputs.privateLogs.getActiveItems());
|
|
213
256
|
if (this.nextIteration) {
|
|
214
|
-
// If it's not the final reset, only one dimension will be reset at a time.
|
|
215
|
-
//
|
|
257
|
+
// If it's not the final reset, only one dimension will be reset at a time. Since we are resetting the transient
|
|
258
|
+
// data, the note hash and nullifier read requests in the previous kernel won't be squashed and need to be
|
|
259
|
+
// included in the future read requests.
|
|
216
260
|
futureNoteHashReads.push(...this.previousKernel.validationRequests.noteHashReadRequests.getActiveItems());
|
|
217
261
|
futureNullifierReads.push(...this.previousKernel.validationRequests.nullifierReadRequests.getActiveItems());
|
|
218
262
|
}
|
|
219
|
-
const { numTransientData, hints: transientDataSquashingHints } = buildTransientDataHints(this.previousKernel.end.noteHashes, this.previousKernel.end.nullifiers, futureNoteHashReads, futureNullifierReads, this.noteHashNullifierCounterMap, this.
|
|
220
|
-
if (this.nextIteration
|
|
221
|
-
const
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
263
|
+
const { numTransientData, hints: transientDataSquashingHints } = buildTransientDataHints(this.previousKernel.end.noteHashes, this.previousKernel.end.nullifiers, futureNoteHashReads, futureNullifierReads, futureLogs, this.noteHashNullifierCounterMap, this.splitCounter);
|
|
264
|
+
if (this.nextIteration) {
|
|
265
|
+
const noteHashOverflowBy = noteHashWillOverflow ? nextAccumNoteHashes - MAX_NOTE_HASHES_PER_TX - numTransientData : 0;
|
|
266
|
+
const nullifierOverflowBy = nullifierWillOverflow ? nextAccumNullifiers - MAX_NULLIFIERS_PER_TX - numTransientData : 0;
|
|
267
|
+
const numSquashedLogs = logsWillOverflow ? countSquashedLogs(this.previousKernel.end.noteHashes, this.previousKernel.end.privateLogs, transientDataSquashingHints.slice(0, numTransientData)) : 0;
|
|
268
|
+
const logsOverflowBy = logsWillOverflow ? nextAccumLogs - MAX_PRIVATE_LOGS_PER_TX - numSquashedLogs : 0;
|
|
269
|
+
if (noteHashOverflowBy > 0 || nullifierOverflowBy > 0 || logsOverflowBy > 0) {
|
|
270
|
+
// There's not enough transient data to squash to clear space for the overflow. It may be because some data is
|
|
271
|
+
// still required for read requests. Force a reset of the read requests first, and return to transient data
|
|
272
|
+
// squashing in the next round of reset.
|
|
273
|
+
// Note that clearing the read requests might not be enough to clear more space for the overflow. In this case,
|
|
274
|
+
// running the next reset will fail at the following check.
|
|
275
|
+
// Only one dimension can be reset at a time for an inner reset, so we try the note hash read requests first
|
|
276
|
+
// (which also helps with log overflow), then fall back to nullifier read requests.
|
|
277
|
+
const forceReset = true;
|
|
278
|
+
if ((noteHashOverflowBy > 0 || logsOverflowBy > 0) && this.needsResetNoteHashReadRequests(forceReset)) {
|
|
279
|
+
return true;
|
|
280
|
+
}
|
|
281
|
+
if (nullifierOverflowBy > 0 && this.needsResetNullifierReadRequests(forceReset)) {
|
|
282
|
+
return true;
|
|
283
|
+
}
|
|
284
|
+
if (noteHashWillOverflow) {
|
|
285
|
+
throw new Error('Number of note hashes exceeds the limit.');
|
|
286
|
+
}
|
|
287
|
+
if (nullifierWillOverflow) {
|
|
288
|
+
throw new Error('Number of nullifiers exceeds the limit.');
|
|
289
|
+
}
|
|
290
|
+
throw new Error('Number of private logs exceeds the limit.');
|
|
226
291
|
}
|
|
227
|
-
// Clearing the read requests might not be enough to squash the overflown data.
|
|
228
|
-
// In this case, the next iteration will fail at the above check.
|
|
229
|
-
return true;
|
|
230
292
|
}
|
|
231
293
|
this.numTransientData = numTransientData;
|
|
232
294
|
this.transientDataSquashingHints = transientDataSquashingHints;
|
|
@@ -237,8 +299,12 @@ export class PrivateKernelResetPrivateInputsBuilder {
|
|
|
237
299
|
if (this.numTransientData === undefined) {
|
|
238
300
|
throw new Error('`needsResetTransientData` must be run before `needsSiloNoteHashes`.');
|
|
239
301
|
}
|
|
240
|
-
const
|
|
241
|
-
|
|
302
|
+
const noteHashes = this.previousKernel.end.noteHashes;
|
|
303
|
+
if (noteHashes.claimedLength > 0 && noteHashes.array[0].contractAddress.isZero()) {
|
|
304
|
+
// Already siloed.
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
const numToSilo = noteHashes.claimedLength - this.numTransientData;
|
|
242
308
|
this.requestedDimensions.NOTE_HASH_SILOING = numToSilo;
|
|
243
309
|
return numToSilo > 0;
|
|
244
310
|
}
|
|
@@ -246,13 +312,13 @@ export class PrivateKernelResetPrivateInputsBuilder {
|
|
|
246
312
|
if (this.numTransientData === undefined) {
|
|
247
313
|
throw new Error('`needsResetTransientData` must be run before `needsSiloNullifiers`.');
|
|
248
314
|
}
|
|
249
|
-
const
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
const
|
|
255
|
-
this.requestedDimensions.NULLIFIER_SILOING =
|
|
315
|
+
const nullifiers = this.previousKernel.end.nullifiers;
|
|
316
|
+
if (nullifiers.claimedLength > 0 && nullifiers.array[0].contractAddress.isZero()) {
|
|
317
|
+
// Already siloed.
|
|
318
|
+
return false;
|
|
319
|
+
}
|
|
320
|
+
const numToSilo = nullifiers.claimedLength - this.numTransientData;
|
|
321
|
+
this.requestedDimensions.NULLIFIER_SILOING = numToSilo;
|
|
256
322
|
return numToSilo > 0;
|
|
257
323
|
}
|
|
258
324
|
needsSiloPrivateLogs() {
|
|
@@ -260,11 +326,12 @@ export class PrivateKernelResetPrivateInputsBuilder {
|
|
|
260
326
|
throw new Error('`needsResetTransientData` must be run before `needsSiloPrivateLogs`.');
|
|
261
327
|
}
|
|
262
328
|
const privateLogs = this.previousKernel.end.privateLogs;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
const
|
|
329
|
+
if (privateLogs.claimedLength > 0 && privateLogs.array[0].contractAddress.isZero()) {
|
|
330
|
+
// Already siloed.
|
|
331
|
+
return false;
|
|
332
|
+
}
|
|
333
|
+
const numSquashedLogs = countSquashedLogs(this.previousKernel.end.noteHashes, privateLogs, this.transientDataSquashingHints.slice(0, this.numTransientData));
|
|
334
|
+
const numToSilo = privateLogs.claimedLength - numSquashedLogs;
|
|
268
335
|
this.requestedDimensions.PRIVATE_LOG_SILOING = numToSilo;
|
|
269
336
|
return numToSilo > 0;
|
|
270
337
|
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
2
|
+
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
3
|
+
import { PrivateCircuitPublicInputs, PrivateKernelCircuitPublicInputs, type PrivateKernelSimulateOutput } from '@aztec/stdlib/kernel';
|
|
4
|
+
import { PrivateCallExecutionResult } from '@aztec/stdlib/tx';
|
|
5
|
+
/** Builder for PrivateKernelCircuitPublicInputs with fluent API for adding side effects. */
|
|
6
|
+
export declare class PrivateKernelCircuitPublicInputsBuilder {
|
|
7
|
+
private contractAddress;
|
|
8
|
+
private noteHashes;
|
|
9
|
+
private nullifiers;
|
|
10
|
+
private noteHashReadRequests;
|
|
11
|
+
private nullifierReadRequests;
|
|
12
|
+
private keyValidationRequests;
|
|
13
|
+
private privateLogs;
|
|
14
|
+
private nextCounter;
|
|
15
|
+
constructor(contractAddress?: AztecAddress, startCounter?: number);
|
|
16
|
+
private getCounter;
|
|
17
|
+
/** Adds a note hash to the accumulated data. Defaults are generated randomly. */
|
|
18
|
+
addNoteHash(opts?: {
|
|
19
|
+
value?: Fr;
|
|
20
|
+
counter?: number;
|
|
21
|
+
contractAddress?: AztecAddress;
|
|
22
|
+
}): this;
|
|
23
|
+
/** Adds a nullifier to the accumulated data. Defaults are generated randomly. */
|
|
24
|
+
addNullifier(opts?: {
|
|
25
|
+
value?: Fr;
|
|
26
|
+
noteHash?: Fr;
|
|
27
|
+
counter?: number;
|
|
28
|
+
contractAddress?: AztecAddress;
|
|
29
|
+
}): this;
|
|
30
|
+
/** Adds a pending note hash read request (non-empty contract address, can match a pending note hash). */
|
|
31
|
+
addPendingNoteHashReadRequest(opts?: {
|
|
32
|
+
value?: Fr;
|
|
33
|
+
counter?: number;
|
|
34
|
+
contractAddress?: AztecAddress;
|
|
35
|
+
}): this;
|
|
36
|
+
/** Adds a settled note hash read request (empty contract address, resolved against the note hash tree). */
|
|
37
|
+
addSettledNoteHashReadRequest(opts?: {
|
|
38
|
+
value?: Fr;
|
|
39
|
+
counter?: number;
|
|
40
|
+
}): this;
|
|
41
|
+
/** Adds a pending nullifier read request (non-empty contract address, can match a pending nullifier). */
|
|
42
|
+
addPendingNullifierReadRequest(opts?: {
|
|
43
|
+
value?: Fr;
|
|
44
|
+
counter?: number;
|
|
45
|
+
contractAddress?: AztecAddress;
|
|
46
|
+
}): this;
|
|
47
|
+
/** Adds a settled nullifier read request (empty contract address, resolved against the nullifier tree). */
|
|
48
|
+
addSettledNullifierReadRequest(opts?: {
|
|
49
|
+
value?: Fr;
|
|
50
|
+
counter?: number;
|
|
51
|
+
}): this;
|
|
52
|
+
/** Adds a key validation request to validation requests. */
|
|
53
|
+
addKeyValidationRequest(opts?: {
|
|
54
|
+
contractAddress?: AztecAddress;
|
|
55
|
+
}): this;
|
|
56
|
+
/** Adds a private log to the accumulated data. Defaults are generated randomly. */
|
|
57
|
+
addPrivateLog(opts?: {
|
|
58
|
+
noteHashCounter?: number;
|
|
59
|
+
counter?: number;
|
|
60
|
+
contractAddress?: AztecAddress;
|
|
61
|
+
}): this;
|
|
62
|
+
/** Builds the PrivateKernelCircuitPublicInputs with all added side effects. */
|
|
63
|
+
build(): PrivateKernelCircuitPublicInputs;
|
|
64
|
+
}
|
|
65
|
+
/** Builder for PrivateCircuitPublicInputs (call-level) with fluent API for adding side effects. */
|
|
66
|
+
export declare class PrivateCircuitPublicInputsBuilder {
|
|
67
|
+
private contractAddress;
|
|
68
|
+
private noteHashes;
|
|
69
|
+
private nullifiers;
|
|
70
|
+
private noteHashReadRequests;
|
|
71
|
+
private nullifierReadRequests;
|
|
72
|
+
private keyValidationRequests;
|
|
73
|
+
private privateLogs;
|
|
74
|
+
private nextCounter;
|
|
75
|
+
constructor(contractAddress?: AztecAddress, startCounter?: number);
|
|
76
|
+
private getCounter;
|
|
77
|
+
/** Adds a note hash. Defaults are generated randomly. */
|
|
78
|
+
addNoteHash(opts?: {
|
|
79
|
+
value?: Fr;
|
|
80
|
+
counter?: number;
|
|
81
|
+
}): this;
|
|
82
|
+
/** Adds a nullifier. Defaults are generated randomly. */
|
|
83
|
+
addNullifier(opts?: {
|
|
84
|
+
value?: Fr;
|
|
85
|
+
noteHash?: Fr;
|
|
86
|
+
counter?: number;
|
|
87
|
+
}): this;
|
|
88
|
+
/** Adds a pending note hash read request (non-empty contract address, can match a pending note hash). */
|
|
89
|
+
addPendingNoteHashReadRequest(opts?: {
|
|
90
|
+
value?: Fr;
|
|
91
|
+
counter?: number;
|
|
92
|
+
}): this;
|
|
93
|
+
/** Adds a settled note hash read request (empty contract address, resolved against the note hash tree). */
|
|
94
|
+
addSettledNoteHashReadRequest(opts?: {
|
|
95
|
+
value?: Fr;
|
|
96
|
+
counter?: number;
|
|
97
|
+
}): this;
|
|
98
|
+
/** Adds a pending nullifier read request (non-empty contract address, can match a pending nullifier). */
|
|
99
|
+
addPendingNullifierReadRequest(opts?: {
|
|
100
|
+
value?: Fr;
|
|
101
|
+
counter?: number;
|
|
102
|
+
}): this;
|
|
103
|
+
/** Adds a settled nullifier read request (empty contract address, resolved against the nullifier tree). */
|
|
104
|
+
addSettledNullifierReadRequest(opts?: {
|
|
105
|
+
value?: Fr;
|
|
106
|
+
counter?: number;
|
|
107
|
+
}): this;
|
|
108
|
+
/** Adds a key validation request. */
|
|
109
|
+
addKeyValidationRequest(): this;
|
|
110
|
+
/** Adds a private log. Defaults are generated randomly. */
|
|
111
|
+
addPrivateLog(opts?: {
|
|
112
|
+
noteHashCounter?: number;
|
|
113
|
+
counter?: number;
|
|
114
|
+
}): this;
|
|
115
|
+
/** Builds the PrivateCircuitPublicInputs with all added side effects. */
|
|
116
|
+
build(): PrivateCircuitPublicInputs;
|
|
117
|
+
}
|
|
118
|
+
/** Wraps a PrivateKernelCircuitPublicInputs in a PrivateKernelSimulateOutput. */
|
|
119
|
+
export declare function makeKernelOutput(publicInputs?: PrivateKernelCircuitPublicInputs): PrivateKernelSimulateOutput<PrivateKernelCircuitPublicInputs>;
|
|
120
|
+
/** Wraps a PrivateCircuitPublicInputs in a PrivateCallExecutionResult. */
|
|
121
|
+
export declare function makeExecutionResult(publicInputs?: PrivateCircuitPublicInputs): PrivateCallExecutionResult;
|
|
122
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdF91dGlscy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3ByaXZhdGVfa2VybmVsL2hpbnRzL3Rlc3RfdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW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