 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
14 #ifndef BITCOIN_BASE58_H
15 #define BITCOIN_BASE58_H
30 std::string
EncodeBase58(
const unsigned char* pbegin,
const unsigned char* pend);
35 std::string
EncodeBase58(
const std::vector<unsigned char>& vch);
42 bool DecodeBase58(
const char* psz, std::vector<unsigned char>& vchRet);
54 bool DecodeBase58(
const std::string& str, std::vector<unsigned char>& vchRet);
65 inline bool DecodeBase58Check(
const char* psz, std::vector<unsigned char>& vchRet);
71 inline bool DecodeBase58Check(
const std::string& str, std::vector<unsigned char>& vchRet);
83 typedef std::vector<unsigned char, zero_after_free_allocator<unsigned char> >
vector_uchar;
87 void SetData(
const std::vector<unsigned char>& vchVersionIn,
const void* pdata,
size_t nSize);
88 void SetData(
const std::vector<unsigned char>& vchVersionIn,
const unsigned char* pbegin,
const unsigned char* pend);
91 bool SetString(
const char* psz,
unsigned int nVersionBytes = 1);
138 bool SetString(
const std::string& strSecret);
144 template <
typename K,
int Size, CChainParams::Base58Type Type>
150 unsigned char vch[Size];
173 #endif // BITCOIN_BASE58_H
bool operator>(const CBase58Data &b58) const
bool GetKeyID(CKeyID &keyID) const
void SetKey(const K &key)
base58-encoded PRCY addresses.
CChainParams defines various tweakable parameters of a given instance of the PRCY system.
void SetData(const std::vector< unsigned char > &vchVersionIn, const void *pdata, size_t nSize)
A reference to a CKey: the Hash160 of its serialized public key.
bool Set(const CKeyID &id)
int CompareTo(const CBase58Data &b58) const
std::string ToString() const
A base58-encoded secret key.
bool operator==(const CBase58Data &b58) const
bool SetString(const char *psz, unsigned int nVersionBytes=1)
bool operator<=(const CBase58Data &b58) const
bool DecodeBase58(const char *psz, std::vector< unsigned char > &vchRet)
Decode a base58-encoded string (psz) into a byte vector (vchRet).
std::vector< unsigned char, zero_after_free_allocator< unsigned char > > vector_uchar
the actually encoded data
std::string EncodeBase58(const unsigned char *pbegin, const unsigned char *pend)
Why base-58 instead of standard base-64 encoding?
CBitcoinAddress(const char *pszAddress)
CBitcoinExtKeyBase< CExtKey, 74, CChainParams::EXT_SECRET_KEY > CBitcoinExtKey
bool SetString(const char *pszSecret)
CBitcoinAddress(const std::string &strAddress)
bool operator>=(const CBase58Data &b58) const
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
CBitcoinExtKeyBase< CExtPubKey, 74, CChainParams::EXT_PUBLIC_KEY > CBitcoinExtPubKey
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),...
CBitcoinExtKeyBase(const K &key)
bool operator<(const CBase58Data &b58) const
An encapsulated private key.
CBitcoinAddress(const CTxDestination &dest)
CBitcoinSecret(const CKey &vchSecret)
const CChainParams & Params()
Return the currently selected parameters.
std::vector< unsigned char > vchVersion
the version byte(s)
Base class for all base58-encoded data.
A reference to a CScript: the Hash160 of its serialization (see script.h)
void SetKey(const CKey &vchSecret)
CTxDestination Get() const
std::string EncodeBase58Check(const std::vector< unsigned char > &vchIn)
Encode a byte vector into a base58-encoded string, including checksum.