diff --git a/bitcoin-rpc-provider/src/lib.rs b/bitcoin-rpc-provider/src/lib.rs index 5f558dbf..92d3b96b 100644 --- a/bitcoin-rpc-provider/src/lib.rs +++ b/bitcoin-rpc-provider/src/lib.rs @@ -7,6 +7,7 @@ use std::sync::{Arc, Mutex}; use std::time::Duration; use bitcoin::consensus::encode::Error as EncodeError; +use bitcoin::psbt::PartiallySignedTransaction; use bitcoin::secp256k1::rand::thread_rng; use bitcoin::secp256k1::{PublicKey, SecretKey}; use bitcoin::{ @@ -185,14 +186,32 @@ impl Signer for BitcoinCoreProvider { Ok(pk.inner) } - fn sign_tx_input( + fn sign_psbt_input( &self, - tx: &mut Transaction, + psbt: &mut PartiallySignedTransaction, input_index: usize, - tx_out: &TxOut, - redeem_script: Option