MCPcopy Create free account
hub / github.com/LUX-Core/lux / SignSignature

Function SignSignature

src/script/sign.cpp:214–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214bool SignSignature(const CKeyStore &keystore, const CScript& fromPubKey, CMutableTransaction& txTo, unsigned int nIn, const CAmount& amount, int nHashType)
215{
216 assert(nIn < txTo.vin.size());
217
218 CTransaction txToConst(txTo);
219 TransactionSignatureCreator creator(&keystore, &txToConst, nIn, amount, nHashType);
220
221 SignatureData sigdata;
222 bool ret = ProduceSignature(creator, fromPubKey, sigdata);
223 UpdateTransaction(txTo, nIn, sigdata);
224 return ret;
225}
226
227bool SignSignature(const CKeyStore &keystore, const CTransaction& txFrom, CMutableTransaction& txTo, unsigned int nIn, int nHashType)
228{

Callers 8

CreateCoinStakeMethod · 0.85
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

Calls 3

ProduceSignatureFunction · 0.85
UpdateTransactionFunction · 0.85
sizeMethod · 0.45

Tested by 6

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