Bitcoin ABC  0.22.13
P2P Digital Currency
Classes | Enumerations | Functions
cashaddrenc.h File Reference
#include <script/standard.h>
#include <string>
#include <vector>
Include dependency graph for cashaddrenc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CashAddrContent
 

Enumerations

enum  CashAddrType : uint8_t { PUBKEY_TYPE = 0, SCRIPT_TYPE = 1 }
 

Functions

std::string EncodeCashAddr (const CTxDestination &, const CChainParams &)
 
std::string EncodeCashAddr (const std::string &prefix, const CashAddrContent &content)
 
CTxDestination DecodeCashAddr (const std::string &addr, const CChainParams &params)
 
CashAddrContent DecodeCashAddrContent (const std::string &addr, const std::string &prefix)
 
CTxDestination DecodeCashAddrDestination (const CashAddrContent &content)
 
std::vector< uint8_t > PackCashAddrContent (const CashAddrContent &content)
 

Enumeration Type Documentation

◆ CashAddrType

enum CashAddrType : uint8_t
Enumerator
PUBKEY_TYPE 
SCRIPT_TYPE 

Definition at line 14 of file cashaddrenc.h.

Function Documentation

◆ DecodeCashAddr()

CTxDestination DecodeCashAddr ( const std::string &  addr,
const CChainParams params 
)

Definition at line 102 of file cashaddrenc.cpp.

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

◆ DecodeCashAddrContent()

CashAddrContent DecodeCashAddrContent ( const std::string &  addr,
const std::string &  prefix 
)

Definition at line 113 of file cashaddrenc.cpp.

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

◆ DecodeCashAddrDestination()

CTxDestination DecodeCashAddrDestination ( const CashAddrContent content)

Definition at line 157 of file cashaddrenc.cpp.

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

◆ EncodeCashAddr() [1/2]

std::string EncodeCashAddr ( const CTxDestination ,
const CChainParams  
)

Definition at line 91 of file cashaddrenc.cpp.

Here is the caller graph for this function:

◆ EncodeCashAddr() [2/2]

std::string EncodeCashAddr ( const std::string &  prefix,
const CashAddrContent content 
)

Definition at line 96 of file cashaddrenc.cpp.

Here is the call graph for this function:

◆ PackCashAddrContent()

std::vector<uint8_t> PackCashAddrContent ( const CashAddrContent content)

Definition at line 178 of file cashaddrenc.cpp.