@exodus/bitcoin-api 2.18.2 → 2.18.3
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,15 @@
|
|
|
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
|
+
## [2.18.3](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@2.18.2...@exodus/bitcoin-api@2.18.3) (2024-06-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **bitcoin:** skip adding redeem script ([#2630](https://github.com/ExodusMovement/assets/issues/2630)) ([bc92eb5](https://github.com/ExodusMovement/assets/commit/bc92eb596aebab78a796eb2b76b3bc5cbad05b87))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [2.18.2](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@2.18.1...@exodus/bitcoin-api@2.18.2) (2024-06-18)
|
|
7
16
|
|
|
8
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-api",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.3",
|
|
4
4
|
"description": "Exodus bitcoin-api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"type": "git",
|
|
68
68
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "e6202a0f144b4f90ef5e438da03c10acd2395698"
|
|
71
71
|
}
|
|
@@ -25,7 +25,7 @@ export function createSignWithWallet({
|
|
|
25
25
|
getKeyIdentifier,
|
|
26
26
|
})
|
|
27
27
|
|
|
28
|
-
return async (psbt, inputsToSign) => {
|
|
28
|
+
return async (psbt, inputsToSign, skipFinalize) => {
|
|
29
29
|
// The Taproot SIGHASH flag includes all previous outputs,
|
|
30
30
|
// so signing is only done AFTER all inputs have been updated
|
|
31
31
|
const signingPromises = []
|
|
@@ -55,7 +55,7 @@ export function createSignWithWallet({
|
|
|
55
55
|
// so modifying it here is fine.
|
|
56
56
|
psbt.updateInput(index, { tapInternalKey: toXOnly(publicKey) })
|
|
57
57
|
}
|
|
58
|
-
} else if (purpose === 49) {
|
|
58
|
+
} else if (purpose === 49 && !skipFinalize) {
|
|
59
59
|
// If spending from a P2SH address, we assume the address is P2SH wrapping
|
|
60
60
|
// P2WPKH. Exodus doesn't use P2SH addresses so we should only ever be
|
|
61
61
|
// signing a P2SH input if we are importing a private key
|
|
@@ -50,9 +50,8 @@ export const signTxFactory = ({
|
|
|
50
50
|
},
|
|
51
51
|
})
|
|
52
52
|
|
|
53
|
-
await signWithWallet(psbt, inputsToSign)
|
|
54
|
-
|
|
55
53
|
const skipFinalize = !!unsignedTx.txData.psbtBuffer || unsignedTx.txMeta.returnPsbt
|
|
54
|
+
await signWithWallet(psbt, inputsToSign, skipFinalize)
|
|
56
55
|
return extractTransaction({ psbt, skipFinalize })
|
|
57
56
|
}
|
|
58
57
|
}
|