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

Function ScriptWitnessFromJSON

src/test/script_tests.cpp:1535–1544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1533}
1534
1535static CScriptWitness ScriptWitnessFromJSON(const UniValue& univalue)
1536{
1537 assert(univalue.isArray());
1538 CScriptWitness scriptwitness;
1539 for (size_t i = 0; i < univalue.size(); ++i) {
1540 auto bytes = ParseHex(univalue[i].get_str());
1541 scriptwitness.stack.push_back(std::move(bytes));
1542 }
1543 return scriptwitness;
1544}
1545
1546#if defined(HAVE_CONSENSUS_LIB)
1547

Callers 1

AssetTestFunction · 0.70

Calls 4

ParseHexFunction · 0.85
isArrayMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected