56 static_assert(
sizeof(
hash) ==
HASH_SIZE,
"Invalid structure size");
57 static_assert(
sizeof(
hash8) == 8,
"Invalid structure size");
static uint64_t h
Definition: blockchain_stats.cpp:55
#define CRYPTO_MAKE_COMPARABLE(type)
Definition: generic-ops.h:38
#define CRYPTO_MAKE_HASHABLE(type)
Definition: generic-ops.h:75
int * count
Definition: gmock_stress_test.cc:176
#define HASH_SIZE
Definition: hmac-keccak.c:33
crypto namespace.
Definition: crypto.cpp:60
static constexpr crypto::hash8 null_hash8
Definition: hash.h:93
void cn_fast_hash(const void *data, std::size_t length, hash &hash)
Definition: hash.h:63
void cn_slow_hash_prehashed(const void *data, std::size_t length, hash &hash, int variant=0, uint64_t height=0)
Definition: hash.h:77
void tree_hash(const hash *hashes, std::size_t count, hash &root_hash)
Definition: hash.h:81
POD_CLASS hash8
Definition: hash.h:51
static constexpr crypto::hash null_hash
Definition: hash.h:92
std::ostream & operator<<(std::ostream &o, const crypto::public_key &v)
Definition: crypto.h:314
POD_CLASS hash
Definition: hash.h:48
void cn_slow_hash(const void *data, std::size_t length, hash &hash, int variant=0, uint64_t height=0)
Definition: hash.h:73
span< const std::uint8_t > as_byte_span(const T &src) noexcept
Definition: span.h:152
#define POD_CLASS
Definition: pod-class.h:43
static void formatted(std::ostream &out, const span< const std::uint8_t > src)
Append < + src + > as hex to out.
Definition: hex.cpp:77
std::string data
Definition: base58.cpp:37
struct hash_func hashes[]