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;
uint64_t height
Definition: blockchain.cpp:91
#define CRYPTO_MAKE_COMPARABLE(type)
Definition: generic-ops.h:39
#define CRYPTO_MAKE_HASHABLE(type)
Definition: generic-ops.h:76
@ HASH_SIZE
Definition: hash-ops.h:78
crypto namespace.
Definition: crypto.cpp:58
void cn_fast_hash(const void *data, std::size_t length, hash &hash)
Definition: hash.h:69
static const crypto::hash null_hash
Definition: hash.h:101
static const crypto::hash8 null_hash8
Definition: hash.h:102
static const crypto::hash64 null_hash64
Definition: hash.h:103
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 tree_hash(const hash *hashes, std::size_t count, hash &root_hash)
Definition: hash.h:87
POD_CLASS hash8
Definition: hash.h:53
POD_CLASS hash64
Definition: hash.h:56
std::ostream & operator<<(std::ostream &o, const crypto::public_key &v)
Definition: crypto.h:333
POD_CLASS hash
Definition: hash.h:50
void cn_slow_hash(const void *data, std::size_t length, hash &hash, int variant=0, uint64_t height=0)
Definition: hash.h:79
mdb_size_t count(MDB_cursor *cur)
Definition: value_stream.cpp:39
#define POD_CLASS
Definition: pod-class.h:44