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

Function SignSignature

src/script/sign.cpp:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136bool SignSignature(const CKeyStore &keystore, const CScript& fromPubKey, CMutableTransaction& txTo, unsigned int nIn, const CAmount &amount, uint32_t nHashType)
137{
138 assert(nIn < txTo.vin.size());
139 CTxIn& txin = txTo.vin[nIn];
140
141 CTransaction txToConst(txTo);
142 TransactionSignatureCreator creator(&keystore, &txToConst, nIn, amount, nHashType);
143
144 return ProduceSignature(creator, fromPubKey, txin.scriptSig);
145}
146
147bool SignSignature(const CKeyStore &keystore, const CTransaction& txFrom, CMutableTransaction& txTo, unsigned int nIn, uint32_t nHashType)
148{

Callers 7

MutateTxSignFunction · 0.85
signrawtransactionFunction · 0.85
CreateTransactionMethod · 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

Calls 2

ProduceSignatureFunction · 0.85
sizeMethod · 0.45

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68