@exodus/bitcoin-api 2.17.0 → 2.17.1

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.17.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@2.17.0...@exodus/bitcoin-api@2.17.1) (2024-06-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * support signing taproot scripts from xverse payment addresses ([#2548](https://github.com/ExodusMovement/assets/issues/2548)) ([0597ba2](https://github.com/ExodusMovement/assets/commit/0597ba27a83071a8a0be41d44d8c0ca32cc5e6f6))
12
+
13
+
14
+
6
15
  ## [2.17.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@2.16.0...@exodus/bitcoin-api@2.17.0) (2024-06-12)
7
16
 
8
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-api",
3
- "version": "2.17.0",
3
+ "version": "2.17.1",
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": "f815266bc50384027d966f37e44e9166c87ca938"
70
+ "gitHead": "7882251e138663159eff38925571acadbac1a00f"
71
71
  }
@@ -44,8 +44,8 @@ export function createSignWithWallet({
44
44
  : [sigHash, Transaction.SIGHASH_ALL]
45
45
  const { key, purpose, keyId, publicKey } = await getKeyWithMetadata(address)
46
46
 
47
- const isP2SH = purpose === 49
48
47
  const hasTapLeafScript = input.tapLeafScript && input.tapLeafScript.length > 0
48
+ const isP2SH = purpose === 49 && !hasTapLeafScript
49
49
  const isTaprootKeySpend = isTaprootPurpose(purpose) && !hasTapLeafScript
50
50
 
51
51
  if (isP2SH) {