MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetScriptForRawPubKey

Function GetScriptForRawPubKey

src/script/solver.cpp:213–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213CScript GetScriptForRawPubKey(const CPubKey& pubKey)
214{
215 return CScript() << std::vector<unsigned char>(pubKey.begin(), pubKey.end()) << OP_CHECKSIG;
216}
217
218CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey>& keys)
219{

Callers 15

MutateTxAddOutPubKeyFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
ListCoinsTestingSetupMethod · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
MakeScriptsMethod · 0.85
MakeScriptsMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 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
ListCoinsTestingSetupMethod · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
TestGUIFunction · 0.68