31 #ifndef LEDGER_CORE_ETHEREUMLIKEADDRESS_H 32 #define LEDGER_CORE_ETHEREUMLIKEADDRESS_H 34 #include <api/EthereumLikeAddress.hpp> 35 #include <api/EthereumLikeNetworkParameters.hpp> 36 #include "../utils/optional.hpp" 37 #include <wallet/common/AbstractAddress.h> 44 const std::vector<uint8_t>& keccak256,
49 std::string
toEIP55()
override ;
54 static std::shared_ptr<AbstractAddress> parse(
const std::string& address,
const api::Currency& currency,
56 static std::shared_ptr<EthereumLikeAddress> fromEIP55(
const std::string& address,
59 bool skipEIP55Check =
false);
61 const std::vector<uint8_t> _keccak256;
67 #endif //LEDGER_CORE_ETHEREUMLIKEADDRESS_H Definition: EthereumLikeAddress.h:41
std::string toString() override
Definition: EthereumLikeAddress.cpp:73
std::vector< uint8_t > getVersion() override
Definition: EthereumLikeAddress.cpp:53
Definition: AbstractAddress.h:42
Definition: Currency.hpp:23
virtual optional< std::string > getDerivationPath() override
Definition: EthereumLikeAddress.cpp:69
Definition: Account.cpp:8
std::vector< uint8_t > getKeccakHash() override
Definition: EthereumLikeAddress.cpp:57
Definition: EthereumLikeNetworkParameters.hpp:15
Definition: optional.hpp:177
std::string toEIP55() override
Definition: EthereumLikeAddress.cpp:65
api::EthereumLikeNetworkParameters getNetworkParameters() override
Definition: EthereumLikeAddress.cpp:61
Definition: EthereumLikeAddress.hpp:23