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

#include <RippleLikeAddress.hpp>

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

Public Member Functions

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

Detailed Description

Helper class for manipulating Ripple like addresses

Member Function Documentation

◆ getHash160()

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

Gets the raw hash160 of the public key

Returns
The 20 bytes of the public key hash160

Implemented in ledger::core::RippleLikeAddress.

◆ getNetworkParameters()

virtual RippleLikeNetworkParameters ledger::core::api::RippleLikeAddress::getNetworkParameters ( )
pure virtual

Gets the network parameters used for serializing the address

Returns
The network parameters of the address

Implemented in ledger::core::RippleLikeAddress.

◆ getVersion()

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

Gets the version of the address

Returns
The version of the address

Implemented in ledger::core::RippleLikeAddress.

◆ toBase58()

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

Serializes the hash160 into a Base58 encoded address (with checksum)

Returns
The Base58 serialization

Implemented in ledger::core::RippleLikeAddress.


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