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

Function SignSignature

src/test/util/transaction_utils.cpp:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94bool SignSignature(const SigningProvider &provider, const CScript& fromPubKey, CMutableTransaction& txTo, unsigned int nIn, const CAmount& amount, int nHashType, SignatureData& sig_data)
95{
96 assert(nIn < txTo.vin.size());
97
98 MutableTransactionSignatureCreator creator(txTo, nIn, amount, {.sighash_type = nHashType});
99
100 bool ret = ProduceSignature(provider, creator, fromPubKey, sig_data);
101 UpdateInput(txTo.vin.at(nIn), sig_data);
102 return ret;
103}
104
105bool SignSignature(const SigningProvider &provider, const CTransaction& txFrom, CMutableTransaction& txTo, unsigned int nIn, int nHashType, SignatureData& sig_data)
106{

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
script_sign.cppFile · 0.85

Calls 4

ProduceSignatureFunction · 0.85
UpdateInputFunction · 0.85
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected