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

Function GetScriptForRawPubKey

src/script/standard.cpp:349–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349CScript GetScriptForRawPubKey(const CPubKey& pubKey)
350{
351 return CScript() << std::vector<unsigned char>(pubKey.begin(), pubKey.end()) << OP_CHECKSIG;
352}
353
354CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey>& keys)
355{

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

Calls 3

CScriptClass · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by 9

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