|
Offline Transaction Signing (OTS) 0.1.0
|
Represents a Monero address. More...
#include <ots.hpp>

Public Member Functions | |
| Address (const std::string &address) | |
| create and check and monero address | |
| const Network | network () const noexcept |
| Get the network of the address. | |
| const AddressType | type () const noexcept |
| Get the type of the address. | |
| virtual const std::string & | fingerprint () const noexcept |
| Generates a unique fingerprint for the Address. | |
| bool | isIntegrated () const noexcept |
| Is it an integrated address An integrated address is a standard address with a payment ID. | |
| std::string | paymentID () const noexcept |
| Get the payment ID of the address. | |
| Address | integratedAddress () const |
| Get the standard address for an integrated address. | |
| const size_t | length () const noexcept |
| character length of the base58 address | |
| operator std::string () const noexcept | |
| let you use the Address like it would be a std::string | |
| operator const std::string & () const noexcept | |
| let you use the Address like it would be a const std::string& | |
| operator const uint8_t * () const noexcept | |
| let you use the Address like it would be a uit8_t* | |
| bool | operator== (const Address &other) const noexcept |
| Compare Address with another Address. | |
| bool | operator== (const std::string &other) const noexcept |
| Compare Address with a std::string address. | |
Static Public Member Functions | |
| static bool | isValid (const std::string &address, const Network network=Network::MAIN) noexcept |
| check if a given string is a valid monero address | |
| static Network | network (const std::string &address) |
| check if a given string is a valid monero address | |
| static AddressType | type (const std::string &address) |
| Get the type of the address. | |
| static std::string | fingerprint (const std::string &address) |
| Generates a unique fingerprint for the Address. | |
| static bool | isIntegrated (const std::string &address) |
| check if a given string is a valid monero address, and and integrated address | |
| static std::string | paymentID (const std::string &address, Network network=Network::MAIN) |
| check if a given string is a valid monero address, and and integrated address | |
| static std::string | integratedAddress (const std::string &address, Network network=Network::MAIN) |
| check if a given string is a valid monero address, and an integrated address | |
Protected Member Functions | |
| Address (const std::string &address, Network network) | |
Static Protected Member Functions | |
| static Address | validAddress (const std::string &address) |
Protected Attributes | |
| std::string | m_address |
| Network | m_network |
| AddressType | m_type |
| std::string | m_fingerprint |
Represents a Monero address.
todo: TODO: maybe implement later feather 14 words seed, too
Ensures valid Monero address and some insight of the address
|
explicit |
create and check and monero address
| address | the base58 encoded address |
| ots::addressInvalid | if not a valid monero address |
|
explicitprotected |
|
virtualnoexcept |
|
static |
Generates a unique fingerprint for the Address.
| address | the base58 encoded address |
| ots::exception::address::Invalid | if not a valid monero address |
| Address ots::Address::integratedAddress | ( | ) | const |
Get the standard address for an integrated address.
| ots::exception::address::NotIntegrated | if the address is not integrated |
|
static |
check if a given string is a valid monero address, and an integrated address
| address | the base58 encoded address |
| network | the network the address should be valid for, default is MAIN |
| ots::exception::address::Invalid | if not a valid monero address |
| ots::exception::address::NotIntegrated | if the address is not an integrated address |
|
noexcept |
Is it an integrated address An integrated address is a standard address with a payment ID.
|
static |
check if a given string is a valid monero address, and and integrated address
| address | the base58 encoded address |
| ots::exception::address::Invalid | if not a valid monero address |
|
staticnoexcept |
check if a given string is a valid monero address
| address | the base58 encoded address |
| network | the network the address should be valid for |
|
noexcept |
character length of the base58 address
|
noexcept |
Get the network of the address.
|
static |
check if a given string is a valid monero address
| address | the base58 encoded address |
| ots::exception::address::Invalid | if not a valid monero address |
|
noexcept |
let you use the Address like it would be a const std::string&
|
noexcept |
let you use the Address like it would be a uit8_t*
|
explicitnoexcept |
let you use the Address like it would be a std::string
|
noexcept |
|
noexcept |
Compare Address with a std::string address.
|
noexcept |
Get the payment ID of the address.
|
static |
check if a given string is a valid monero address, and and integrated address
| address | the base58 encoded address |
| network | the network the address should be valid for, default is MAIN |
| ots::exception::address::Invalid | if not a valid monero address |
|
noexcept |
Get the type of the address.
|
static |
Get the type of the address.
| address | the base58 encoded address |
| ots::exception::address::Invalid | if not a valid monero address |
|
staticprotected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |