@exodus/bitcoin-plugin 1.26.0 → 1.27.0

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,24 @@
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
+ ## [1.27.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.26.1...@exodus/bitcoin-plugin@1.27.0) (2024-09-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **bitcoin-plugin:** normalize secp256k1 usage ([#3959](https://github.com/ExodusMovement/assets/issues/3959)) ([40bd79d](https://github.com/ExodusMovement/assets/commit/40bd79d78d3865e5148f3c448ac293669a5f14b0))
12
+
13
+
14
+
15
+ ## [1.26.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.26.0...@exodus/bitcoin-plugin@1.26.1) (2024-09-13)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **BTC:** allow internal pubkey and sort xonly for multisig ([#3634](https://github.com/ExodusMovement/assets/issues/3634)) ([808bf65](https://github.com/ExodusMovement/assets/commit/808bf65f05576e2758bb32ad5654143577db7c38))
21
+
22
+
23
+
6
24
  ## [1.26.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.25.2...@exodus/bitcoin-plugin@1.26.0) (2024-09-11)
7
25
 
8
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-plugin",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "description": "Exodus bitcoin-plugin",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -24,8 +24,8 @@
24
24
  "@exodus/asset-lib": "^5.0.0",
25
25
  "@exodus/bip32": "^3.1.0",
26
26
  "@exodus/bip44-constants": "^195.0.0",
27
- "@exodus/bitcoin-api": "^2.22.1",
28
- "@exodus/bitcoin-lib": "^2.4.0",
27
+ "@exodus/bitcoin-api": "^2.24.0",
28
+ "@exodus/bitcoin-lib": "^2.4.2",
29
29
  "@exodus/bitcoin-meta": "^2.0.0",
30
30
  "@exodus/bitcoinjs-lib": "^6.1.6",
31
31
  "@exodus/crypto": "^1.0.0-rc.1",
@@ -37,7 +37,7 @@
37
37
  "lodash": "^4.17.21",
38
38
  "minimalistic-assert": "^1.0.1",
39
39
  "ms": "^2.1.3",
40
- "tiny-secp256k1": "^1.1.3"
40
+ "secp256k1": "^3.4.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@exodus/assets-testing": "^1.0.0",
@@ -61,5 +61,5 @@
61
61
  "type": "git",
62
62
  "url": "git+https://github.com/ExodusMovement/assets.git"
63
63
  },
64
- "gitHead": "e1658e46da900506ff963542d6cc5401face8ec0"
64
+ "gitHead": "fab5429fe99be08b08575100e4be6f151ce9638f"
65
65
  }
@@ -5,7 +5,7 @@ import { witnessStackToScriptWitness } from '@exodus/bitcoinjs-lib/src/psbt/psbt
5
5
  import { randomBytes } from '@exodus/crypto/randomBytes'
6
6
  import { TextEncoder } from '@exodus/text-encoding-utf8'
7
7
  import assert from 'minimalistic-assert'
8
- import * as secp256k1 from 'tiny-secp256k1'
8
+ import secp256k1 from 'secp256k1'
9
9
 
10
10
  import { DEFAULT_BRC20_POSTAGE, DEFAULT_ORDINAL_POSTAGE } from './ordinals-constants.js'
11
11
 
@@ -280,7 +280,7 @@ export const inscriptionsServiceFactory = ({ network, ordinalChainIndex }) => {
280
280
 
281
281
  const postage = inscription.postage
282
282
 
283
- const publicKey = secp256k1.pointFromScalar(privateKey, false)
283
+ const publicKey = secp256k1.publicKeyCreate(privateKey, false)
284
284
  const commitTxData = createCommitTxData({ publicKey, inscription })
285
285
 
286
286
  const feeData = await assetClientInterface.getFeeConfig({ assetName })