|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Classes | |
| struct | AvmRequest |
| Context passed to each command's execute() method. Provides access to WSDB and CDB IPC clients. More... | |
Functions | |
| template<> | |
| void | handle_simulate (AvmRequest &request, wire::AvmSimulate &&command, Responder< wire::AvmSimulateResponse > respond) |
| template<> | |
| void | handle_simulate_with_hints (AvmRequest &request, wire::AvmSimulateWithHints &&command, Responder< wire::AvmSimulateWithHintsResponse > respond) |
| int | execute_avm_server (const std::string &input_path, const std::string &wsdb_path, const std::string &cdb_path) |
| Start the bb-avm-sim IPC server. | |
| int | parse_and_run_avm (int argc, char *argv[]) |
Variables | |
| const avm2::simulation::CancellationTokenPtr | g_sim_cancellation_token |
| std::atomic< avm2::simulation::CancellationToken * > | g_active_cancellation_token { nullptr } |
| int bb::avm::execute_avm_server | ( | const std::string & | input_path, |
| const std::string & | wsdb_path, | ||
| const std::string & | cdb_path | ||
| ) |
Start the bb-avm-sim IPC server.
Connects to WSDB and CDB as IPC clients, then runs the server loop dispatching incoming simulation commands.
| input_path | IPC path for TS client connections. |
| wsdb_path | IPC path to the running WSDB server. |
| cdb_path | IPC path to the running CDB server. |
Definition at line 19 of file avm_ipc_server.cpp.
| void bb::avm::handle_simulate | ( | AvmRequest & | request, |
| wire::AvmSimulate && | command, | ||
| Responder< wire::AvmSimulateResponse > | respond | ||
| ) |
Definition at line 53 of file avm_execute.cpp.
| void bb::avm::handle_simulate_with_hints | ( | AvmRequest & | request, |
| wire::AvmSimulateWithHints && | command, | ||
| Responder< wire::AvmSimulateWithHintsResponse > | respond | ||
| ) |
Definition at line 108 of file avm_execute.cpp.
| std::atomic< avm2::simulation::CancellationToken * > bb::avm::g_active_cancellation_token { nullptr } |
Global cancellation token for the active simulation. SIGUSR1 handler uses this.
Definition at line 35 of file avm_execute.cpp.
| const avm2::simulation::CancellationTokenPtr bb::avm::g_sim_cancellation_token |
Definition at line 32 of file avm_execute.cpp.