|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <wsdb_ipc_merkle_db.hpp>
Private Member Functions | |
| void | invalidate_tree_roots_cache () |
Static Private Member Functions | |
| template<typename T > | |
| static std::vector< uint8_t > | serialize_to_msgpack (const T &value) |
| template<typename T > | |
| static T | deserialize_from_msgpack (const std::vector< uint8_t > &bytes) |
Private Attributes | |
| wsdb::WsdbIpcClient & | client_ |
| world_state::WorldStateRevision | revision_ |
| std::stack< uint32_t > | checkpoint_stack_ { { 0 } } |
| std::optional< avm2::TreeSnapshots > | cached_tree_roots_ |
Definition at line 21 of file wsdb_ipc_merkle_db.hpp.
| bb::wsdb_client::WsdbIpcMerkleDB::WsdbIpcMerkleDB | ( | wsdb::WsdbIpcClient & | client, |
| world_state::WorldStateRevision | revision | ||
| ) |
Construct from a connected WSDB IPC client and world state revision.
| client | Reference to a connected WsdbIpcClient. |
| revision | The world state revision (includes forkId) to use for queries. |
Definition at line 37 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 156 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 212 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 205 of file wsdb_ipc_merkle_db.cpp.
|
staticprivate |
Definition at line 25 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 226 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 121 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 110 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 98 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 91 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 84 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 46 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 146 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 136 of file wsdb_ipc_merkle_db.cpp.
|
private |
Invalidate the cached tree roots (call after any write operation).
Definition at line 75 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 168 of file wsdb_ipc_merkle_db.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::LowLevelMerkleDBInterface.
Definition at line 219 of file wsdb_ipc_merkle_db.cpp.
|
staticprivate |
Definition at line 18 of file wsdb_ipc_merkle_db.cpp.
|
mutableprivate |
Cached tree roots — avoids 5 IPC round trips per get_tree_roots() call.
Definition at line 69 of file wsdb_ipc_merkle_db.hpp.
|
private |
Definition at line 67 of file wsdb_ipc_merkle_db.hpp.
|
private |
Definition at line 65 of file wsdb_ipc_merkle_db.hpp.
|
private |
Definition at line 66 of file wsdb_ipc_merkle_db.hpp.