ledger-core
|
Public Member Functions | |
EthereumLikeAddress (const api::Currency ¤cy, const std::vector< uint8_t > &keccak256, const Option< std::string > &derivationPath=Option< std::string >()) | |
std::vector< uint8_t > | getVersion () override |
std::vector< uint8_t > | getKeccakHash () override |
api::EthereumLikeNetworkParameters | getNetworkParameters () override |
std::string | toEIP55 () override |
virtual 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< EthereumLikeAddress > | fromEIP55 (const std::string &address, const api::Currency ¤cy, const Option< std::string > &derivationPath=Option< std::string >(), bool skipEIP55Check=false) |
![]() | |
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 keccak hash of the public key (truncated to 20 bytes).
Implements ledger::core::api::EthereumLikeAddress.
|
overridevirtual |
Gets the network parameters used for serializing the address.
Implements ledger::core::api::EthereumLikeAddress.
|
overridevirtual |
Gets the version of the address.
Implements ledger::core::api::EthereumLikeAddress.
|
overridevirtual |
Encodes keccak with respect to EIP55.
Implements ledger::core::api::EthereumLikeAddress.
|
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.