pub fn finalize<C: Verification>(
    psbt: &mut PartiallySignedTransaction,
    secp: &Secp256k1<C>
) -> Result<(), Error>
👎Deprecated since 7.0: Please use PsbtExt::finalize instead
Expand description

Finalize the psbt. This function takes in a mutable reference to psbt and populates the final_witness and final_scriptsig of the psbt assuming all of the inputs are miniscript as per BIP174. If any of the inputs is not miniscript, this returns a parsing error For satisfaction of individual inputs, use the satisfy API. This function also performs a sanity interpreter check on the finalized psbt which involves checking the signatures/ preimages/timelocks. The functions fails it is not possible to satisfy any of the inputs non-malleably See finalize_mall if you want to allow malleable satisfactions