BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
2 #include <boost/endian/buffers.hpp>
13 explicit sha512(
const std::string& hex_str );
15 std::string
str()
const;
16 operator std::string()
const;
19 static constexpr
size_t data_size() {
return 512 / 8; }
21 static sha512 hash(
const char* d, uint32_t dlen );
38 void write(
const char* d, uint32_t dlen );
50 ds.write( ep.
data(),
sizeof(ep) );
56 ds.read( ep.
data(),
sizeof(ep) );
67 boost::endian::little_uint64_buf_t
_hash[8];
73 inline void pack( T& ds,
const sha512& ep, uint32_t _max_depth ) {
friend bool operator==(const sha512 &h1, const sha512 &h2)
FC_REFLECT_TYPENAME(fc::log_message)
void unpack(Stream &s, flat_set< T, A... > &value, uint32_t _max_depth)
friend bool operator<(const sha512 &h1, const sha512 &h2)
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
Defines types and macros used to provide reflection.
static sha512 hash(const char *d, uint32_t dlen)
friend bool operator!=(const sha512 &h1, const sha512 &h2)
friend T & operator>>(T &ds, sha512 &ep)
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
static sha512 hash(const T &t)
friend bool operator>(const sha512 &h1, const sha512 &h2)
friend T & operator<<(T &ds, const sha512 &ep)
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
boost::endian::little_uint64_buf_t _hash[8]
friend bool operator>=(const sha512 &h1, const sha512 &h2)
friend sha512 operator^(const sha512 &h1, const sha512 &h2)
Used to forward declare value types.
static constexpr size_t data_size()
void pack(Stream &s, const flat_set< T, A... > &value, uint32_t _max_depth)
void write(const char *d, uint32_t dlen)