|
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< BitcoinLikeAddress > | fromBase58 (const std::string &address, const api::Currency ¤cy, const Option< std::string > &derivationPath=Option< std::string >()) |
|
static std::shared_ptr< BitcoinLikeAddress > | fromBech32 (const std::string &address, const api::Currency ¤cy, const Option< std::string > &derivationPath=Option< std::string >()) |
|
static std::string | fromPublicKey (const std::shared_ptr< api::BitcoinLikeExtendedPublicKey > &pubKey, const api::Currency ¤cy, const std::string &derivationPath, const std::string &keychainEngine) |
|
static std::vector< uint8_t > | fromPublicKeyToHash160 (const std::vector< uint8_t > &pubKey, const std::vector< uint8_t > &pubKeyHash160, const api::Currency ¤cy, const std::string &keychainEngine) |
|
static std::vector< uint8_t > | fromPublicKeyToHash160 (const std::vector< uint8_t > &pubKey, const api::Currency ¤cy, const std::string &keychainEngine) |
|
static std::shared_ptr< Address > | parse (const std::string &address, const Currency ¤cy) |
|
static bool | isValid (const std::string &address, const Currency ¤cy) |
|
◆ getDerivationPath()
Gets an optional derivation path (if the address is owned by an account).
- Returns
- The derivation path of the address
Implements ledger::core::api::Address.
◆ getHash160()
std::vector< uint8_t > ledger::core::BitcoinLikeAddress::getHash160 |
( |
| ) |
|
|
overridevirtual |
◆ getNetworkParameters()
◆ getVersion()
std::vector< uint8_t > ledger::core::BitcoinLikeAddress::getVersion |
( |
| ) |
|
|
overridevirtual |
◆ isP2PKH()
bool ledger::core::BitcoinLikeAddress::isP2PKH |
( |
| ) |
|
|
overridevirtual |
◆ isP2SH()
bool ledger::core::BitcoinLikeAddress::isP2SH |
( |
| ) |
|
|
overridevirtual |
Serializes the hash160 to a payment uri (i.e bitcoin:16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM)
- Returns
- A payment uri to this address toPaymentUri(): string; Checks if the given address is a P2SH address
-
True if the keychain engine is P2SH
Implements ledger::core::api::BitcoinLikeAddress.
◆ isP2WPKH()
bool ledger::core::BitcoinLikeAddress::isP2WPKH |
( |
| ) |
|
|
overridevirtual |
◆ isP2WSH()
bool ledger::core::BitcoinLikeAddress::isP2WSH |
( |
| ) |
|
|
overridevirtual |
◆ toBase58()
std::string ledger::core::BitcoinLikeAddress::toBase58 |
( |
| ) |
|
|
overridevirtual |
◆ toBech32()
std::string ledger::core::BitcoinLikeAddress::toBech32 |
( |
| ) |
|
|
overridevirtual |
◆ toString()
std::string ledger::core::BitcoinLikeAddress::toString |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: