5#ifndef BITCOIN_UTIL_HASH_TYPE_H
6#define BITCOIN_UTIL_HASH_TYPE_H
8template <
typename HashType>
23 const unsigned char*
begin()
const
33 const unsigned char*
end()
const
38 operator std::vector<unsigned char>()
const
40 return std::vector<unsigned char>{
m_hash.begin(),
m_hash.end()};
50 return m_hash == other.m_hash;
55 return !(
m_hash == other.m_hash);
60 return m_hash < other.m_hash;
69 const unsigned char*
data()
const {
return m_hash.data(); }
const unsigned char * end() const
std::string ToString() const
bool operator==(const BaseHash< HashType > &other) const noexcept
bool operator!=(const BaseHash< HashType > &other) const noexcept
const unsigned char * begin() const
BaseHash(const HashType &in)
bool operator<(const BaseHash< HashType > &other) const noexcept
const unsigned char * data() const