34 namespace fc {
namespace ecc {
class public_key; } }
36 namespace graphene {
namespace protocol {
43 static constexpr uint8_t default_version = 56;
46 explicit pts_address(
const std::string& base58str );
49 bool compressed =
true,
50 uint8_t version = default_version );
52 uint8_t
version()
const {
return addr.at(0); }
55 explicit operator std::string()
const;
57 std::array<char,25> addr{};
75 std::memcpy( (
char*)&s, a.
addr.data() + a.
addr.size() -
sizeof(s),
sizeof(s) );
91 uint32_t _max_depth );
93 uint32_t _max_depth );
95 uint32_t _max_depth );
size_t operator()(const graphene::protocol::pts_address &a) const
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
Defines types and macros used to provide reflection.
bool operator!=(const optional< T > &left, const optional< T > &right)
template void pack(datastream< char *> &s, const graphene::protocol::pts_address &tx, uint32_t _max_depth)
bool operator==(const optional< T > &left, const optional< T > &right)
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
contains only the public point of an elliptic curve key.
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
template void unpack(datastream< const char *> &s, graphene::protocol::pts_address &tx, uint32_t _max_depth)
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
bool operator<(const variant &a, const variant &b)
std::array< char, 25 > addr
binary representation of address, 0-initialized