| 134 | } |
| 135 | |
| 136 | bool 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 | |
| 147 | bool SignSignature(const CKeyStore &keystore, const CTransaction& txFrom, CMutableTransaction& txTo, unsigned int nIn, uint32_t nHashType) |
| 148 | { |