Function sapio_miniscript::psbt::finalize[][src]

pub fn finalize<C: Verification>(
    psbt: &mut Psbt,
    secp: &Secp256k1<C>
) -> Result<(), Error>

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.