Functions | |
std::vector< uint8_t > | decode (const std::string &addr) |
std::string | encode (const std::string &hrp, const data &witprog) |
std::string | encode (const std::string &hrp, const std::vector< uint8_t > &witprog) |
std::vector< uint8_t > iota_addr::decode | ( | const std::string & | addr | ) |
Decode a SegWit address. Returns (witver, witprog). witver = -1 means failure.
std::string iota_addr::encode | ( | const std::string & | hrp, |
const data & | witprog | ||
) |
std::string iota_addr::encode | ( | const std::string & | hrp, |
const std::vector< uint8_t > & | witprog | ||
) |
Encode a SegWit address. Empty string means failure.