ledger-core
|
Public Member Functions | |
RippleLikeAddress (const ledger::core::api::Currency ¤cy, const std::vector< uint8_t > &hash160, const std::vector< uint8_t > &version, const Option< std::string > &derivationPath=Option< std::string >()) | |
std::vector< uint8_t > | getVersion () override |
std::vector< uint8_t > | getHash160 () override |
api::RippleLikeNetworkParameters | getNetworkParameters () override |
std::string | toBase58 () override |
optional< std::string > | getDerivationPath () override |
std::string | toString () override |
![]() | |
AbstractAddress (const api::Currency ¤cy, const Option< std::string > &path) | |
api::Currency | getCurrency () override |
optional< std::string > | getDerivationPath () override |
std::shared_ptr< api::BitcoinLikeAddress > | asBitcoinLikeAddress () override |
bool | isInstanceOfBitcoinLikeAddress () override |
Static Public Member Functions | |
static std::shared_ptr< AbstractAddress > | parse (const std::string &address, const api::Currency ¤cy, const Option< std::string > &derivationPath=Option< std::string >()) |
static std::shared_ptr< RippleLikeAddress > | fromBase58 (const std::string &address, const api::Currency ¤cy, const Option< std::string > &derivationPath=Option< std::string >()) |
![]() | |
static std::shared_ptr< Address > | parse (const std::string &address, const Currency ¤cy) |
static bool | isValid (const std::string &address, const Currency ¤cy) |
|
overridevirtual |
Gets an optional derivation path (if the address is owned by an account).
Implements ledger::core::api::Address.
|
overridevirtual |
Gets the raw hash160 of the public key
Implements ledger::core::api::RippleLikeAddress.
|
overridevirtual |
Gets the network parameters used for serializing the address
Implements ledger::core::api::RippleLikeAddress.
|
overridevirtual |
Gets the version of the address
Implements ledger::core::api::RippleLikeAddress.
|
overridevirtual |
Serializes the hash160 into a Base58 encoded address (with checksum)
Implements ledger::core::api::RippleLikeAddress.
|
overridevirtual |
Serialize the address to a string. The serialization method depends of the underlying currency and format (Base58, Bech32, Ethereum...).
Implements ledger::core::api::Address.