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

#include <TezosLikeAddress.hpp>

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

Public Member Functions

virtual std::vector< uint8_t > getVersion ()=0
 
virtual std::vector< uint8_t > getHash160 ()=0
 
virtual TezosLikeNetworkParameters getNetworkParameters ()=0
 
virtual std::string toBase58 ()=0
 

Detailed Description

Helper class for manipulating Tezos like addresses.

Member Function Documentation

◆ getHash160()

virtual std::vector<uint8_t> ledger::core::api::TezosLikeAddress::getHash160 ( )
pure virtual

Gets the raw hash160 of the public key

Returns
The 20 bytes of the public key hash160

Implemented in ledger::core::TezosLikeAddress.

◆ getNetworkParameters()

virtual TezosLikeNetworkParameters ledger::core::api::TezosLikeAddress::getNetworkParameters ( )
pure virtual

Gets the network parameters used for serializing the address.

Returns
The network parameters of the address

Implemented in ledger::core::TezosLikeAddress.

◆ getVersion()

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

Gets the version of the address.

Returns
The version of the address

Implemented in ledger::core::TezosLikeAddress.

◆ toBase58()

virtual std::string ledger::core::api::TezosLikeAddress::toBase58 ( )
pure virtual

Encodes to Base58.

Returns
The Base58 encoding

Implemented in ledger::core::TezosLikeAddress.


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