MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetScriptForMultisig

Function GetScriptForMultisig

src/script/standard.cpp:314–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey>& keys)
315{
316 CScript script;
317
318 script << CScript::EncodeOP_N(nRequired);
319 for (const CPubKey& key : keys)
320 script << ToByteVector(key);
321 script << CScript::EncodeOP_N(keys.size()) << OP_CHECKMULTISIG;
322 return script;
323}
324
325CScript GetScriptForWitness(const CScript& redeemscript)
326{

Callers 8

MutateTxAddOutMultiSigFunction · 0.85
ExpandMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
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 5

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