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

Function GetScriptForMultisig

src/script/standard.cpp:354–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey>& keys)
355{
356 CScript script;
357
358 script << nRequired;
359 for (const CPubKey& key : keys)
360 script << ToByteVector(key);
361 script << keys.size() << OP_CHECKMULTISIG;
362
363 return script;
364}
365
366bool IsValidDestination(const CTxDestination& dest) {
367 return dest.index() != 0;

Callers 11

MutateTxAddOutMultiSigFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
MakeScriptsMethod · 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
FUZZ_TARGET_INITFunction · 0.85

Calls 2

ToByteVectorFunction · 0.85
sizeMethod · 0.45

Tested by 8

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
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGET_INITFunction · 0.68