15 #ifndef ANONCOIN_BASE58_H
16 #define ANONCOIN_BASE58_H
29 std::string
EncodeBase58(
const unsigned char* pbegin,
const unsigned char* pend);
34 std::string
EncodeBase58(
const std::vector<unsigned char>& vch);
41 bool DecodeBase58(
const char* psz, std::vector<unsigned char>& vchRet);
47 bool DecodeBase58(
const std::string& str, std::vector<unsigned char>& vchRet);
58 inline bool DecodeBase58Check(
const char* psz, std::vector<unsigned char>& vchRet);
64 inline bool DecodeBase58Check(
const std::string& str, std::vector<unsigned char>& vchRet);
76 typedef std::vector<unsigned char, zero_after_free_allocator<unsigned char> >
vector_uchar;
80 void SetData(
const std::vector<unsigned char> &vchVersionIn,
const void* pdata,
size_t nSize);
81 void SetData(
const std::vector<unsigned char> &vchVersionIn,
const unsigned char *pbegin,
const unsigned char *pend);
84 bool SetString(
const char* psz,
unsigned int nVersionBytes = 1);
129 bool SetString(
const std::string& strSecret);
139 unsigned char vch[Size];
160 #endif // ANONCOIN_BASE58_H
CAnoncoinExtKeyBase< CExtKey, 74, CChainParams::EXT_SECRET_KEY > CAnoncoinExtKey
CAnoncoinExtKeyBase(const K &key)
bool Set(const CKeyID &id)
bool DecodeBase58(const char *psz, std::vector< unsigned char > &vchRet)
Decode a base58-encoded string (psz) into a byte vector (vchRet).
CTxDestination Get() const
bool GetKeyID(CKeyID &keyID) const
void SetKey(const K &key)
CAnoncoinAddress(const char *pszAddress)
CAnoncoinAddress(const std::string &strAddress)
bool DecodeBase58Check(const char *psz, std::vector< unsigned char > &vchRet)
Decode a base58-encoded string (psz) that includes a checksum into a byte vector (vchRet), return true if decoding is successful.
void SetData(const std::vector< unsigned char > &vchVersionIn, const void *pdata, size_t nSize)
void SetKey(const CKey &vchSecret)
CAnoncoinExtKeyBase< CExtPubKey, 74, CChainParams::EXT_PUBLIC_KEY > CAnoncoinExtPubKey
std::vector< unsigned char, zero_after_free_allocator< unsigned char > > vector_uchar
Base class for all base58-encoded data.
CAnoncoinSecret(const CKey &vchSecret)
A base58-encoded secret key.
bool operator==(const CBase58Data &b58) const
base58-encoded Anoncoin addresses.
bool SetString(const char *pszSecret)
std::string ToString() const
bool operator>(const CBase58Data &b58) const
bool SetString(const char *psz, unsigned int nVersionBytes=1)
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
std::string EncodeBase58Check(const std::vector< unsigned char > &vchIn)
Encode a byte vector into a base58-encoded string, including checksum.
CAnoncoinAddress(const CTxDestination &dest)
const CChainParams & Params()
Return the currently selected parameters.
A reference to a CKey: the Hash160 of its serialized public key.
std::string EncodeBase58(const unsigned char *pbegin, const unsigned char *pend)
Encode a byte sequence as a base58-encoded string.
A reference to a CScript: the Hash160 of its serialization (see script.h)
bool operator<(const CBase58Data &b58) const
An encapsulated private key.
std::vector< unsigned char > vchVersion
bool operator<=(const CBase58Data &b58) const
int CompareTo(const CBase58Data &b58) const
bool operator>=(const CBase58Data &b58) const