|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
uses the yarn-project/simulator to simulate the bytecode Singleton, because initializing the simulator is expensive More...
#include <simulator.hpp>
Public Member Functions | |
| JsSimulator (JsSimulator &other)=delete | |
| void | operator= (const JsSimulator &)=delete |
| JsSimulator (JsSimulator &&)=delete | |
| JsSimulator & | operator= (JsSimulator &&)=delete |
| ~JsSimulator ()=default | |
| SimulatorResult | simulate (fuzzer::FuzzerWorldStateManager &ws_mgr, const std::vector< uint8_t > &bytecode, const std::vector< FF > &calldata) override |
Public Member Functions inherited from Simulator | |
| virtual | ~Simulator ()=default |
| Simulator (const Simulator &)=delete | |
| Simulator & | operator= (const Simulator &)=delete |
| Simulator (Simulator &&)=delete | |
| Simulator & | operator= (Simulator &&)=delete |
| Simulator ()=default | |
Static Public Member Functions | |
| static JsSimulator * | getInstance () |
| static void | initialize (std::string &simulator_path) |
Protected Member Functions | |
| JsSimulator (std::string &simulator_path) | |
Protected Attributes | |
| std::string | simulator_path |
| Process | process |
Static Protected Attributes | |
| static JsSimulator * | instance = nullptr |
uses the yarn-project/simulator to simulate the bytecode Singleton, because initializing the simulator is expensive
Definition at line 44 of file simulator.hpp.
|
protected |
Definition at line 169 of file simulator.cpp.
|
delete |
|
delete |
|
default |
|
static |
Definition at line 174 of file simulator.cpp.
|
static |
Initializes the typescript simulator process See yarn-project/simulator/scripts/fuzzing
Definition at line 184 of file simulator.cpp.
|
delete |
|
delete |
|
overridevirtual |
Implements Simulator.
Definition at line 192 of file simulator.cpp.
|
staticprotected |
Definition at line 46 of file simulator.hpp.
|
protected |
Definition at line 49 of file simulator.hpp.
|
protected |
Definition at line 47 of file simulator.hpp.