| 720 | } |
| 721 | |
| 722 | bool FinalizePSBT(PartiallySignedTransaction& psbtx) |
| 723 | { |
| 724 | // Finalize input signatures -- in case we have partial signatures that add up to a complete |
| 725 | // signature, but have not combined them yet (e.g. because the combiner that created this |
| 726 | // PartiallySignedTransaction did not understand them), this will combine them into a final |
| 727 | // script. |
| 728 | bool complete = true; |
| 729 | const PrecomputedTransactionData txdata = PrecomputePSBTData(psbtx); |
| 730 | for (unsigned int i = 0; i < psbtx.inputs.size(); ++i) { |
| 731 | complete &= SignPSBTInput(DUMMY_SIGNING_PROVIDER, psbtx, i, &txdata, SIGHASH_ALL, nullptr, true); |
| 732 | } |
| 733 | |
| 734 | return complete; |
| 735 | } |
| 736 | |
| 737 | bool FinalizeAndExtractPSBT(PartiallySignedTransaction& psbtx, CMutableTransaction& result) |
| 738 | { |