MCPcopy Create free account
hub / github.com/ElementsProject/elements / ParseHashStr

Function ParseHashStr

src/core_read.cpp:240–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240bool ParseHashStr(const std::string& strHex, uint256& result)
241{
242 if ((strHex.size() != 64) || !IsHex(strHex))
243 return false;
244
245 result.SetHex(strHex);
246 return true;
247}
248
249std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName)
250{

Callers 10

rest_headersFunction · 0.85
rest_blockFunction · 0.85
rest_filter_headerFunction · 0.85
rest_block_filterFunction · 0.85
rest_txFunction · 0.85
MutateTxAddInputFunction · 0.85
MutateTxSignFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
generateblockFunction · 0.85

Calls 3

IsHexFunction · 0.85
sizeMethod · 0.45
SetHexMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGET_INITFunction · 0.68