Qtbech32 0.1.1
Bech32 library
Functions
iota_addr Namespace Reference

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)
 

Function Documentation

◆ decode()

std::vector< uint8_t > iota_addr::decode ( const std::string addr)

Decode a SegWit address. Returns (witver, witprog). witver = -1 means failure.

◆ encode() [1/2]

std::string iota_addr::encode ( const std::string hrp,
const data &  witprog 
)

◆ encode() [2/2]

std::string iota_addr::encode ( const std::string hrp,
const std::vector< uint8_t > &  witprog 
)

Encode a SegWit address. Empty string means failure.