BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
base58.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2018 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
14 #ifndef BITCOIN_BASE58_H
15 #define BITCOIN_BASE58_H
16 
17 #include <string>
18 #include <vector>
19 
24 std::string EncodeBase58(const unsigned char* pbegin, const unsigned char* pend);
25 
29 std::string EncodeBase58(const std::vector<unsigned char>& vch);
30 
36 bool DecodeBase58(const char* psz, std::vector<unsigned char>& vchRet);
37 
42 bool DecodeBase58(const std::string& str, std::vector<unsigned char>& vchRet);
43 
47 std::string EncodeBase58Check(const std::vector<unsigned char>& vchIn);
48 
53 bool DecodeBase58Check(const char* psz, std::vector<unsigned char>& vchRet);
54 
59 bool DecodeBase58Check(const std::string& str, std::vector<unsigned char>& vchRet);
60 
61 #endif // BITCOIN_BASE58_H
bool DecodeBase58(const char *psz, std::vector< unsigned char > &vchRet)
Decode a base58-encoded string (psz) into a byte vector (vchRet).
Definition: base58.cpp:35
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.
Definition: base58.cpp:143
std::string EncodeBase58Check(const std::vector< unsigned char > &vchIn)
Encode a byte vector into a base58-encoded string, including checksum.
Definition: base58.cpp:134
std::string EncodeBase58(const unsigned char *pbegin, const unsigned char *pend)
Why base-58 instead of standard base-64 encoding?
Definition: base58.cpp:84