Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-tx.cpp
Show First 20 Lines • Show All 672 Lines • ▼ Show 20 Lines | for (size_t i = 0; i < mergedTx.vin.size(); i++) { | ||||
if ((sigHashType.getBaseType() != BaseSigHashType::SINGLE) || | if ((sigHashType.getBaseType() != BaseSigHashType::SINGLE) || | ||||
(i < mergedTx.vout.size())) { | (i < mergedTx.vout.size())) { | ||||
ProduceSignature(keystore, | ProduceSignature(keystore, | ||||
MutableTransactionSignatureCreator( | MutableTransactionSignatureCreator( | ||||
&mergedTx, i, amount, sigHashType), | &mergedTx, i, amount, sigHashType), | ||||
prevPubKey, sigdata); | prevPubKey, sigdata); | ||||
} | } | ||||
// ... and merge in other signatures: | |||||
sigdata = CombineSignatures( | |||||
prevPubKey, | |||||
MutableTransactionSignatureChecker(&mergedTx, i, amount), sigdata, | |||||
DataFromTransaction(txv, i, coin.GetTxOut())); | |||||
UpdateInput(txin, sigdata); | UpdateInput(txin, sigdata); | ||||
} | } | ||||
tx = mergedTx; | tx = mergedTx; | ||||
} | } | ||||
class Secp256k1Init { | class Secp256k1Init { | ||||
ECCVerifyHandle globalVerifyHandle; | ECCVerifyHandle globalVerifyHandle; | ||||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |