33 namespace graphene {
namespace protocol {
48 const size_t prefix_len = prefix.size();
49 FC_ASSERT( base58str.size() > prefix_len );
50 FC_ASSERT( base58str.substr( 0, prefix_len ) == prefix ,
"", (
"base58str", base58str) );
52 auto bin_key = fc::raw::unpack<binary_key>(bin);
67 public_key_type::operator std::string()
const 103 vo = std::string( var );
112 uint32_t max_depth ) {
114 if (!vo) vo = std::make_shared<const graphene::protocol::fee_schedule>();
117 from_variant(var, const_cast<graphene::protocol::fee_schedule&>(*vo), max_depth);
friend bool operator<(const public_key_type &p1, const public_key_type &p2)
template void unpack(datastream< const char *> &s, graphene::protocol::public_key_type &tx, uint32_t _max_depth=FC_PACK_MAX_DEPTH)
std::string to_base58(const char *d, size_t s)
void pack(Stream &s, const flat_set< T, A... > &value, uint32_t _max_depth)
public_key_data serialize() const
static ripemd160 hash(const fc::sha512 &h)
#define GRAPHENE_ADDRESS_PREFIX
fc::ecc::public_key_data data
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
fc::ecc::public_key_data key_data
contains only the public point of an elliptic curve key.
template void pack(datastream< char *> &s, const graphene::protocol::public_key_type &tx, uint32_t _max_depth=FC_PACK_MAX_DEPTH)
friend bool operator==(const public_key_type &p1, const fc::ecc::public_key &p2)
#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.
Defines exception's used by fc.
zero_initialized_array< unsigned char, 33 > public_key_data
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
friend bool operator!=(const public_key_type &p1, const public_key_type &p2)
std::vector< char > from_base58(const std::string &base58_str)
a 160 bit hash of a public key
#define FC_PACK_MAX_DEPTH
std::string as_string() const