MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / GetScriptForMultisig

Function GetScriptForMultisig

src/script/standard.cpp:249–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey> &keys) {
250 CScript script;
251
252 script << CScript::EncodeOP_N(nRequired);
253 for (const CPubKey &key : keys) {
254 script << ToByteVector(key);
255 }
256 script << CScript::EncodeOP_N(keys.size()) << OP_CHECKMULTISIG;
257 return script;
258}
259
260bool IsValidDestination(const CTxDestination &dest) {
261 return dest.index() != 0;

Callers 10

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
FUZZ_TARGET_INITFunction · 0.85

Calls 2

ToByteVectorFunction · 0.85
sizeMethod · 0.45

Tested by 7

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