Changeset View
Changeset View
Standalone View
Standalone View
src/cashaddr.h
Show All 16 Lines | |||||
std::string Encode(const std::string &prefix, | std::string Encode(const std::string &prefix, | ||||
const std::vector<uint8_t> &values); | const std::vector<uint8_t> &values); | ||||
/** | /** | ||||
* Decode a cashaddr string. Returns (prefix, data). Empty prefix means failure. | * Decode a cashaddr string. Returns (prefix, data). Empty prefix means failure. | ||||
*/ | */ | ||||
std::pair<std::string, std::vector<uint8_t>> Decode(const std::string &str); | std::pair<std::string, std::vector<uint8_t>> Decode(const std::string &str); | ||||
std::vector<uint8_t> EncodingCharset(); | |||||
} // namespace cashaddr | } // namespace cashaddr |