plebble
base58.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2015 The Bitcoin Core developers
3 // Copyright (c) 2015-2017 The Bitcoin Unlimited developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
15 #ifndef BITCOIN_BASE58_H
16 #define BITCOIN_BASE58_H
17 
18 #include <string>
19 #include <vector>
20 #include <array>
21 
22 namespace us { namespace gov {
23 namespace crypto {
24 namespace b58 {
25  using namespace std;
26 
31 std::string encode(const std::string&);
32 std::string encode(const unsigned char* pbegin, const unsigned char* pend);
33 
37 std::string encode(const std::vector<unsigned char>& vch);
38 
44 std::string decode_string(const std::string&);
45 std::vector<unsigned char> decode(const std::string&);
46 
47 bool decode(const char* psz, std::vector<unsigned char>&);
48 bool decode(const char* psz, std::array<unsigned char,32>&);
49 
54 bool decode(const std::string& str, std::vector<unsigned char>& vchRet);
55 
56 }
57 }
58 }}
59 
60 #endif
us::gov::crypto::b58::is_space
constexpr bool is_space(char c) noexcept
Definition: base58.cpp:67
us::gov::crypto::b58::decode_string
std::string decode_string(const std::string &s)
Definition: base58.cpp:44
us
Definition: daemon.h:22
unlikely
#define unlikely(x)
Definition: likely.h:30
likely.h
us::gov::crypto::b58::decode
std::vector< unsigned char > decode(const std::string &s)
Definition: base58.cpp:54
us::gov::crypto::b58::pszBase58
static const char * pszBase58
Definition: base58.cpp:22
us::gov::crypto::b58::mapBase58
static const int8_t mapBase58[256]
Definition: base58.cpp:23
c
Definition: client.cpp:417
std
Definition: app.h:380
us::gov::crypto::b58::encode
std::string encode(const std::string &s)
Definition: base58.cpp:62
base58.h
gov.h