| 535 | } |
| 536 | |
| 537 | bool SignSignature(const SigningProvider &provider, const CScript& fromPubKey, CMutableTransaction& txTo, unsigned int nIn, const CConfidentialValue& amount, int nHashType) |
| 538 | { |
| 539 | assert(nIn < txTo.vin.size()); |
| 540 | txTo.witness.vtxinwit.resize(txTo.vin.size()); |
| 541 | CTransaction txToConst(txTo); |
| 542 | //TransactionSignatureCreator creator(&keystore, &txToConst, nIn, amount, nHashType); |
| 543 | |
| 544 | MutableTransactionSignatureCreator creator(&txTo, nIn, amount, nHashType); |
| 545 | |
| 546 | SignatureData sigdata; |
| 547 | bool ret = ProduceSignature(provider, creator, fromPubKey, sigdata); |
| 548 | UpdateTransaction(txTo, nIn, sigdata); |
| 549 | return ret; |
| 550 | } |
| 551 | |
| 552 | bool SignSignature(const SigningProvider &provider, const CTransaction& txFrom, CMutableTransaction& txTo, unsigned int nIn, int nHashType) |
| 553 | { |