BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
a 160 bit hash of a public key More...
#include <address.hpp>
Public Member Functions | |
address (const std::string &base58str) | |
converts to binary, validates checksum More... | |
address (const fc::ecc::public_key &pub) | |
converts to address More... | |
address (const fc::ecc::public_key_data &pub) | |
converts to address More... | |
address (const pts_address &pub) | |
converts to address More... | |
address (const public_key_type &pubkey) | |
converts to address More... | |
operator std::string () const | |
converts to base58 + checksum More... | |
Static Public Member Functions | |
static bool | is_valid (const std::string &base58str, const std::string &prefix=GRAPHENE_ADDRESS_PREFIX) |
Public Attributes | |
fc::ripemd160 | addr |
a 160 bit hash of a public key
An address can be converted to or from a base58 string with 32 bit checksum.
An address is calculated as ripemd160( sha512( compressed_ecc_public_key ) )
When converted to a string, checksum calculated as the first 4 bytes ripemd160( address ) is appended to the binary address before converting to base58.
Definition at line 44 of file address.hpp.
|
explicit |
converts to binary, validates checksum
Definition at line 33 of file address.cpp.
|
explicit |
converts to address
Definition at line 69 of file address.cpp.
|
explicit |
converts to address
Definition at line 80 of file address.cpp.
|
explicit |
converts to address
Definition at line 75 of file address.cpp.
|
explicit |
converts to address
Definition at line 85 of file address.cpp.
|
static |
Definition at line 42 of file address.cpp.
|
explicit |
converts to base58 + checksum
Definition at line 90 of file address.cpp.
fc::ripemd160 graphene::protocol::address::addr |
Definition at line 58 of file address.hpp.