/// Extract the Transaction from a PartiallySignedTransaction by filling in
/// the available signature information in place.
Extract the Transaction from a PartiallySignedTransaction by filling in
the available signature information in place.
Extract the Transaction from a PartiallySignedTransaction by filling in the available signature information in place .
pub fn extract_tx(self) -> Transaction {
        let mut tx: Transaction = self.global.unsigned_tx;
        for (vin, psbtin) in tx.input.iter_mut().zip(self.inputs.into_iter()) {
            vin.script_sig = psbtin.final_script_sig.unwrap_or_else(|| Script::new());
            vin.witness = psbtin.final_script_witness.unwrap_or_else(|| Vec::new());
        }
        tx
    }
pub fn extract_tx ( self ) -> Transaction { let mut tx : Transaction = self . global . unsigned_tx ; for ( vin , psbtin ) in tx . input . iter_mut ( ) . zip ( self . inputs . into_iter ( ) ) { vin . script_sig = psbtin . final_script_sig . unwrap_or_else ( | | Script :: new ( ) ) ; vin . witness = psbtin . final_script_witness . unwrap_or_else ( | | Vec :: new ( ) ) ; } tx }
Extract the Transaction from a PartiallySignedTransaction by filling in
the available signature information in place.
Extract the Transaction from a PartiallySignedTransaction by filling in the available signature information in place .
self