From 7a64d9558d87ac8d2b8d65cd57f470fd9f4c3753 Mon Sep 17 00:00:00 2001 From: DanGould Date: Wed, 15 Jan 2025 13:39:58 -0500 Subject: [PATCH] Allow proposedPsbtInput UTXOs BIP 78 was updated to permit this behavior in order to be in compliance with BIP 174 (PSBT). See: https://github.com/bitcoin/bips/pull/1396 --- ts_src/client.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ts_src/client.ts b/ts_src/client.ts index e4b8cb5..76eddb6 100644 --- a/ts_src/client.ts +++ b/ts_src/client.ts @@ -157,11 +157,6 @@ export class PayjoinClient { // Verify the PSBT input is not finalized if (isFinalized(proposedPSBTInput)) throw new Error('The receiver finalized one of our inputs'); - // Verify that non_witness_utxo and witness_utxo are not specified. - if (proposedPSBTInput.nonWitnessUtxo || proposedPSBTInput.witnessUtxo) - throw new Error( - 'The receiver added non_witness_utxo or witness_utxo to one of our inputs', - ); if (proposedTxIn.sequence != null) { sequences.add(proposedTxIn.sequence); }