| 92 | } |
| 93 | |
| 94 | bool 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 | |
| 105 | bool SignSignature(const SigningProvider &provider, const CTransaction& txFrom, CMutableTransaction& txTo, unsigned int nIn, int nHashType, SignatureData& sig_data) |
| 106 | { |
no test coverage detected