@aztec/simulator 0.0.0-test.0
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/README.md +49 -0
- package/dest/client.d.ts +5 -0
- package/dest/client.d.ts.map +1 -0
- package/dest/client.js +3 -0
- package/dest/common/db_interfaces.d.ts +80 -0
- package/dest/common/db_interfaces.d.ts.map +1 -0
- package/dest/common/db_interfaces.js +1 -0
- package/dest/common/debug_fn_name.d.ts +5 -0
- package/dest/common/debug_fn_name.d.ts.map +1 -0
- package/dest/common/debug_fn_name.js +6 -0
- package/dest/common/errors.d.ts +54 -0
- package/dest/common/errors.d.ts.map +1 -0
- package/dest/common/errors.js +135 -0
- package/dest/common/index.d.ts +4 -0
- package/dest/common/index.d.ts.map +1 -0
- package/dest/common/index.js +3 -0
- package/dest/common/message_load_oracle_inputs.d.ts +15 -0
- package/dest/common/message_load_oracle_inputs.d.ts.map +1 -0
- package/dest/common/message_load_oracle_inputs.js +15 -0
- package/dest/common/stats/index.d.ts +2 -0
- package/dest/common/stats/index.d.ts.map +1 -0
- package/dest/common/stats/index.js +1 -0
- package/dest/common/stats/stats.d.ts +4 -0
- package/dest/common/stats/stats.d.ts.map +1 -0
- package/dest/common/stats/stats.js +10 -0
- package/dest/private/acvm/acvm.d.ts +35 -0
- package/dest/private/acvm/acvm.d.ts.map +1 -0
- package/dest/private/acvm/acvm.js +70 -0
- package/dest/private/acvm/acvm_types.d.ts +10 -0
- package/dest/private/acvm/acvm_types.d.ts.map +1 -0
- package/dest/private/acvm/acvm_types.js +3 -0
- package/dest/private/acvm/deserialize.d.ts +36 -0
- package/dest/private/acvm/deserialize.d.ts.map +1 -0
- package/dest/private/acvm/deserialize.js +42 -0
- package/dest/private/acvm/index.d.ts +6 -0
- package/dest/private/acvm/index.d.ts.map +1 -0
- package/dest/private/acvm/index.js +5 -0
- package/dest/private/acvm/oracle/index.d.ts +14 -0
- package/dest/private/acvm/oracle/index.d.ts.map +1 -0
- package/dest/private/acvm/oracle/index.js +2 -0
- package/dest/private/acvm/oracle/oracle.d.ts +49 -0
- package/dest/private/acvm/oracle/oracle.d.ts.map +1 -0
- package/dest/private/acvm/oracle/oracle.js +263 -0
- package/dest/private/acvm/oracle/typed_oracle.d.ts +83 -0
- package/dest/private/acvm/oracle/typed_oracle.d.ts.map +1 -0
- package/dest/private/acvm/oracle/typed_oracle.js +132 -0
- package/dest/private/acvm/serialize.d.ts +24 -0
- package/dest/private/acvm/serialize.d.ts.map +1 -0
- package/dest/private/acvm/serialize.js +46 -0
- package/dest/private/execution_data_provider.d.ts +261 -0
- package/dest/private/execution_data_provider.d.ts.map +1 -0
- package/dest/private/execution_data_provider.js +14 -0
- package/dest/private/execution_note_cache.d.ts +93 -0
- package/dest/private/execution_note_cache.d.ts.map +1 -0
- package/dest/private/execution_note_cache.js +180 -0
- package/dest/private/hashed_values_cache.d.ts +28 -0
- package/dest/private/hashed_values_cache.d.ts.map +1 -0
- package/dest/private/hashed_values_cache.js +46 -0
- package/dest/private/index.d.ts +13 -0
- package/dest/private/index.d.ts.map +1 -0
- package/dest/private/index.js +12 -0
- package/dest/private/pick_notes.d.ts +85 -0
- package/dest/private/pick_notes.d.ts.map +1 -0
- package/dest/private/pick_notes.js +51 -0
- package/dest/private/private_execution.d.ts +25 -0
- package/dest/private/private_execution.d.ts.map +1 -0
- package/dest/private/private_execution.js +92 -0
- package/dest/private/private_execution_oracle.d.ts +215 -0
- package/dest/private/private_execution_oracle.d.ts.map +1 -0
- package/dest/private/private_execution_oracle.js +382 -0
- package/dest/private/providers/acvm_native.d.ts +40 -0
- package/dest/private/providers/acvm_native.d.ts.map +1 -0
- package/dest/private/providers/acvm_native.js +139 -0
- package/dest/private/providers/acvm_wasm.d.ts +15 -0
- package/dest/private/providers/acvm_wasm.d.ts.map +1 -0
- package/dest/private/providers/acvm_wasm.js +62 -0
- package/dest/private/providers/acvm_wasm_with_blobs.d.ts +19 -0
- package/dest/private/providers/acvm_wasm_with_blobs.d.ts.map +1 -0
- package/dest/private/providers/acvm_wasm_with_blobs.js +32 -0
- package/dest/private/providers/factory.d.ts +12 -0
- package/dest/private/providers/factory.d.ts.map +1 -0
- package/dest/private/providers/factory.js +27 -0
- package/dest/private/providers/simulation_provider.d.ts +19 -0
- package/dest/private/providers/simulation_provider.d.ts.map +1 -0
- package/dest/private/providers/simulation_provider.js +24 -0
- package/dest/private/simulator.d.ts +34 -0
- package/dest/private/simulator.d.ts.map +1 -0
- package/dest/private/simulator.js +76 -0
- package/dest/private/unconstrained_execution.d.ts +10 -0
- package/dest/private/unconstrained_execution.d.ts.map +1 -0
- package/dest/private/unconstrained_execution.js +27 -0
- package/dest/private/unconstrained_execution_oracle.d.ts +161 -0
- package/dest/private/unconstrained_execution_oracle.d.ts.map +1 -0
- package/dest/private/unconstrained_execution_oracle.js +258 -0
- package/dest/public/avm/avm_context.d.ts +41 -0
- package/dest/public/avm/avm_context.d.ts.map +1 -0
- package/dest/public/avm/avm_context.js +44 -0
- package/dest/public/avm/avm_contract_call_result.d.ts +30 -0
- package/dest/public/avm/avm_contract_call_result.d.ts.map +1 -0
- package/dest/public/avm/avm_contract_call_result.js +50 -0
- package/dest/public/avm/avm_execution_environment.d.ts +21 -0
- package/dest/public/avm/avm_execution_environment.d.ts.map +1 -0
- package/dest/public/avm/avm_execution_environment.js +31 -0
- package/dest/public/avm/avm_gas.d.ts +60 -0
- package/dest/public/avm/avm_gas.d.ts.map +1 -0
- package/dest/public/avm/avm_gas.js +203 -0
- package/dest/public/avm/avm_machine_state.d.ts +95 -0
- package/dest/public/avm/avm_machine_state.d.ts.map +1 -0
- package/dest/public/avm/avm_machine_state.js +107 -0
- package/dest/public/avm/avm_memory_types.d.ts +264 -0
- package/dest/public/avm/avm_memory_types.d.ts.map +1 -0
- package/dest/public/avm/avm_memory_types.js +340 -0
- package/dest/public/avm/avm_simulator.d.ts +40 -0
- package/dest/public/avm/avm_simulator.d.ts.map +1 -0
- package/dest/public/avm/avm_simulator.js +202 -0
- package/dest/public/avm/bytecode_utils.d.ts +5 -0
- package/dest/public/avm/bytecode_utils.d.ts.map +1 -0
- package/dest/public/avm/bytecode_utils.js +17 -0
- package/dest/public/avm/errors.d.ts +122 -0
- package/dest/public/avm/errors.d.ts.map +1 -0
- package/dest/public/avm/errors.js +179 -0
- package/dest/public/avm/fixtures/avm_simulation_tester.d.ts +21 -0
- package/dest/public/avm/fixtures/avm_simulation_tester.d.ts.map +1 -0
- package/dest/public/avm/fixtures/avm_simulation_tester.js +76 -0
- package/dest/public/avm/fixtures/base_avm_simulation_tester.d.ts +36 -0
- package/dest/public/avm/fixtures/base_avm_simulation_tester.d.ts.map +1 -0
- package/dest/public/avm/fixtures/base_avm_simulation_tester.js +83 -0
- package/dest/public/avm/fixtures/index.d.ts +84 -0
- package/dest/public/avm/fixtures/index.d.ts.map +1 -0
- package/dest/public/avm/fixtures/index.js +175 -0
- package/dest/public/avm/fixtures/simple_contract_data_source.d.ts +35 -0
- package/dest/public/avm/fixtures/simple_contract_data_source.d.ts.map +1 -0
- package/dest/public/avm/fixtures/simple_contract_data_source.js +74 -0
- package/dest/public/avm/index.d.ts +4 -0
- package/dest/public/avm/index.d.ts.map +1 -0
- package/dest/public/avm/index.js +3 -0
- package/dest/public/avm/journal/index.d.ts +2 -0
- package/dest/public/avm/journal/index.d.ts.map +1 -0
- package/dest/public/avm/journal/index.js +1 -0
- package/dest/public/avm/journal/journal.d.ts +209 -0
- package/dest/public/avm/journal/journal.d.ts.map +1 -0
- package/dest/public/avm/journal/journal.js +486 -0
- package/dest/public/avm/journal/nullifiers.d.ts +64 -0
- package/dest/public/avm/journal/nullifiers.d.ts.map +1 -0
- package/dest/public/avm/journal/nullifiers.js +97 -0
- package/dest/public/avm/journal/public_storage.d.ts +66 -0
- package/dest/public/avm/journal/public_storage.d.ts.map +1 -0
- package/dest/public/avm/journal/public_storage.js +145 -0
- package/dest/public/avm/opcodes/accrued_substate.d.ts +75 -0
- package/dest/public/avm/opcodes/accrued_substate.d.ts.map +1 -0
- package/dest/public/avm/opcodes/accrued_substate.js +252 -0
- package/dest/public/avm/opcodes/addressing_mode.d.ts +27 -0
- package/dest/public/avm/opcodes/addressing_mode.d.ts.map +1 -0
- package/dest/public/avm/opcodes/addressing_mode.js +74 -0
- package/dest/public/avm/opcodes/arithmetic.d.ts +37 -0
- package/dest/public/avm/opcodes/arithmetic.d.ts.map +1 -0
- package/dest/public/avm/opcodes/arithmetic.js +73 -0
- package/dest/public/avm/opcodes/bitwise.d.ts +50 -0
- package/dest/public/avm/opcodes/bitwise.d.ts.map +1 -0
- package/dest/public/avm/opcodes/bitwise.js +106 -0
- package/dest/public/avm/opcodes/comparators.d.ts +25 -0
- package/dest/public/avm/opcodes/comparators.d.ts.map +1 -0
- package/dest/public/avm/opcodes/comparators.js +43 -0
- package/dest/public/avm/opcodes/contract.d.ts +21 -0
- package/dest/public/avm/opcodes/contract.d.ts.map +1 -0
- package/dest/public/avm/opcodes/contract.js +66 -0
- package/dest/public/avm/opcodes/control_flow.d.ts +41 -0
- package/dest/public/avm/opcodes/control_flow.d.ts.map +1 -0
- package/dest/public/avm/opcodes/control_flow.js +105 -0
- package/dest/public/avm/opcodes/conversion.d.ts +17 -0
- package/dest/public/avm/opcodes/conversion.d.ts.map +1 -0
- package/dest/public/avm/opcodes/conversion.js +69 -0
- package/dest/public/avm/opcodes/ec_add.d.ts +19 -0
- package/dest/public/avm/opcodes/ec_add.d.ts.map +1 -0
- package/dest/public/avm/opcodes/ec_add.js +84 -0
- package/dest/public/avm/opcodes/environment_getters.d.ts +28 -0
- package/dest/public/avm/opcodes/environment_getters.d.ts.map +1 -0
- package/dest/public/avm/opcodes/environment_getters.js +79 -0
- package/dest/public/avm/opcodes/external_calls.d.ts +58 -0
- package/dest/public/avm/opcodes/external_calls.d.ts.map +1 -0
- package/dest/public/avm/opcodes/external_calls.js +204 -0
- package/dest/public/avm/opcodes/hashing.d.ts +36 -0
- package/dest/public/avm/opcodes/hashing.d.ts.map +1 -0
- package/dest/public/avm/opcodes/hashing.js +114 -0
- package/dest/public/avm/opcodes/index.d.ts +16 -0
- package/dest/public/avm/opcodes/index.d.ts.map +1 -0
- package/dest/public/avm/opcodes/index.js +15 -0
- package/dest/public/avm/opcodes/instruction.d.ts +70 -0
- package/dest/public/avm/opcodes/instruction.d.ts.map +1 -0
- package/dest/public/avm/opcodes/instruction.js +91 -0
- package/dest/public/avm/opcodes/instruction_impl.d.ts +19 -0
- package/dest/public/avm/opcodes/instruction_impl.d.ts.map +1 -0
- package/dest/public/avm/opcodes/instruction_impl.js +30 -0
- package/dest/public/avm/opcodes/memory.d.ts +74 -0
- package/dest/public/avm/opcodes/memory.d.ts.map +1 -0
- package/dest/public/avm/opcodes/memory.js +253 -0
- package/dest/public/avm/opcodes/misc.d.ts +17 -0
- package/dest/public/avm/opcodes/misc.d.ts.map +1 -0
- package/dest/public/avm/opcodes/misc.js +48 -0
- package/dest/public/avm/opcodes/storage.d.ts +24 -0
- package/dest/public/avm/opcodes/storage.d.ts.map +1 -0
- package/dest/public/avm/opcodes/storage.js +66 -0
- package/dest/public/avm/serialization/buffer_cursor.d.ts +28 -0
- package/dest/public/avm/serialization/buffer_cursor.d.ts.map +1 -0
- package/dest/public/avm/serialization/buffer_cursor.js +99 -0
- package/dest/public/avm/serialization/bytecode_serialization.d.ts +21 -0
- package/dest/public/avm/serialization/bytecode_serialization.d.ts.map +1 -0
- package/dest/public/avm/serialization/bytecode_serialization.js +332 -0
- package/dest/public/avm/serialization/instruction_serialization.d.ts +105 -0
- package/dest/public/avm/serialization/instruction_serialization.d.ts.map +1 -0
- package/dest/public/avm/serialization/instruction_serialization.js +226 -0
- package/dest/public/avm/test_utils.d.ts +18 -0
- package/dest/public/avm/test_utils.d.ts.map +1 -0
- package/dest/public/avm/test_utils.js +52 -0
- package/dest/public/bytecode_errors.d.ts +4 -0
- package/dest/public/bytecode_errors.d.ts.map +1 -0
- package/dest/public/bytecode_errors.js +6 -0
- package/dest/public/execution.d.ts +108 -0
- package/dest/public/execution.d.ts.map +1 -0
- package/dest/public/execution.js +9 -0
- package/dest/public/executor_metrics.d.ts +13 -0
- package/dest/public/executor_metrics.d.ts.map +1 -0
- package/dest/public/executor_metrics.js +54 -0
- package/dest/public/fixtures/index.d.ts +3 -0
- package/dest/public/fixtures/index.d.ts.map +1 -0
- package/dest/public/fixtures/index.js +2 -0
- package/dest/public/fixtures/public_tx_simulation_tester.d.ts +32 -0
- package/dest/public/fixtures/public_tx_simulation_tester.d.ts.map +1 -0
- package/dest/public/fixtures/public_tx_simulation_tester.js +93 -0
- package/dest/public/fixtures/utils.d.ts +13 -0
- package/dest/public/fixtures/utils.d.ts.map +1 -0
- package/dest/public/fixtures/utils.js +126 -0
- package/dest/public/index.d.ts +10 -0
- package/dest/public/index.d.ts.map +1 -0
- package/dest/public/index.js +8 -0
- package/dest/public/public_db_sources.d.ts +129 -0
- package/dest/public/public_db_sources.d.ts.map +1 -0
- package/dest/public/public_db_sources.js +264 -0
- package/dest/public/public_processor/public_processor.d.ts +74 -0
- package/dest/public/public_processor/public_processor.d.ts.map +1 -0
- package/dest/public/public_processor/public_processor.js +379 -0
- package/dest/public/public_processor/public_processor_metrics.d.ts +27 -0
- package/dest/public/public_processor/public_processor_metrics.d.ts.map +1 -0
- package/dest/public/public_processor/public_processor_metrics.js +125 -0
- package/dest/public/public_tx_simulator/public_tx_context.d.ts +137 -0
- package/dest/public/public_tx_simulator/public_tx_context.d.ts.map +1 -0
- package/dest/public/public_tx_simulator/public_tx_context.js +320 -0
- package/dest/public/public_tx_simulator/public_tx_simulator.d.ts +102 -0
- package/dest/public/public_tx_simulator/public_tx_simulator.d.ts.map +1 -0
- package/dest/public/public_tx_simulator/public_tx_simulator.js +334 -0
- package/dest/public/side_effect_errors.d.ts +4 -0
- package/dest/public/side_effect_errors.d.ts.map +1 -0
- package/dest/public/side_effect_errors.js +6 -0
- package/dest/public/side_effect_trace.d.ts +132 -0
- package/dest/public/side_effect_trace.d.ts.map +1 -0
- package/dest/public/side_effect_trace.js +249 -0
- package/dest/public/side_effect_trace_interface.d.ts +34 -0
- package/dest/public/side_effect_trace_interface.d.ts.map +1 -0
- package/dest/public/side_effect_trace_interface.js +1 -0
- package/dest/public/tx_contract_cache.d.ts +41 -0
- package/dest/public/tx_contract_cache.d.ts.map +1 -0
- package/dest/public/tx_contract_cache.js +49 -0
- package/dest/public/unique_class_ids.d.ts +37 -0
- package/dest/public/unique_class_ids.d.ts.map +1 -0
- package/dest/public/unique_class_ids.js +61 -0
- package/dest/public/utils.d.ts +5 -0
- package/dest/public/utils.d.ts.map +1 -0
- package/dest/public/utils.js +35 -0
- package/dest/server.d.ts +6 -0
- package/dest/server.d.ts.map +1 -0
- package/dest/server.js +4 -0
- package/dest/test/utils.d.ts +13 -0
- package/dest/test/utils.d.ts.map +1 -0
- package/dest/test/utils.js +22 -0
- package/package.json +104 -0
- package/src/client.ts +4 -0
- package/src/common/db_interfaces.ts +94 -0
- package/src/common/debug_fn_name.ts +18 -0
- package/src/common/errors.ts +183 -0
- package/src/common/index.ts +3 -0
- package/src/common/message_load_oracle_inputs.ts +15 -0
- package/src/common/stats/index.ts +1 -0
- package/src/common/stats/stats.ts +20 -0
- package/src/private/acvm/acvm.ts +127 -0
- package/src/private/acvm/acvm_types.ts +11 -0
- package/src/private/acvm/deserialize.ts +52 -0
- package/src/private/acvm/index.ts +5 -0
- package/src/private/acvm/oracle/index.ts +16 -0
- package/src/private/acvm/oracle/oracle.ts +455 -0
- package/src/private/acvm/oracle/typed_oracle.ts +259 -0
- package/src/private/acvm/serialize.ts +60 -0
- package/src/private/execution_data_provider.ts +323 -0
- package/src/private/execution_note_cache.ts +217 -0
- package/src/private/hashed_values_cache.ts +55 -0
- package/src/private/index.ts +16 -0
- package/src/private/pick_notes.ts +141 -0
- package/src/private/private_execution.ts +151 -0
- package/src/private/private_execution_oracle.ts +614 -0
- package/src/private/providers/acvm_native.ts +171 -0
- package/src/private/providers/acvm_wasm.ts +63 -0
- package/src/private/providers/acvm_wasm_with_blobs.ts +50 -0
- package/src/private/providers/factory.ts +38 -0
- package/src/private/providers/simulation_provider.ts +45 -0
- package/src/private/simulator.ts +147 -0
- package/src/private/unconstrained_execution.ts +50 -0
- package/src/private/unconstrained_execution_oracle.ts +373 -0
- package/src/public/avm/avm_context.ts +61 -0
- package/src/public/avm/avm_contract_call_result.ts +55 -0
- package/src/public/avm/avm_execution_environment.ts +39 -0
- package/src/public/avm/avm_gas.ts +195 -0
- package/src/public/avm/avm_machine_state.ts +164 -0
- package/src/public/avm/avm_memory_types.ts +423 -0
- package/src/public/avm/avm_simulator.ts +284 -0
- package/src/public/avm/bytecode_utils.ts +17 -0
- package/src/public/avm/errors.ts +232 -0
- package/src/public/avm/fixtures/avm_simulation_tester.ts +105 -0
- package/src/public/avm/fixtures/base_avm_simulation_tester.ts +109 -0
- package/src/public/avm/fixtures/index.ts +296 -0
- package/src/public/avm/fixtures/simple_contract_data_source.ts +105 -0
- package/src/public/avm/index.ts +3 -0
- package/src/public/avm/journal/index.ts +1 -0
- package/src/public/avm/journal/journal.ts +742 -0
- package/src/public/avm/journal/nullifiers.ts +109 -0
- package/src/public/avm/journal/public_storage.ts +174 -0
- package/src/public/avm/opcodes/.eslintrc.cjs +8 -0
- package/src/public/avm/opcodes/accrued_substate.ts +253 -0
- package/src/public/avm/opcodes/addressing_mode.ts +87 -0
- package/src/public/avm/opcodes/arithmetic.ts +95 -0
- package/src/public/avm/opcodes/bitwise.ts +109 -0
- package/src/public/avm/opcodes/comparators.ts +52 -0
- package/src/public/avm/opcodes/contract.ts +72 -0
- package/src/public/avm/opcodes/control_flow.ts +114 -0
- package/src/public/avm/opcodes/conversion.ts +80 -0
- package/src/public/avm/opcodes/ec_add.ts +93 -0
- package/src/public/avm/opcodes/environment_getters.ts +82 -0
- package/src/public/avm/opcodes/external_calls.ts +228 -0
- package/src/public/avm/opcodes/hashing.ts +125 -0
- package/src/public/avm/opcodes/index.ts +15 -0
- package/src/public/avm/opcodes/instruction.ts +126 -0
- package/src/public/avm/opcodes/instruction_impl.ts +36 -0
- package/src/public/avm/opcodes/memory.ts +254 -0
- package/src/public/avm/opcodes/misc.ts +60 -0
- package/src/public/avm/opcodes/storage.ts +71 -0
- package/src/public/avm/serialization/buffer_cursor.ts +115 -0
- package/src/public/avm/serialization/bytecode_serialization.ts +206 -0
- package/src/public/avm/serialization/instruction_serialization.ts +208 -0
- package/src/public/avm/test_utils.ts +81 -0
- package/src/public/bytecode_errors.ts +6 -0
- package/src/public/execution.ts +140 -0
- package/src/public/executor_metrics.ts +71 -0
- package/src/public/fixtures/index.ts +2 -0
- package/src/public/fixtures/public_tx_simulation_tester.ts +179 -0
- package/src/public/fixtures/utils.ts +199 -0
- package/src/public/index.ts +9 -0
- package/src/public/public_db_sources.ts +369 -0
- package/src/public/public_processor/public_processor.ts +521 -0
- package/src/public/public_processor/public_processor_metrics.ts +154 -0
- package/src/public/public_tx_simulator/public_tx_context.ts +504 -0
- package/src/public/public_tx_simulator/public_tx_simulator.ts +474 -0
- package/src/public/side_effect_errors.ts +6 -0
- package/src/public/side_effect_trace.ts +516 -0
- package/src/public/side_effect_trace_interface.ts +76 -0
- package/src/public/tx_contract_cache.ts +69 -0
- package/src/public/unique_class_ids.ts +80 -0
- package/src/public/utils.ts +32 -0
- package/src/server.ts +5 -0
- package/src/test/utils.ts +36 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
+
import type { NoirCompiledCircuit } from '@aztec/stdlib/noir';
|
|
4
|
+
import type { WitnessMap } from '@noir-lang/types';
|
|
5
|
+
import type { ACIRCallback, ACIRExecutionResult } from '../acvm/acvm.js';
|
|
6
|
+
import type { ACVMWitness } from '../acvm/acvm_types.js';
|
|
7
|
+
import { type SimulationProvider } from './simulation_provider.js';
|
|
8
|
+
/**
|
|
9
|
+
* A simulation provider that uses the WASM simulator with the ability to handle blobs via the foreign call handler.
|
|
10
|
+
* This class is temporary while brillig cannot handle the blob math, and it is kept separate
|
|
11
|
+
* because the zkg commitment library used in the blob code is not browser compatible.
|
|
12
|
+
*
|
|
13
|
+
* It is only used in the context of server-side code executing simulated protocol circuits.
|
|
14
|
+
*/
|
|
15
|
+
export declare class WASMSimulatorWithBlobs implements SimulationProvider {
|
|
16
|
+
executeProtocolCircuit(input: WitnessMap, compiledCircuit: NoirCompiledCircuit): Promise<WitnessMap>;
|
|
17
|
+
executeUserCircuit(_acir: Buffer, _initialWitness: ACVMWitness, _callback: ACIRCallback): Promise<ACIRExecutionResult>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=acvm_wasm_with_blobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acvm_wasm_with_blobs.d.ts","sourceRoot":"","sources":["../../../src/private/providers/acvm_wasm_with_blobs.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAG9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,KAAK,kBAAkB,EAAqB,MAAM,0BAA0B,CAAC;AAEtF;;;;;;GAMG;AACH,qBAAa,sBAAuB,YAAW,kBAAkB;IACzD,sBAAsB,CAAC,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;IAwB1G,kBAAkB,CAChB,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,WAAW,EAC5B,SAAS,EAAE,YAAY,GACtB,OAAO,CAAC,mBAAmB,CAAC;CAGhC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { foreignCallHandler } from '@aztec/noir-protocol-circuits-types/server';
|
|
2
|
+
import { executeCircuit } from '@noir-lang/acvm_js';
|
|
3
|
+
import { parseErrorPayload } from './simulation_provider.js';
|
|
4
|
+
/**
|
|
5
|
+
* A simulation provider that uses the WASM simulator with the ability to handle blobs via the foreign call handler.
|
|
6
|
+
* This class is temporary while brillig cannot handle the blob math, and it is kept separate
|
|
7
|
+
* because the zkg commitment library used in the blob code is not browser compatible.
|
|
8
|
+
*
|
|
9
|
+
* It is only used in the context of server-side code executing simulated protocol circuits.
|
|
10
|
+
*/ export class WASMSimulatorWithBlobs {
|
|
11
|
+
async executeProtocolCircuit(input, compiledCircuit) {
|
|
12
|
+
// Execute the circuit on those initial witness values
|
|
13
|
+
//
|
|
14
|
+
// Decode the bytecode from base64 since the acvm does not know about base64 encoding
|
|
15
|
+
const decodedBytecode = Buffer.from(compiledCircuit.bytecode, 'base64');
|
|
16
|
+
//
|
|
17
|
+
// Execute the circuit
|
|
18
|
+
try {
|
|
19
|
+
const _witnessMap = await executeCircuit(decodedBytecode, input, foreignCallHandler);
|
|
20
|
+
return _witnessMap;
|
|
21
|
+
} catch (err) {
|
|
22
|
+
// Typescript types catched errors as unknown or any, so we need to narrow its type to check if it has raw assertion payload.
|
|
23
|
+
if (typeof err === 'object' && err !== null && 'rawAssertionPayload' in err) {
|
|
24
|
+
throw parseErrorPayload(compiledCircuit.abi, err);
|
|
25
|
+
}
|
|
26
|
+
throw new Error(`Circuit execution failed: ${err}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
executeUserCircuit(_acir, _initialWitness, _callback) {
|
|
30
|
+
throw new Error('Not implemented');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Logger } from '@aztec/foundation/log';
|
|
2
|
+
import type { SimulationProvider } from './simulation_provider.js';
|
|
3
|
+
export type SimulationProviderConfig = {
|
|
4
|
+
acvmBinaryPath?: string;
|
|
5
|
+
acvmWorkingDirectory?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function getSimulationProviderConfigFromEnv(): {
|
|
8
|
+
acvmWorkingDirectory: string | undefined;
|
|
9
|
+
acvmBinaryPath: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare function createSimulationProvider(config: SimulationProviderConfig, logger?: Logger): Promise<SimulationProvider>;
|
|
12
|
+
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/private/providers/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAMlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,MAAM,MAAM,wBAAwB,GAAG;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,wBAAgB,kCAAkC;;;EAMjD;AAED,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,wBAAwB,EAChC,MAAM,GAAE,MAAkC,GACzC,OAAO,CAAC,kBAAkB,CAAC,CAa7B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createLogger } from '@aztec/foundation/log';
|
|
2
|
+
import { promises as fs } from 'fs';
|
|
3
|
+
import { NativeACVMSimulator } from './acvm_native.js';
|
|
4
|
+
import { WASMSimulator } from './acvm_wasm.js';
|
|
5
|
+
export function getSimulationProviderConfigFromEnv() {
|
|
6
|
+
const { ACVM_BINARY_PATH, ACVM_WORKING_DIRECTORY } = process.env;
|
|
7
|
+
return {
|
|
8
|
+
acvmWorkingDirectory: ACVM_WORKING_DIRECTORY ? ACVM_WORKING_DIRECTORY : undefined,
|
|
9
|
+
acvmBinaryPath: ACVM_BINARY_PATH ? ACVM_BINARY_PATH : undefined
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export async function createSimulationProvider(config, logger = createLogger('simulator')) {
|
|
13
|
+
if (config.acvmBinaryPath && config.acvmWorkingDirectory) {
|
|
14
|
+
try {
|
|
15
|
+
await fs.access(config.acvmBinaryPath, fs.constants.R_OK);
|
|
16
|
+
await fs.mkdir(config.acvmWorkingDirectory, {
|
|
17
|
+
recursive: true
|
|
18
|
+
});
|
|
19
|
+
logger.info(`Using native ACVM at ${config.acvmBinaryPath} and working directory ${config.acvmWorkingDirectory}`);
|
|
20
|
+
return new NativeACVMSimulator(config.acvmWorkingDirectory, config.acvmBinaryPath);
|
|
21
|
+
} catch {
|
|
22
|
+
logger.warn(`Failed to access ACVM at ${config.acvmBinaryPath}, falling back to WASM`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
logger.info('Using WASM ACVM simulation');
|
|
26
|
+
return new WASMSimulator();
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
+
import type { NoirCompiledCircuit } from '@aztec/stdlib/noir';
|
|
4
|
+
import type { ExecutionError } from '@noir-lang/acvm_js';
|
|
5
|
+
import type { Abi, WitnessMap } from '@noir-lang/types';
|
|
6
|
+
import type { ACIRCallback, ACIRExecutionResult } from '../acvm/acvm.js';
|
|
7
|
+
import type { ACVMWitness } from '../acvm/acvm_types.js';
|
|
8
|
+
/**
|
|
9
|
+
* Low level simulation interface
|
|
10
|
+
*/
|
|
11
|
+
export interface SimulationProvider {
|
|
12
|
+
executeProtocolCircuit(input: WitnessMap, compiledCircuit: NoirCompiledCircuit): Promise<WitnessMap>;
|
|
13
|
+
executeUserCircuit(acir: Buffer, initialWitness: ACVMWitness, callback: ACIRCallback): Promise<ACIRExecutionResult>;
|
|
14
|
+
}
|
|
15
|
+
export type ErrorWithPayload = ExecutionError & {
|
|
16
|
+
decodedAssertionPayload?: any;
|
|
17
|
+
};
|
|
18
|
+
export declare function parseErrorPayload(abi: Abi, originalError: ExecutionError): Error;
|
|
19
|
+
//# sourceMappingURL=simulation_provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulation_provider.d.ts","sourceRoot":"","sources":["../../../src/private/providers/simulation_provider.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB,CAAC,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACrG,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACrH;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG;IAAE,uBAAuB,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AAIlF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,aAAa,EAAE,cAAc,GAAG,KAAK,CAuBhF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { abiDecodeError } from '@noir-lang/noirc_abi';
|
|
2
|
+
// Error handling taken from noir/noir-repo/tooling/noir_js/src/witness_generation.ts.
|
|
3
|
+
// TODO: import this in isolation without having to import noir_js in its entirety.
|
|
4
|
+
export function parseErrorPayload(abi, originalError) {
|
|
5
|
+
const payload = originalError.rawAssertionPayload;
|
|
6
|
+
if (!payload) {
|
|
7
|
+
return originalError;
|
|
8
|
+
}
|
|
9
|
+
const enrichedError = originalError;
|
|
10
|
+
try {
|
|
11
|
+
// Decode the payload
|
|
12
|
+
const decodedPayload = abiDecodeError(abi, payload);
|
|
13
|
+
if (typeof decodedPayload === 'string') {
|
|
14
|
+
// If it's a string, just add it to the error message
|
|
15
|
+
enrichedError.message = `Circuit execution failed: ${decodedPayload}`;
|
|
16
|
+
} else {
|
|
17
|
+
// If not, attach the payload to the original error
|
|
18
|
+
enrichedError.decodedAssertionPayload = decodedPayload;
|
|
19
|
+
}
|
|
20
|
+
} catch (_errorDecoding) {
|
|
21
|
+
// Ignore errors decoding the payload
|
|
22
|
+
}
|
|
23
|
+
return enrichedError;
|
|
24
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { FunctionCall } from '@aztec/stdlib/abi';
|
|
2
|
+
import { FunctionSelector } from '@aztec/stdlib/abi';
|
|
3
|
+
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
|
+
import { PrivateExecutionResult, TxExecutionRequest } from '@aztec/stdlib/tx';
|
|
5
|
+
import type { ExecutionDataProvider } from './execution_data_provider.js';
|
|
6
|
+
import type { SimulationProvider } from './providers/simulation_provider.js';
|
|
7
|
+
/**
|
|
8
|
+
* The ACIR simulator.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AcirSimulator {
|
|
11
|
+
private executionDataProvider;
|
|
12
|
+
private simulationProvider;
|
|
13
|
+
private log;
|
|
14
|
+
constructor(executionDataProvider: ExecutionDataProvider, simulationProvider: SimulationProvider);
|
|
15
|
+
/**
|
|
16
|
+
* Runs a private function.
|
|
17
|
+
* @param request - The transaction request.
|
|
18
|
+
* @param entryPointArtifact - The artifact of the entry point function.
|
|
19
|
+
* @param contractAddress - The address of the contract (should match request.origin)
|
|
20
|
+
* @param msgSender - The address calling the function. This can be replaced to simulate a call from another contract or a specific account.
|
|
21
|
+
* @param scopes - The accounts whose notes we can access in this call. Currently optional and will default to all.
|
|
22
|
+
* @returns The result of the execution.
|
|
23
|
+
*/
|
|
24
|
+
run(request: TxExecutionRequest, contractAddress: AztecAddress, selector: FunctionSelector, msgSender?: AztecAddress, scopes?: AztecAddress[]): Promise<PrivateExecutionResult>;
|
|
25
|
+
/**
|
|
26
|
+
* Runs an unconstrained function.
|
|
27
|
+
* @param request - The transaction request.
|
|
28
|
+
* @param entryPointArtifact - The artifact of the entry point function.
|
|
29
|
+
* @param contractAddress - The address of the contract.
|
|
30
|
+
* @param scopes - The accounts whose notes we can access in this call. Currently optional and will default to all.
|
|
31
|
+
*/
|
|
32
|
+
runUnconstrained(request: FunctionCall, contractAddress: AztecAddress, selector: FunctionSelector, scopes?: AztecAddress[]): Promise<import("@aztec/stdlib/abi").AbiDecoded>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=simulator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulator.d.ts","sourceRoot":"","sources":["../../src/private/simulator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAgB,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAe,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG3F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAK1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAI7E;;GAEG;AACH,qBAAa,aAAa;IAGZ,OAAO,CAAC,qBAAqB;IAAyB,OAAO,CAAC,kBAAkB;IAF5F,OAAO,CAAC,GAAG,CAAS;gBAEA,qBAAqB,EAAE,qBAAqB,EAAU,kBAAkB,EAAE,kBAAkB;IAIhH;;;;;;;;OAQG;IACU,GAAG,CACd,OAAO,EAAE,kBAAkB,EAC3B,eAAe,EAAE,YAAY,EAC7B,QAAQ,EAAE,gBAAgB,EAC1B,SAAS,eAA6C,EACtD,MAAM,CAAC,EAAE,YAAY,EAAE,GACtB,OAAO,CAAC,sBAAsB,CAAC;IA8DlC;;;;;;OAMG;IACU,gBAAgB,CAC3B,OAAO,EAAE,YAAY,EACrB,eAAe,EAAE,YAAY,EAC7B,QAAQ,EAAE,gBAAgB,EAC1B,MAAM,CAAC,EAAE,YAAY,EAAE;CA+B1B"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Fr } from '@aztec/foundation/fields';
|
|
2
|
+
import { createLogger } from '@aztec/foundation/log';
|
|
3
|
+
import { FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
|
|
4
|
+
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
5
|
+
import { CallContext, PrivateExecutionResult } from '@aztec/stdlib/tx';
|
|
6
|
+
import { createSimulationError } from '../common/errors.js';
|
|
7
|
+
import { ExecutionNoteCache } from './execution_note_cache.js';
|
|
8
|
+
import { HashedValuesCache } from './hashed_values_cache.js';
|
|
9
|
+
import { executePrivateFunction, verifyCurrentClassId } from './private_execution.js';
|
|
10
|
+
import { PrivateExecutionOracle } from './private_execution_oracle.js';
|
|
11
|
+
import { executeUnconstrainedFunction } from './unconstrained_execution.js';
|
|
12
|
+
import { UnconstrainedExecutionOracle } from './unconstrained_execution_oracle.js';
|
|
13
|
+
/**
|
|
14
|
+
* The ACIR simulator.
|
|
15
|
+
*/ export class AcirSimulator {
|
|
16
|
+
executionDataProvider;
|
|
17
|
+
simulationProvider;
|
|
18
|
+
log;
|
|
19
|
+
constructor(executionDataProvider, simulationProvider){
|
|
20
|
+
this.executionDataProvider = executionDataProvider;
|
|
21
|
+
this.simulationProvider = simulationProvider;
|
|
22
|
+
this.log = createLogger('simulator');
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Runs a private function.
|
|
26
|
+
* @param request - The transaction request.
|
|
27
|
+
* @param entryPointArtifact - The artifact of the entry point function.
|
|
28
|
+
* @param contractAddress - The address of the contract (should match request.origin)
|
|
29
|
+
* @param msgSender - The address calling the function. This can be replaced to simulate a call from another contract or a specific account.
|
|
30
|
+
* @param scopes - The accounts whose notes we can access in this call. Currently optional and will default to all.
|
|
31
|
+
* @returns The result of the execution.
|
|
32
|
+
*/ async run(request, contractAddress, selector, msgSender = AztecAddress.fromField(Fr.MAX_FIELD_VALUE), scopes) {
|
|
33
|
+
const header = await this.executionDataProvider.getBlockHeader();
|
|
34
|
+
await verifyCurrentClassId(contractAddress, this.executionDataProvider);
|
|
35
|
+
const entryPointArtifact = await this.executionDataProvider.getFunctionArtifact(contractAddress, selector);
|
|
36
|
+
if (entryPointArtifact.functionType !== FunctionType.PRIVATE) {
|
|
37
|
+
throw new Error(`Cannot run ${entryPointArtifact.functionType} function as private`);
|
|
38
|
+
}
|
|
39
|
+
if (request.origin !== contractAddress) {
|
|
40
|
+
this.log.warn(`Request origin does not match contract address in simulation. Request origin: ${request.origin}, contract address: ${contractAddress}`);
|
|
41
|
+
}
|
|
42
|
+
// reserve the first side effect for the tx hash (inserted by the private kernel)
|
|
43
|
+
const startSideEffectCounter = 1;
|
|
44
|
+
const callContext = new CallContext(msgSender, contractAddress, await FunctionSelector.fromNameAndParameters(entryPointArtifact.name, entryPointArtifact.parameters), entryPointArtifact.isStatic);
|
|
45
|
+
const txRequestHash = await request.toTxRequest().hash();
|
|
46
|
+
const noteCache = new ExecutionNoteCache(txRequestHash);
|
|
47
|
+
const context = new PrivateExecutionOracle(request.firstCallArgsHash, request.txContext, callContext, header, request.authWitnesses, request.capsules, HashedValuesCache.create(request.argsOfCalls), noteCache, this.executionDataProvider, this.simulationProvider, /*totalPublicArgsCount=*/ 0, startSideEffectCounter, undefined, scopes);
|
|
48
|
+
try {
|
|
49
|
+
const executionResult = await executePrivateFunction(this.simulationProvider, context, entryPointArtifact, contractAddress, request.functionSelector);
|
|
50
|
+
const { usedTxRequestHashForNonces } = noteCache.finish();
|
|
51
|
+
const firstNullifierHint = usedTxRequestHashForNonces ? Fr.ZERO : noteCache.getAllNullifiers()[0];
|
|
52
|
+
return new PrivateExecutionResult(executionResult, firstNullifierHint);
|
|
53
|
+
} catch (err) {
|
|
54
|
+
throw createSimulationError(err instanceof Error ? err : new Error('Unknown error during private execution'));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Runs an unconstrained function.
|
|
59
|
+
* @param request - The transaction request.
|
|
60
|
+
* @param entryPointArtifact - The artifact of the entry point function.
|
|
61
|
+
* @param contractAddress - The address of the contract.
|
|
62
|
+
* @param scopes - The accounts whose notes we can access in this call. Currently optional and will default to all.
|
|
63
|
+
*/ async runUnconstrained(request, contractAddress, selector, scopes) {
|
|
64
|
+
await verifyCurrentClassId(contractAddress, this.executionDataProvider);
|
|
65
|
+
const entryPointArtifact = await this.executionDataProvider.getFunctionArtifact(contractAddress, selector);
|
|
66
|
+
if (entryPointArtifact.functionType !== FunctionType.UNCONSTRAINED) {
|
|
67
|
+
throw new Error(`Cannot run ${entryPointArtifact.functionType} function as unconstrained`);
|
|
68
|
+
}
|
|
69
|
+
const context = new UnconstrainedExecutionOracle(contractAddress, [], [], this.executionDataProvider, undefined, scopes);
|
|
70
|
+
try {
|
|
71
|
+
return await executeUnconstrainedFunction(this.simulationProvider, context, entryPointArtifact, contractAddress, request.selector, request.args);
|
|
72
|
+
} catch (err) {
|
|
73
|
+
throw createSimulationError(err instanceof Error ? err : new Error('Unknown error during private execution'));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Fr } from '@aztec/foundation/fields';
|
|
2
|
+
import { type AbiDecoded, type FunctionArtifact, type FunctionSelector } from '@aztec/stdlib/abi';
|
|
3
|
+
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
|
+
import type { SimulationProvider } from './providers/simulation_provider.js';
|
|
5
|
+
import type { UnconstrainedExecutionOracle } from './unconstrained_execution_oracle.js';
|
|
6
|
+
/**
|
|
7
|
+
* Execute an unconstrained function and return the decoded values.
|
|
8
|
+
*/
|
|
9
|
+
export declare function executeUnconstrainedFunction(simulatorProvider: SimulationProvider, oracle: UnconstrainedExecutionOracle, artifact: FunctionArtifact, contractAddress: AztecAddress, functionSelector: FunctionSelector, args: Fr[], log?: import("@aztec/foundation/log").Logger): Promise<AbiDecoded>;
|
|
10
|
+
//# sourceMappingURL=unconstrained_execution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unconstrained_execution.d.ts","sourceRoot":"","sources":["../../src/private/unconstrained_execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAiB,MAAM,mBAAmB,CAAC;AACjH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAKhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AAGxF;;GAEG;AACH,wBAAsB,4BAA4B,CAChD,iBAAiB,EAAE,kBAAkB,EACrC,MAAM,EAAE,4BAA4B,EACpC,QAAQ,EAAE,gBAAgB,EAC1B,eAAe,EAAE,YAAY,EAC7B,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,EAAE,EAAE,EACV,GAAG,yCAAoD,GACtD,OAAO,CAAC,UAAU,CAAC,CAyBrB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createLogger } from '@aztec/foundation/log';
|
|
2
|
+
import { decodeFromAbi } from '@aztec/stdlib/abi';
|
|
3
|
+
import { ExecutionError, resolveAssertionMessageFromError } from '../common/errors.js';
|
|
4
|
+
import { witnessMapToFields } from './acvm/deserialize.js';
|
|
5
|
+
import { Oracle, extractCallStack, toACVMWitness } from './acvm/index.js';
|
|
6
|
+
// docs:start:execute_unconstrained_function
|
|
7
|
+
/**
|
|
8
|
+
* Execute an unconstrained function and return the decoded values.
|
|
9
|
+
*/ export async function executeUnconstrainedFunction(simulatorProvider, oracle, artifact, contractAddress, functionSelector, args, log = createLogger('simulator:unconstrained_execution')) {
|
|
10
|
+
log.verbose(`Executing unconstrained function ${artifact.name}`, {
|
|
11
|
+
contract: contractAddress,
|
|
12
|
+
selector: functionSelector
|
|
13
|
+
});
|
|
14
|
+
const acir = artifact.bytecode;
|
|
15
|
+
const initialWitness = toACVMWitness(0, args);
|
|
16
|
+
const acirExecutionResult = await simulatorProvider.executeUserCircuit(acir, initialWitness, new Oracle(oracle)).catch((err)=>{
|
|
17
|
+
err.message = resolveAssertionMessageFromError(err, artifact);
|
|
18
|
+
throw new ExecutionError(err.message, {
|
|
19
|
+
contractAddress,
|
|
20
|
+
functionSelector
|
|
21
|
+
}, extractCallStack(err, artifact.debug), {
|
|
22
|
+
cause: err
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
const returnWitness = witnessMapToFields(acirExecutionResult.returnWitness);
|
|
26
|
+
return decodeFromAbi(artifact.returnTypes, returnWitness);
|
|
27
|
+
} // docs:end:execute_unconstrained_function
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
+
import { Fr } from '@aztec/foundation/fields';
|
|
4
|
+
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
5
|
+
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
6
|
+
import type { CompleteAddress, ContractInstance } from '@aztec/stdlib/contract';
|
|
7
|
+
import type { KeyValidationRequest } from '@aztec/stdlib/kernel';
|
|
8
|
+
import { IndexedTaggingSecret, LogWithTxData } from '@aztec/stdlib/logs';
|
|
9
|
+
import type { NoteStatus } from '@aztec/stdlib/note';
|
|
10
|
+
import { type MerkleTreeId, type NullifierMembershipWitness, PublicDataWitness } from '@aztec/stdlib/trees';
|
|
11
|
+
import type { BlockHeader, Capsule } from '@aztec/stdlib/tx';
|
|
12
|
+
import { type NoteData, TypedOracle } from './acvm/index.js';
|
|
13
|
+
import type { ExecutionDataProvider } from './execution_data_provider.js';
|
|
14
|
+
/**
|
|
15
|
+
* The oracle for an unconstrained function execution.
|
|
16
|
+
*/
|
|
17
|
+
export declare class UnconstrainedExecutionOracle extends TypedOracle {
|
|
18
|
+
protected readonly contractAddress: AztecAddress;
|
|
19
|
+
/** List of transient auth witnesses to be used during this simulation */
|
|
20
|
+
protected readonly authWitnesses: AuthWitness[];
|
|
21
|
+
protected readonly capsules: Capsule[];
|
|
22
|
+
protected readonly executionDataProvider: ExecutionDataProvider;
|
|
23
|
+
protected log: import("@aztec/foundation/log").Logger;
|
|
24
|
+
protected readonly scopes?: AztecAddress[] | undefined;
|
|
25
|
+
constructor(contractAddress: AztecAddress,
|
|
26
|
+
/** List of transient auth witnesses to be used during this simulation */
|
|
27
|
+
authWitnesses: AuthWitness[], capsules: Capsule[], executionDataProvider: ExecutionDataProvider, log?: import("@aztec/foundation/log").Logger, scopes?: AztecAddress[] | undefined);
|
|
28
|
+
getBlockNumber(): Promise<number>;
|
|
29
|
+
getContractAddress(): Promise<AztecAddress>;
|
|
30
|
+
getChainId(): Promise<Fr>;
|
|
31
|
+
getVersion(): Promise<Fr>;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve keys associated with a specific master public key and app address.
|
|
34
|
+
* @param pkMHash - The master public key hash.
|
|
35
|
+
* @returns A Promise that resolves to nullifier keys.
|
|
36
|
+
* @throws If the keys are not registered in the key store.
|
|
37
|
+
*/
|
|
38
|
+
getKeyValidationRequest(pkMHash: Fr): Promise<KeyValidationRequest>;
|
|
39
|
+
/**
|
|
40
|
+
* Fetches the index and sibling path of a leaf at a given block from a given tree.
|
|
41
|
+
* @param blockNumber - The block number at which to get the membership witness.
|
|
42
|
+
* @param treeId - Id of the tree to get the sibling path from.
|
|
43
|
+
* @param leafValue - The leaf value
|
|
44
|
+
* @returns The index and sibling path concatenated [index, sibling_path]
|
|
45
|
+
*/
|
|
46
|
+
getMembershipWitness(blockNumber: number, treeId: MerkleTreeId, leafValue: Fr): Promise<Fr[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns a nullifier membership witness for a given nullifier at a given block.
|
|
49
|
+
* @param blockNumber - The block number at which to get the index.
|
|
50
|
+
* @param nullifier - Nullifier we try to find witness for.
|
|
51
|
+
* @returns The nullifier membership witness (if found).
|
|
52
|
+
*/
|
|
53
|
+
getNullifierMembershipWitness(blockNumber: number, nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Returns a low nullifier membership witness for a given nullifier at a given block.
|
|
56
|
+
* @param blockNumber - The block number at which to get the index.
|
|
57
|
+
* @param nullifier - Nullifier we try to find the low nullifier witness for.
|
|
58
|
+
* @returns The low nullifier membership witness (if found).
|
|
59
|
+
* @remarks Low nullifier witness can be used to perform a nullifier non-inclusion proof by leveraging the "linked
|
|
60
|
+
* list structure" of leaves and proving that a lower nullifier is pointing to a bigger next value than the nullifier
|
|
61
|
+
* we are trying to prove non-inclusion for.
|
|
62
|
+
*/
|
|
63
|
+
getLowNullifierMembershipWitness(blockNumber: number, nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* Returns a public data tree witness for a given leaf slot at a given block.
|
|
66
|
+
* @param blockNumber - The block number at which to get the index.
|
|
67
|
+
* @param leafSlot - The slot of the public data tree to get the witness for.
|
|
68
|
+
* @returns - The witness
|
|
69
|
+
*/
|
|
70
|
+
getPublicDataTreeWitness(blockNumber: number, leafSlot: Fr): Promise<PublicDataWitness | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* Fetches a block header of a given block.
|
|
73
|
+
* @param blockNumber - The number of a block of which to get the block header.
|
|
74
|
+
* @returns Block extracted from a block with block number `blockNumber`.
|
|
75
|
+
*/
|
|
76
|
+
getBlockHeader(blockNumber: number): Promise<BlockHeader | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* Retrieve the complete address associated to a given address.
|
|
79
|
+
* @param account - The account address.
|
|
80
|
+
* @returns A complete address associated with the input address.
|
|
81
|
+
* @throws An error if the account is not registered in the database.
|
|
82
|
+
*/
|
|
83
|
+
getCompleteAddress(account: AztecAddress): Promise<CompleteAddress>;
|
|
84
|
+
/**
|
|
85
|
+
* Returns a contract instance associated with an address or throws if not found.
|
|
86
|
+
* @param address - Address.
|
|
87
|
+
* @returns A contract instance.
|
|
88
|
+
*/
|
|
89
|
+
getContractInstance(address: AztecAddress): Promise<ContractInstance>;
|
|
90
|
+
/**
|
|
91
|
+
* Returns an auth witness for the given message hash. Checks on the list of transient witnesses
|
|
92
|
+
* for this transaction first, and falls back to the local database if not found.
|
|
93
|
+
* @param messageHash - Hash of the message to authenticate.
|
|
94
|
+
* @returns Authentication witness for the requested message hash.
|
|
95
|
+
*/
|
|
96
|
+
getAuthWitness(messageHash: Fr): Promise<Fr[] | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* Gets some notes for a contract address and storage slot.
|
|
99
|
+
* Returns a flattened array containing filtered notes.
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* Check for pending notes with matching slot.
|
|
103
|
+
* Real notes coming from DB will have a leafIndex which
|
|
104
|
+
* represents their index in the note hash tree.
|
|
105
|
+
*
|
|
106
|
+
* @param storageSlot - The storage slot.
|
|
107
|
+
* @param numSelects - The number of valid selects in selectBy and selectValues.
|
|
108
|
+
* @param selectBy - An array of indices of the fields to selects.
|
|
109
|
+
* @param selectValues - The values to match.
|
|
110
|
+
* @param selectComparators - The comparators to use to match values.
|
|
111
|
+
* @param sortBy - An array of indices of the fields to sort.
|
|
112
|
+
* @param sortOrder - The order of the corresponding index in sortBy. (1: DESC, 2: ASC, 0: Do nothing)
|
|
113
|
+
* @param limit - The number of notes to retrieve per query.
|
|
114
|
+
* @param offset - The starting index for pagination.
|
|
115
|
+
* @param status - The status of notes to fetch.
|
|
116
|
+
* @returns Array of note data.
|
|
117
|
+
*/
|
|
118
|
+
getNotes(storageSlot: Fr, numSelects: number, selectByIndexes: number[], selectByOffsets: number[], selectByLengths: number[], selectValues: Fr[], selectComparators: number[], sortByIndexes: number[], sortByOffsets: number[], sortByLengths: number[], sortOrder: number[], limit: number, offset: number, status: NoteStatus): Promise<NoteData[]>;
|
|
119
|
+
/**
|
|
120
|
+
* Check if a nullifier exists in the nullifier tree.
|
|
121
|
+
* @param innerNullifier - The inner nullifier.
|
|
122
|
+
* @returns A boolean indicating whether the nullifier exists in the tree or not.
|
|
123
|
+
*/
|
|
124
|
+
checkNullifierExists(innerNullifier: Fr): Promise<boolean>;
|
|
125
|
+
/**
|
|
126
|
+
* Fetches a message from the executionDataProvider, given its key.
|
|
127
|
+
* @param contractAddress - Address of a contract by which the message was emitted.
|
|
128
|
+
* @param messageHash - Hash of the message.
|
|
129
|
+
* @param secret - Secret used to compute a nullifier.
|
|
130
|
+
* @dev Contract address and secret are only used to compute the nullifier to get non-nullified messages
|
|
131
|
+
* @returns The l1 to l2 membership witness (index of message in the tree and sibling path).
|
|
132
|
+
*/
|
|
133
|
+
getL1ToL2MembershipWitness(contractAddress: AztecAddress, messageHash: Fr, secret: Fr): Promise<import("../client.js").MessageLoadOracleInputs<39>>;
|
|
134
|
+
/**
|
|
135
|
+
* Read the public storage data.
|
|
136
|
+
* @param contractAddress - The address to read storage from.
|
|
137
|
+
* @param startStorageSlot - The starting storage slot.
|
|
138
|
+
* @param blockNumber - The block number to read storage at.
|
|
139
|
+
* @param numberOfElements - Number of elements to read from the starting storage slot.
|
|
140
|
+
*/
|
|
141
|
+
storageRead(contractAddress: AztecAddress, startStorageSlot: Fr, blockNumber: number, numberOfElements: number): Promise<Fr[]>;
|
|
142
|
+
debugLog(message: string, fields: Fr[]): void;
|
|
143
|
+
/**
|
|
144
|
+
* Returns the tagging secret for a given sender and recipient pair, siloed to the current contract address.
|
|
145
|
+
* Includes the next index to be used used for tagging with this secret.
|
|
146
|
+
* For this to work, the ivsk_m of the sender must be known.
|
|
147
|
+
* @param sender - The address sending the note
|
|
148
|
+
* @param recipient - The address receiving the note
|
|
149
|
+
* @returns A tagging secret that can be used to tag notes.
|
|
150
|
+
*/
|
|
151
|
+
getIndexedTaggingSecretAsSender(sender: AztecAddress, recipient: AztecAddress): Promise<IndexedTaggingSecret>;
|
|
152
|
+
syncNotes(): Promise<void>;
|
|
153
|
+
deliverNote(contractAddress: AztecAddress, storageSlot: Fr, nonce: Fr, content: Fr[], noteHash: Fr, nullifier: Fr, txHash: Fr, recipient: AztecAddress): Promise<void>;
|
|
154
|
+
getLogByTag(tag: Fr): Promise<LogWithTxData | null>;
|
|
155
|
+
storeCapsule(contractAddress: AztecAddress, slot: Fr, capsule: Fr[]): Promise<void>;
|
|
156
|
+
loadCapsule(contractAddress: AztecAddress, slot: Fr): Promise<Fr[] | null>;
|
|
157
|
+
deleteCapsule(contractAddress: AztecAddress, slot: Fr): Promise<void>;
|
|
158
|
+
copyCapsule(contractAddress: AztecAddress, srcSlot: Fr, dstSlot: Fr, numEntries: number): Promise<void>;
|
|
159
|
+
aes128Decrypt(ciphertext: Buffer, iv: Buffer, symKey: Buffer): Promise<Buffer>;
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=unconstrained_execution_oracle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unconstrained_execution_oracle.d.ts","sourceRoot":"","sources":["../../src/private/unconstrained_execution_oracle.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,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