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

Function ParseHexV

src/rpc/util.cpp:118–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 return ParseHashV(find_value(o, strKey), strKey);
117}
118std::vector<unsigned char> ParseHexV(const UniValue& v, std::string strName)
119{
120 std::string strHex;
121 if (v.isStr())
122 strHex = v.get_str();
123 if (!IsHex(strHex))
124 throw JSONRPCError(RPC_INVALID_PARAMETER, strName+" must be hexadecimal string (not '"+strHex+"')");
125 return ParseHex(strHex);
126}
127std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKey)
128{
129 return ParseHexV(find_value(o, strKey), strKey);

Callers 10

importprunedfundsFunction · 0.85
blindrawtransactionFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
verifytxoutproofFunction · 0.85
decodescriptFunction · 0.85
rawblindrawtransactionFunction · 0.85
updatepsbtpeginFunction · 0.85
ParseHexOFunction · 0.85
ConstructTransactionFunction · 0.85
ParsePrevoutsFunction · 0.85

Calls 4

IsHexFunction · 0.85
JSONRPCErrorFunction · 0.85
ParseHexFunction · 0.85
isStrMethod · 0.80

Tested by 1

FUZZ_TARGET_INITFunction · 0.68