Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
world_state_stores.hpp
Go to the documentation of this file.
1#pragma once
2
4#include <memory>
5#include <utility>
6
7using namespace bb::crypto::merkle_tree;
8
9namespace bb::world_state {
11 using Ptr = std::shared_ptr<WorldStateStores>;
12
18
30
32 : nullifierStore(std::move(other.nullifierStore))
33 , publicDataStore(std::move(other.publicDataStore))
34 , archiveStore(std::move(other.archiveStore))
35 , noteHashStore(std::move(other.noteHashStore))
36 , messageStore(std::move(other.messageStore))
37 {}
38
39 auto begin() const { return stores.begin(); }
40 auto end() const { return stores.end(); }
41
42 WorldStateStores(const WorldStateStores& other) = delete;
43 ~WorldStateStores() = default;
44
47
48 private:
49 std::array<LMDBTreeStore::SharedPtr, 5> stores{
51 };
52};
53} // namespace bb::world_state
std::shared_ptr< LMDBTreeStore > SharedPtr
FF a
STL namespace.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
LMDBTreeStore::SharedPtr archiveStore
LMDBTreeStore::SharedPtr publicDataStore
std::shared_ptr< WorldStateStores > Ptr
WorldStateStores & operator=(WorldStateStores &&other)=delete
LMDBTreeStore::SharedPtr noteHashStore
WorldStateStores & operator=(WorldStateStores &other)=delete
WorldStateStores(WorldStateStores &&other) noexcept
std::array< LMDBTreeStore::SharedPtr, 5 > stores
LMDBTreeStore::SharedPtr messageStore
WorldStateStores(const WorldStateStores &other)=delete
LMDBTreeStore::SharedPtr nullifierStore
WorldStateStores(LMDBTreeStore::SharedPtr n, LMDBTreeStore::SharedPtr p, LMDBTreeStore::SharedPtr a, LMDBTreeStore::SharedPtr no, LMDBTreeStore::SharedPtr m)