MCPcopy Create free account
hub / github.com/LUX-Core/lux / EncodeBase58Check

Function EncodeBase58Check

src/base58.cpp:131–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131std::string EncodeBase58Check(const std::vector<unsigned char>& vchIn)
132{
133 // add 4-byte hash check to the end
134 std::vector<unsigned char> vch(vchIn);
135 uint256 hash = Hash(vch.begin(), vch.end());
136 vch.insert(vch.end(), (unsigned char*)&hash, (unsigned char*)&hash + 4);
137 return EncodeBase58(vch);
138}
139
140bool DecodeBase58Check(const char* psz, std::vector<unsigned char>& vchRet)
141{

Callers 2

ToStringMethod · 0.85
operator()Method · 0.85

Calls 5

EncodeBase58Function · 0.85
HashFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected