diff --git a/payjoin-ffi/src/receive/mod.rs b/payjoin-ffi/src/receive/mod.rs index bc62bf73d..8c746ef54 100644 --- a/payjoin-ffi/src/receive/mod.rs +++ b/payjoin-ffi/src/receive/mod.rs @@ -1289,18 +1289,6 @@ impl_save_for_transition!(PayjoinProposalTransition, Monitor); #[uniffi::export] impl PayjoinProposal { - pub fn utxos_to_be_locked(&self) -> Vec { - let mut outpoints: Vec = Vec::new(); - for o in , - >>::into(self.clone()) - .utxos_to_be_locked() - { - outpoints.push(OutPoint::from(*o)); - } - outpoints - } - pub fn psbt(&self) -> String { , diff --git a/payjoin/src/core/receive/v1/mod.rs b/payjoin/src/core/receive/v1/mod.rs index 1102728a1..a47cbd67b 100644 --- a/payjoin/src/core/receive/v1/mod.rs +++ b/payjoin/src/core/receive/v1/mod.rs @@ -313,11 +313,6 @@ pub struct PayjoinProposal { } impl PayjoinProposal { - /// The UTXOs that would be spent by this Payjoin transaction. - pub fn utxos_to_be_locked(&self) -> impl '_ + Iterator { - self.payjoin_psbt.unsigned_tx.input.iter().map(|input| &input.previous_output) - } - /// The Payjoin Proposal PSBT. pub fn psbt(&self) -> &Psbt { &self.payjoin_psbt } } diff --git a/payjoin/src/core/receive/v2/mod.rs b/payjoin/src/core/receive/v2/mod.rs index ae96aab03..70e6030f3 100644 --- a/payjoin/src/core/receive/v2/mod.rs +++ b/payjoin/src/core/receive/v2/mod.rs @@ -1258,13 +1258,6 @@ pub struct PayjoinProposal { /// A finalized Payjoin proposal, complete with fees and receiver signatures, that the sender /// should find acceptable. impl Receiver { - /// The UTXOs that would be spent by this Payjoin transaction. - pub fn utxos_to_be_locked(&self) -> impl '_ + Iterator { - // TODO: de-duplicate this with the v1 implementation - // It would make more sense if the payjoin proposal was only available after utxos are locked via session persister - self.psbt_context.payjoin_psbt.unsigned_tx.input.iter().map(|input| &input.previous_output) - } - /// The Payjoin Proposal PSBT. pub fn psbt(&self) -> &Psbt { &self.psbt_context.payjoin_psbt }