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 <attributes.h>
18 
19 #include <string>
20 #include <vector>
21 
26 std::string EncodeBase58(const unsigned char* pbegin, const unsigned char* pend);
27 
31 std::string EncodeBase58(const std::vector<unsigned char>& vch);
32 
38 NODISCARD bool DecodeBase58(const char* psz, std::vector<unsigned char>& vchRet);
39 
44 NODISCARD bool DecodeBase58(const std::string& str, std::vector<unsigned char>& vchRet);
45 
49 std::string EncodeBase58Check(const std::vector<unsigned char>& vchIn);
50 
55 NODISCARD bool DecodeBase58Check(const char* psz, std::vector<unsigned char>& vchRet);
56 
61 NODISCARD bool DecodeBase58Check(const std::string& str, std::vector<unsigned char>& vchRet);
62 
63 #endif // BITCOIN_BASE58_H
NODISCARD bool DecodeBase58Check(const char *psz, std::vector< unsigned char > &vchRet)
Definition: base58.cpp:143
#define NODISCARD
Definition: attributes.h:18
std::string EncodeBase58Check(const std::vector< unsigned char > &vchIn)
Definition: base58.cpp:134
std::string EncodeBase58(const unsigned char *pbegin, const unsigned char *pend)
Definition: base58.cpp:84
NODISCARD bool DecodeBase58(const char *psz, std::vector< unsigned char > &vchRet)
Definition: base58.cpp:35