YPC  0.2.0
base58.h
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2017 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 
16 #pragma once
17 
18 #ifndef BITCOIN_BASE58_H
19 #define BITCOIN_BASE58_H
20 
21 #include <string>
22 #include <vector>
23 
28 std::string encode_base58(const unsigned char *pbegin,
29  const unsigned char *pend);
30 
34 std::string encode_base58(const std::vector<unsigned char> &vch);
35 
41 bool decode_base58(const char *psz, std::vector<unsigned char> &vchRet);
42 
47 bool decode_base58(const std::string &str, std::vector<unsigned char> &vchRet);
48 
49 #endif // BITCOIN_BASE58_H