MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetScriptForMultisig

Function GetScriptForMultisig

src/script/standard.cpp:503–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey>& keys)
504{
505 CScript script;
506
507 script << CScript::EncodeOP_N(nRequired);
508 for (const CPubKey& key : keys)
509 script << ToByteVector(key);
510 script << CScript::EncodeOP_N(keys.size()) << OP_CHECKMULTISIG;
511 return script;
512}
513
514CScript GetScriptForWitness(const CScript& redeemscript)
515{

Callers 5

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

ToByteVectorFunction · 0.85
sizeMethod · 0.45

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68