BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
32 namespace graphene {
namespace protocol {
36 memset(
addr.data(), 0,
addr.size() );
43 memcpy(
addr.data(), v.data(), std::min<size_t>( v.size(),
addr.size() ) );
63 memcpy(
addr.data() + 1, (
char*)&rep,
sizeof(rep) );
66 memcpy(
addr.data() + 1 +
sizeof(rep), (
char*)&check, 4 );
80 pts_address::operator std::string()
const
91 vo = std::string(var);
#define FC_PACK_MAX_DEPTH
std::array< char, 25 > addr
binary representation of address, 0-initialized
std::string to_base58(const char *d, size_t s)
void unpack(Stream &s, flat_set< T, A... > &value, uint32_t _max_depth)
std::vector< char > from_base58(const std::string &base58_str)
std::string as_string() const
contains only the public point of an elliptic curve key.
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
public_key_point_data serialize_ecc_point() const
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
static ripemd160 hash(const fc::sha512 &h)
pts_address()
constructs empty / null address
static sha256 hash(const char *d, uint32_t dlen)
public_key_data serialize() const
void pack(Stream &s, const flat_set< T, A... > &value, uint32_t _max_depth)