ledger-core
|
#include <BitcoinLikeAddress.hpp>
Public Member Functions | |
virtual std::vector< uint8_t > | getVersion ()=0 |
virtual std::vector< uint8_t > | getHash160 ()=0 |
virtual BitcoinLikeNetworkParameters | getNetworkParameters ()=0 |
virtual std::string | toBase58 ()=0 |
virtual std::string | toBech32 ()=0 |
virtual bool | isP2SH ()=0 |
virtual bool | isP2PKH ()=0 |
virtual bool | isP2WSH ()=0 |
virtual bool | isP2WPKH ()=0 |
Helper class for manipulating Bitcoin like addresses
|
pure virtual |
Gets the raw hash160 of the public key
Implemented in ledger::core::BitcoinLikeAddress.
|
pure virtual |
Gets the network parameters used for serializing the address
Implemented in ledger::core::BitcoinLikeAddress.
|
pure virtual |
Gets the version of the address (P2SH or P2PKH)
Implemented in ledger::core::BitcoinLikeAddress.
|
pure virtual |
Checks if the given address is a P2PKH address
Implemented in ledger::core::BitcoinLikeAddress.
|
pure virtual |
Serializes the hash160 to a payment uri (i.e bitcoin:16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM)
Implemented in ledger::core::BitcoinLikeAddress.
|
pure virtual |
Checks if the given address is a P2WPKH address
Implemented in ledger::core::BitcoinLikeAddress.
|
pure virtual |
Checks if the given address is a P2WSH address
Implemented in ledger::core::BitcoinLikeAddress.
|
pure virtual |
Serializes the hash160 into a Base58 encoded address (with checksum)
Implemented in ledger::core::BitcoinLikeAddress.
|
pure virtual |
Get the Bech32 encoded address (with respect to BIP173)
Implemented in ledger::core::BitcoinLikeAddress.