MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / SignSignature

Function SignSignature

src/script/sign.cpp:423–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423bool SignSignature(const SigningProvider &provider, const CScript& fromPubKey, CMutableTransaction& txTo, unsigned int nIn, const CAmount& amount, int nHashType)
424{
425 assert(nIn < txTo.vin.size());
426
427 bool no_forkid = !(nHashType & SIGHASH_FORKID);
428 MutableTransactionSignatureCreator creator(&txTo, nIn, amount, no_forkid, nHashType);
429
430 SignatureData sigdata;
431 bool ret = ProduceSignature(provider, creator, fromPubKey, sigdata, no_forkid);
432 UpdateInput(txTo.vin.at(nIn), sigdata);
433 return ret;
434}
435
436bool SignSignature(const SigningProvider &provider, const CTransaction& txFrom, CMutableTransaction& txTo, unsigned int nIn, int nHashType)
437{

Callers 7

BOOST_AUTO_TEST_CASEFunction · 0.85
CreateCreditAndSpendFunction · 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
CheckFunction · 0.85

Calls 3

ProduceSignatureFunction · 0.85
UpdateInputFunction · 0.85
sizeMethod · 0.45

Tested by 7

BOOST_AUTO_TEST_CASEFunction · 0.68
CreateCreditAndSpendFunction · 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
CheckFunction · 0.68