22 void get_value(std::vector<uint8_t>&, std::vector<uint8_t>&) {};
28 void put_value(std::vector<uint8_t>&, std::vector<uint8_t>&) {};
52 std::vector<
std::pair<bool,
std::vector<uint8_t>>>(
53 indices,
std::pair<bool,
std::vector<uint8_t>>(false,
std::vector<uint8_t>()))))
A very basic 2-d array for use as a backing store for merkle trees. Can store up to 'indices' nodes p...
ArrayStore(ArrayStore const &other)=delete
ReadTransactionPtr create_read_transactiono()
void put_meta(const index_t &size, const bb::fr &root)
void put_node(uint32_t level, index_t index, const std::vector< uint8_t > &data)
ArrayStore(ArrayStore const &&other)=delete
ArrayStore & operator=(ArrayStore const &&other)=delete
ArrayStore & operator=(ArrayStore const &other)=delete
ArrayStore(const std::string &name, uint32_t depth, index_t indices=1024)
void get_meta(index_t &size, bb::fr &root, ReadTransaction &, bool) const
typename PersistedStore::WriteTransaction WriteTransaction
std::vector< std::vector< std::pair< bool, std::vector< uint8_t > > > > map
typename PersistedStore::ReadTransaction ReadTransaction
bool get_node(uint32_t level, index_t index, std::vector< uint8_t > &data, ReadTransaction &, bool) const
std::unique_ptr< ReadTransaction > ReadTransactionPtr
static MockTransaction::Ptr create_write_transaction()
static MockTransaction::Ptr create_read_transaction()
std::unique_ptr< MockTransaction > Ptr
void get_value(std::vector< uint8_t > &, std::vector< uint8_t > &)
void put_value_by_integer(T &, std::vector< uint8_t > &)
bool get_node(uint32_t, index_t, std::vector< uint8_t > &) const
void put_value(std::vector< uint8_t > &, std::vector< uint8_t > &)
void put_node(uint32_t, index_t, const std::vector< uint8_t > &)
void get_value_by_integer(T &, std::vector< uint8_t > &)
const std::vector< FF > data
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept