| 136 | return ParseHashV(find_value(o, strKey), strKey); |
| 137 | } |
| 138 | vector<unsigned char> ParseHexV(const Value& v, string strName) { |
| 139 | string strHex; |
| 140 | if (v.type() == str_type) strHex = v.get_str(); |
| 141 | if (!IsHex(strHex)) |
| 142 | throw JSONRPCError(RPC_INVALID_PARAMETER, |
| 143 | strName + " must be hexadecimal string (not '" + strHex + "')"); |
| 144 | return ParseHex(strHex); |
| 145 | } |
| 146 | vector<unsigned char> ParseHexO(const Object& o, string strKey) { |
| 147 | return ParseHexV(find_value(o, strKey), strKey); |
| 148 | } |
no test coverage detected