14 #ifndef BITCOIN_BASE58_H 15 #define BITCOIN_BASE58_H 31 std::string
EncodeBase58(
const unsigned char* pbegin,
const unsigned char* pend);
36 std::string
EncodeBase58(
const std::vector<unsigned char>& vch);
43 bool DecodeBase58(
const char* psz, std::vector<unsigned char>& vchRet);
49 bool DecodeBase58(
const std::string& str, std::vector<unsigned char>& vchRet);
60 inline bool DecodeBase58Check(
const char* psz, std::vector<unsigned char>& vchRet);
66 inline bool DecodeBase58Check(
const std::string& str, std::vector<unsigned char>& vchRet);
78 typedef std::vector<unsigned char, zero_after_free_allocator<unsigned char> >
vector_uchar;
82 void SetData(
const std::vector<unsigned char> &vchVersionIn,
const void* pdata,
size_t nSize);
83 void SetData(
const std::vector<unsigned char> &vchVersionIn,
const unsigned char *pbegin,
const unsigned char *pend);
86 bool SetString(
const char* psz,
unsigned int nVersionBytes = 1);
133 bool SetString(
const std::string& strSecret);
143 unsigned char vch[Size];
171 #endif // BITCOIN_BASE58_H bool SetString(const char *pszSecret)
CBitcoinExtKeyBase(const K &key)
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
bool operator<(const CBase58Data &b58) const
bool DecodeBase58(const char *psz, std::vector< unsigned char > &vchRet)
CBitcoinAddress(const std::string &strAddress)
CBitcoinExtKeyBase< CExtKey, 74, CChainParams::EXT_SECRET_KEY > CBitcoinExtKey
bool DecodeBase58Check(const char *psz, std::vector< unsigned char > &vchRet)
bool operator>=(const CBase58Data &b58) const
std::string ToString() const
std::vector< unsigned char > vchVersion
the version byte(s)
CBitcoinExtKeyBase(const std::string &strBase58c)
int CompareTo(const CBase58Data &b58) const
bool Set(const CKeyID &id)
CBitcoinAddress(const CTxDestination &dest)
bool SetString(const char *psz, unsigned int nVersionBytes=1)
std::vector< unsigned char, zero_after_free_allocator< unsigned char > > vector_uchar
the actually encoded data
std::string EncodeBase58Check(const std::vector< unsigned char > &vchIn)
bool operator>(const CBase58Data &b58) const
CTxDestination Get() const
const CChainParams & Params()
void SetKey(const CKey &vchSecret)
CBitcoinSecret(const CKey &vchSecret)
bool GetKeyID(CKeyID &keyID) const
bool GetIndexKey(uint160 &hashBytes, int &type) const
std::string EncodeBase58(const unsigned char *pbegin, const unsigned char *pend)
CBitcoinAddress(const char *pszAddress)
void SetData(const std::vector< unsigned char > &vchVersionIn, const void *pdata, size_t nSize)
CBitcoinExtKeyBase< CExtPubKey, 74, CChainParams::EXT_PUBLIC_KEY > CBitcoinExtPubKey
bool operator==(const CBase58Data &b58) const
const std::vector< unsigned char > & Base58Prefix(Base58Type type) const
bool operator<=(const CBase58Data &b58) const
void SetKey(const K &key)