@exodus/bitcoin-api 4.15.3 → 4.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.15.4](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@4.15.3...@exodus/bitcoin-api@4.15.4) (2026-05-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: fail fast on mismatched PSBT non-witness UTXOs (#8148)
13
+
14
+
15
+
6
16
  ## [4.15.3](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@4.15.2...@exodus/bitcoin-api@4.15.3) (2026-05-27)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-api",
3
- "version": "4.15.3",
3
+ "version": "4.15.4",
4
4
  "description": "Bitcoin transaction and fee monitors, RPC with the blockchain node, other networking code.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -63,5 +63,5 @@
63
63
  "type": "git",
64
64
  "url": "git+https://github.com/ExodusMovement/assets.git"
65
65
  },
66
- "gitHead": "3971c2a60d201b078249fe7653e7ccc21b38c371"
66
+ "gitHead": "a2a294de9468382e1c3bbdebf6db6eea2bea4b1c"
67
67
  }
@@ -14,6 +14,14 @@ import { getUsableUtxos, getUtxos } from './utxos-utils.js'
14
14
  function extractInputUtxoData(psbtInput, txInput, index, Transaction) {
15
15
  if (psbtInput.nonWitnessUtxo) {
16
16
  const prevTx = Transaction.fromBuffer(psbtInput.nonWitnessUtxo)
17
+ const prevoutHash = txInput.hash
18
+ const utxoHash = prevTx.getHash()
19
+ if (!prevoutHash.equals(utxoHash)) {
20
+ throw new Error(
21
+ `Non-witness UTXO hash for input #${index} doesn't match the hash specified in the prevout`
22
+ )
23
+ }
24
+
17
25
  const prevOutput = prevTx.outs[txInput.index]
18
26
 
19
27
  return {