From 031796b7c682745903d6385dbde572db16c565d0 Mon Sep 17 00:00:00 2001 From: David Kaplan Date: Mon, 2 Feb 2026 16:45:49 -0500 Subject: [PATCH] chore(utxo-core): remove nonWitnessUtxo from Bip322 input Remove unnecessary nonWitnessUtxo field from Bip322 input creation, which helps optimize memory usage for signing operations. BTC-2998 Co-authored-by: llm-git TICKET: BTC-2998 --- modules/utxo-core/src/bip322/toSign.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/utxo-core/src/bip322/toSign.ts b/modules/utxo-core/src/bip322/toSign.ts index 97a7bbe580..7cd492a660 100644 --- a/modules/utxo-core/src/bip322/toSign.ts +++ b/modules/utxo-core/src/bip322/toSign.ts @@ -59,7 +59,6 @@ export function addBip322Input(psbt: Psbt, message: string, addressDetails: Addr hash: toSpendTx.getId(), // vin[0].prevout.hash = to_spend.txid index: 0, // vin[0].prevout.n = 0 sequence: 0, // vin[0].nSequence = 0 - nonWitnessUtxo: toSpendTx.toBuffer(), // previous transaction for us to rebuild later to verify sighashType: Transaction.SIGHASH_ALL, }); const inputIndex = psbt.data.inputs.length - 1;