Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
types.hpp File Reference
#include "barretenberg/ecc/curves/bn254/fr.hpp"
#include "barretenberg/lmdblib/types.hpp"
#include "lmdb.h"
#include <cstdint>
#include <optional>

Go to the source code of this file.

Classes

struct  bb::crypto::merkle_tree::RequestContext
 
struct  bb::crypto::merkle_tree::TreeDBStats
 

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::crypto
 
namespace  bb::crypto::merkle_tree
 

Typedefs

using bb::crypto::merkle_tree::index_t = uint64_t
 
using bb::crypto::merkle_tree::block_number_t = uint32_t
 
using bb::crypto::merkle_tree::LeafIndexKeyType = uint64_t
 
using bb::crypto::merkle_tree::BlockMetaKeyType = uint64_t
 
using bb::crypto::merkle_tree::FrKeyType = uint256_t
 
using bb::crypto::merkle_tree::MetaKeyType = uint8_t
 

Functions

template<typename LeafType >
fr bb::crypto::merkle_tree::preimage_to_key (const LeafType &leaf)
 
fr bb::crypto::merkle_tree::preimage_to_key (const fr &leaf)
 
template<typename LeafType >
bool bb::crypto::merkle_tree::is_empty (const LeafType &leaf)
 
bool bb::crypto::merkle_tree::is_empty (const fr &leaf)
 
template<typename LeafType >
constexpr bool bb::crypto::merkle_tree::requires_preimage_for_key ()
 
template<>
constexpr bool bb::crypto::merkle_tree::requires_preimage_for_key< fr > ()
 
std::ostream & bb::crypto::merkle_tree::operator<< (std::ostream &os, const TreeDBStats &stats)
 

Variables

const std::string bb::crypto::merkle_tree::BLOCKS_DB = "blocks"
 
const std::string bb::crypto::merkle_tree::NODES_DB = "nodes"
 
const std::string bb::crypto::merkle_tree::LEAF_PREIMAGES_DB = "leaf preimages"
 
const std::string bb::crypto::merkle_tree::LEAF_INDICES_DB = "leaf indices"
 
const std::string bb::crypto::merkle_tree::BLOCK_INDICES_DB = "block indices"