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)
span< const std::uint8_t > as_byte_span(const T &src) noexcept
void tree_hash(const char(*hashes)[HASH_SIZE], size_t count, char *root_hash)
struct hash_func hashes[]
mdb_size_t count(MDB_cursor *cur)
void cn_slow_hash_prehashed(const void *data, std::size_t length, hash &hash, int variant=0, uint64_t height=0)
unsigned __int64 uint64_t
void cn_fast_hash(const void *data, size_t length, char *hash)
void cn_slow_hash(const void *data, size_t length, char *hash, int variant, int prehashed, uint64_t height)
std::ostream & operator<<(std::ostream &o, const crypto::public_key &v)
#define CRYPTO_MAKE_HASHABLE(type)
static void formatted(std::ostream &out, const span< const std::uint8_t > src)
Append < + src + > as hex to out.