ledger-core
Public Member Functions | List of all members
ledger::core::api::EthereumLikeAddress Class Referenceabstract

#include <EthereumLikeAddress.hpp>

+ Inheritance diagram for ledger::core::api::EthereumLikeAddress:

Public Member Functions

virtual std::vector< uint8_t > getVersion ()=0
 
virtual std::vector< uint8_t > getKeccakHash ()=0
 
virtual EthereumLikeNetworkParameters getNetworkParameters ()=0
 
virtual std::string toEIP55 ()=0
 

Detailed Description

Helper class for manipulating Ethereum like addresses.

Member Function Documentation

◆ getKeccakHash()

virtual std::vector<uint8_t> ledger::core::api::EthereumLikeAddress::getKeccakHash ( )
pure virtual

Gets the raw keccak hash of the public key (truncated to 20 bytes).

Returns
The 20 bytes of the public key keccak hash

Implemented in ledger::core::EthereumLikeAddress.

◆ getNetworkParameters()

virtual EthereumLikeNetworkParameters ledger::core::api::EthereumLikeAddress::getNetworkParameters ( )
pure virtual

Gets the network parameters used for serializing the address.

Returns
The network parameters of the address

Implemented in ledger::core::EthereumLikeAddress.

◆ getVersion()

virtual std::vector<uint8_t> ledger::core::api::EthereumLikeAddress::getVersion ( )
pure virtual

Gets the version of the address.

Returns
The version of the address

Implemented in ledger::core::EthereumLikeAddress.

◆ toEIP55()

virtual std::string ledger::core::api::EthereumLikeAddress::toEIP55 ( )
pure virtual

Encodes keccak with respect to EIP55.

Returns
The EIP55 encoding

Implemented in ledger::core::EthereumLikeAddress.


The documentation for this class was generated from the following file: