Bitcoin ABC 0.26.3
P2P Digital Currency
|
Functions | |
std::string | Encode (const std::string &prefix, const data &payload) |
Encode a cashaddr string. | |
std::pair< std::string, data > | Decode (const std::string &str, const std::string &default_prefix) |
Decode a cashaddr string. | |
std::string | Encode (const std::string &prefix, const std::vector< uint8_t > &values) |
Encode a cashaddr string. | |
std::pair< std::string, std::vector< uint8_t > > cashaddr::Decode | ( | const std::string & | str, |
const std::string & | default_prefix | ||
) |
Decode a cashaddr string.
Returns (prefix, data). Empty prefix means failure.
Definition at line 214 of file cashaddr.cpp.
std::string cashaddr::Encode | ( | const std::string & | prefix, |
const data & | payload | ||
) |
Encode a cashaddr string.
Definition at line 198 of file cashaddr.cpp.
std::string cashaddr::Encode | ( | const std::string & | prefix, |
const std::vector< uint8_t > & | values | ||
) |
Encode a cashaddr string.
Returns the empty string in case of failure.