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));
92 epee::to_hex::formatted(o, epee::as_byte_span(v));
return o;
95 epee::to_hex::formatted(o, epee::as_byte_span(v));
return o;
98 epee::to_hex::formatted(o, epee::as_byte_span(v));
return o;
#define CRYPTO_MAKE_COMPARABLE(type)
Definition: generic-ops.h:39
uint64_t height
Definition: blockchain.cpp:91
static const crypto::hash8 null_hash8
Definition: hash.h:102
void tree_hash(const char(*hashes)[HASH_SIZE], size_t count, char *root_hash)
Definition: tree-hash.c:63
crypto namespace.
Definition: crypto.cpp:58
static const crypto::hash null_hash
Definition: hash.h:101
#define POD_CLASS
Definition: pod-class.h:44
mdb_size_t count(MDB_cursor *cur)
Definition: value_stream.cpp:39
void cn_slow_hash_prehashed(const void *data, std::size_t length, hash &hash, int variant=0, uint64_t height=0)
Definition: hash.h:83
void cn_fast_hash(const void *data, size_t length, char *hash)
Definition: hash.c:54
POD_CLASS hash64
Definition: hash.h:56
static const crypto::hash64 null_hash64
Definition: hash.h:103
POD_CLASS hash8
Definition: hash.h:53
POD_CLASS hash
Definition: hash.h:50
void cn_slow_hash(const void *data, size_t length, char *hash, int variant, int prehashed, uint64_t height)
Definition: slow-hash.c:1673
std::ostream & operator<<(std::ostream &o, const crypto::public_key &v)
Definition: crypto.h:333
#define CRYPTO_MAKE_HASHABLE(type)
Definition: generic-ops.h:76