![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
Encapsulation of an ICAP address. More...
#include <ICAP.h>
Public Types | |
enum | Type { Invalid, Direct, Indirect } |
Type of ICAP address. More... | |
Public Member Functions | |
ICAP ()=default | |
Construct null ICAP object. More... | |
ICAP (Address const &_target) | |
Construct a direct ICAP object for given target address. Must have a zero first byte. More... | |
ICAP (std::string const &_client, std::string const &_inst) | |
Construct an indirect ICAP object for given client and institution names. More... | |
ICAP (std::string const &_c, std::string const &_i, std::string const &_a) | |
Construct an indirect ICAP object for given client, institution and asset names. You generally don't want to use this. More... | |
std::string | encoded () const |
Type | type () const |
Address const & | direct () const |
std::string const & | asset () const |
std::string const & | target () const |
std::string const & | institution () const |
std::string const & | client () const |
std::pair< Address, bytes > | address (std::function< bytes(Address, bytes)> const &_call, Address const &_reg) const |
std::pair< Address, bytes > | lookup (std::function< bytes(Address, bytes)> const &_call, Address const &_reg) const |
Static Public Member Functions | |
static Secret | createDirect () |
Create a direct address for ICAP. More... | |
static std::string | iban (std::string _c, std::string _d) |
static std::pair< std::string, std::string > | fromIBAN (std::string _iban) |
static ICAP | decoded (std::string const &_encoded) |
Private Attributes | |
Type | m_type = Invalid |
Address | m_direct |
std::string | m_client |
std::string | m_institution |
std::string | m_asset |
Encapsulation of an ICAP address.
Can be encoded, decoded, looked-up and inspected.
enum dev::eth::ICAP::Type |
|
default |
Construct null ICAP object.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
inline |
std::string dev::eth::ICAP::encoded | ( | ) | const |
|
static |
|
static |
|
inline |
|
inline |
|
inline |