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

Function GetScriptForRawPubKey

src/script/standard.cpp:244–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244CScript GetScriptForRawPubKey(const CPubKey &pubKey) {
245 return CScript() << std::vector<uint8_t>(pubKey.begin(), pubKey.end())
246 << OP_CHECKSIG;
247}
248
249CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey> &keys) {
250 CScript script;

Callers 15

MutateTxAddOutPubKeyFunction · 0.85
AddKeyPubKeyWithDBMethod · 0.85
ImportPubKeysMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
TestWatchOnlyPubKeyFunction · 0.85
ListCoinsTestingSetupMethod · 0.85
MakeScriptsMethod · 0.85
MakeScriptsMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85

Calls 3

CScriptClass · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by 12

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
TestWatchOnlyPubKeyFunction · 0.68
ListCoinsTestingSetupMethod · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGET_INITFunction · 0.68
TestGUIFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68