| 130 | } |
| 131 | |
| 132 | bool DecodeBase58Check(const char* psz, std::vector<unsigned char>& vchRet) |
| 133 | { |
| 134 | if (!DecodeBase58(psz, vchRet) || |
| 135 | (vchRet.size() < 4)) { |
| 136 | vchRet.clear(); |
| 137 | return false; |
| 138 | } |
| 139 | // Ignore the checksum since it shouldn't matter for our purposes |
| 140 | vchRet.resize(vchRet.size() - 4); |
| 141 | return true; |
| 142 | } |
| 143 | |
| 144 | bool DecodeBase58Check(const std::string& str, std::vector<unsigned char>& vchRet) |
| 145 | { |
no test coverage detected