@exodus/bitcoin-api 5.0.10 → 5.0.12
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 +17 -0
- package/package.json +3 -3
- package/src/psbt-parser.js +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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
|
+
## [5.0.12](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@5.0.11...@exodus/bitcoin-api@5.0.12) (2026-11-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/bitcoin-api
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [5.0.11](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@5.0.10...@exodus/bitcoin-api@5.0.11) (2026-10-27)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **bitcoin:** reject inconsistent PSBT UTXOs and upgrade bitcoinjs ([#9112](https://github.com/ExodusMovement/assets/issues/9112)) ([9ee6947](https://github.com/ExodusMovement/assets/commit/9ee6947987303f245234fddbdd452c2f5bae65f9))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [5.0.10](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@5.0.9...@exodus/bitcoin-api@5.0.10) (2026-10-27)
|
|
7
24
|
|
|
8
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-api",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.12",
|
|
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",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@exodus/asset-lib": "^5.0.0",
|
|
23
23
|
"@exodus/basic-utils": "^5.1.0",
|
|
24
24
|
"@exodus/bip32": "^4.1.0",
|
|
25
|
-
"@exodus/bip322-js": "^3.
|
|
25
|
+
"@exodus/bip322-js": "^3.2.4",
|
|
26
26
|
"@exodus/bip44-constants": "^195.0.0",
|
|
27
27
|
"@exodus/bitcoin-lib": "^2.4.3",
|
|
28
28
|
"@exodus/bitcoinjs": "^2.0.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"type": "git",
|
|
60
60
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "cc266df454f96bb8efd03909701476c54985e3d7"
|
|
63
63
|
}
|
package/src/psbt-parser.js
CHANGED
|
@@ -23,6 +23,17 @@ function extractInputUtxoData(psbtInput, txInput, index, Transaction) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
const prevOutput = prevTx.outs[txInput.index]
|
|
26
|
+
if (!prevOutput) {
|
|
27
|
+
throw new Error(`Non-witness UTXO for input #${index} has no output #${txInput.index}`)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (
|
|
31
|
+
psbtInput.witnessUtxo &&
|
|
32
|
+
(BigInt(psbtInput.witnessUtxo.value) !== BigInt(prevOutput.value) ||
|
|
33
|
+
!psbtInput.witnessUtxo.script.equals(prevOutput.script))
|
|
34
|
+
) {
|
|
35
|
+
throw new Error(`Witness UTXO for input #${index} doesn't match the non-witness UTXO`)
|
|
36
|
+
}
|
|
26
37
|
|
|
27
38
|
return {
|
|
28
39
|
scriptBuffer: prevOutput.script,
|