MCPcopy Create free account
hub / github.com/ElementsProject/elements / FinalizePSBT

Function FinalizePSBT

src/psbt.cpp:722–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720}
721
722bool 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
737bool FinalizeAndExtractPSBT(PartiallySignedTransaction& psbtx, CMutableTransaction& result)
738{

Callers 4

FinalizeAndExtractPSBTFunction · 0.85
FillPSBTMethod · 0.85
FUZZ_TARGET_INITFunction · 0.85
openWithPSBTMethod · 0.85

Calls 3

PrecomputePSBTDataFunction · 0.85
SignPSBTInputFunction · 0.85
sizeMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.68