MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / EncodeBase58Check

Function EncodeBase58Check

src/base58.cpp:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 7

ConvertAddressFormatFunction · 0.85
operator()Method · 0.85
EncodeSecretFunction · 0.85
EncodeExtPubKeyFunction · 0.85
EncodeExtKeyFunction · 0.85
ConvertAddressFormatFunction · 0.85
Base58CheckEncodeFunction · 0.85

Calls 5

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

Tested by 1

ConvertAddressFormatFunction · 0.68