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

Function SignSignature

src/script/sign.cpp:350–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350bool SignSignature(const SigningProvider &provider, const CScript &fromPubKey,
351 CMutableTransaction &txTo, unsigned int nIn,
352 const Amount amount, SigHashType sigHashType) {
353 assert(nIn < txTo.vin.size());
354
355 MutableTransactionSignatureCreator creator(&txTo, nIn, amount, sigHashType);
356
357 SignatureData sigdata;
358 bool ret = ProduceSignature(provider, creator, fromPubKey, sigdata);
359 UpdateInput(txTo.vin.at(nIn), sigdata);
360 return ret;
361}
362
363bool SignSignature(const SigningProvider &provider, const CTransaction &txFrom,
364 CMutableTransaction &txTo, unsigned int nIn,

Callers 8

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

Calls 5

ProduceSignatureFunction · 0.85
UpdateInputFunction · 0.85
atMethod · 0.80
sizeMethod · 0.45
GetNMethod · 0.45

Tested by 8

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
DoCheckFunction · 0.68
FUZZ_TARGET_INITFunction · 0.68