36 #include <boost/utility/value_init.hpp>
61 static_assert(
sizeof(
hash) ==
HASH_SIZE,
"Invalid structure size");
62 static_assert(
sizeof(
hash8) == 8,
"Invalid structure size");
63 static_assert(
sizeof(
hash64) == 64,
"Invalid structure size");
75 cn_fast_hash(data, length,
reinterpret_cast<char *
>(&h));
101 const static crypto::hash null_hash = boost::value_initialized<crypto::hash>();
102 const static crypto::hash8 null_hash8 = boost::value_initialized<crypto::hash8>();
103 const static crypto::hash64 null_hash64 = boost::value_initialized<crypto::hash64>();
#define CRYPTO_MAKE_COMPARABLE(type)
#define CRYPTO_MAKE_HASHABLE(type)
void cn_fast_hash(const void *data, std::size_t length, hash &hash)
void cn_slow_hash_prehashed(const void *data, std::size_t length, hash &hash, int variant=0, uint64_t height=0)
void tree_hash(const hash *hashes, std::size_t count, hash &root_hash)
std::ostream & operator<<(std::ostream &o, const crypto::public_key &v)
void cn_slow_hash(const void *data, std::size_t length, hash &hash, int variant=0, uint64_t height=0)
span< const std::uint8_t > as_byte_span(const T &src) noexcept
mdb_size_t count(MDB_cursor *cur)
unsigned __int64 uint64_t
static void formatted(std::ostream &out, const span< const std::uint8_t > src)
Append < + src + > as hex to out.
struct hash_func hashes[]