MCPcopy Create free account
hub / github.com/citp/BlockSci / DecodeBase58Check

Function DecodeBase58Check

src/scripts/bitcoin_base58.cpp:132–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

SetStringMethod · 0.85

Calls 4

DecodeBase58Function · 0.85
sizeMethod · 0.45
clearMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected