Bitcoin ABC  0.29.2
P2P Digital Currency
Functions
cashaddr Namespace Reference

Functions

std::string Encode (const std::string &prefix, const data &payload)
 Encode a cashaddr string. More...
 
std::pair< std::string, data > Decode (const std::string &str, const std::string &default_prefix)
 Decode a cashaddr string. More...
 
std::string Encode (const std::string &prefix, const std::vector< uint8_t > &values)
 Encode a cashaddr string. More...
 

Function Documentation

◆ Decode()

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.

Here is the caller graph for this function:

◆ Encode() [1/2]

std::string cashaddr::Encode ( const std::string &  prefix,
const data &  payload 
)

Encode a cashaddr string.

Definition at line 198 of file cashaddr.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Encode() [2/2]

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.