Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
types.cpp
Go to the documentation of this file.
1
3#include <string>
4
5namespace bb::world_state {
7{
8 switch (id) {
10 return "NullifierTree";
12 return "NoteHashTree";
14 return "PublicDataTree";
16 return "L1ToL2MessageTree";
18 return "ArchiveTree";
19 default:
20 throw std::invalid_argument("Unknown MerkleTreeId");
21 }
22}
23} // namespace bb::world_state
@ L1_TO_L2_MESSAGE_TREE
Definition types.hpp:22
std::string getMerkleTreeName(MerkleTreeId id)
Definition types.cpp:6