@exodus/bitcoin-plugin 1.0.13 → 1.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-plugin",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Exodus bitcoin-plugin",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -20,11 +20,11 @@
20
20
  "dependencies": {
21
21
  "@exodus/asset-lib": "^3.7.1",
22
22
  "@exodus/bitcoin-api": "^2.3.14",
23
- "@exodus/bitcoin-lib": "^2.2.7",
23
+ "@exodus/bitcoin-lib": "^2.2.8",
24
24
  "minimalistic-assert": "^1.0.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@exodus/keychain": "^3.0.0"
28
28
  },
29
- "gitHead": "ae9ce2178387cabffcf542daabe8e6a25e9afa3c"
29
+ "gitHead": "5ab75b92c2a84548b0407b278047713df58152c7"
30
30
  }
@@ -51,6 +51,8 @@ export const createBitcoinAssetFactory = ({ asset, apiUrl, coinInfoNetwork }) =>
51
51
  const keys = createBtcLikeKeys({ coinInfo, versions, useBip86, ecc })
52
52
  const bip44 = bip44Constants['BTC']
53
53
 
54
+ const allowedPurposes = [44, 49, 84, 86]
55
+
54
56
  const useMultipleAddresses = true
55
57
 
56
58
  const features = {
@@ -92,7 +94,7 @@ export const createBitcoinAssetFactory = ({ asset, apiUrl, coinInfoNetwork }) =>
92
94
  address,
93
95
  signTx,
94
96
  getAddressesFromPrivateKey: getAddressesFromPrivateKeyFactory({
95
- purposes: [44, 49, 84, 86],
97
+ purposes: allowedPurposes,
96
98
  keys,
97
99
  coinInfo,
98
100
  }),
@@ -118,7 +120,11 @@ export const createBitcoinAssetFactory = ({ asset, apiUrl, coinInfoNetwork }) =>
118
120
  createHistoryMonitor: (args) => createBitcoinMonitor({ insightClient, apiUrl, ...args }),
119
121
  getFeeData: () => feeData,
120
122
  getBalances,
121
- getKeyIdentifier: createGetKeyIdentifier({ bip44 }),
123
+ getKeyIdentifier: createGetKeyIdentifier({
124
+ bip44,
125
+ allowedPurposes,
126
+ allowedChainIndices: [0, 1, 2],
127
+ }),
122
128
  hasFeature: (feature) => !!features[feature],
123
129
  createAccountState: () => accountStateClass,
124
130
  parseUnsignedTx,