@exodus/bitcoin-api 1.0.5 → 2.0.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/package.json +3 -3
- package/src/index.js +0 -1
- package/src/key-identifier.js +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Exodus bitcoin-api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@exodus/asset-lib": "^3.7.2",
|
|
23
23
|
"@exodus/bip44-constants": "^195.0.0",
|
|
24
|
-
"@exodus/bitcoinjs-lib": "6.0.2-beta.
|
|
24
|
+
"@exodus/bitcoinjs-lib": "6.0.2-beta.5",
|
|
25
25
|
"@exodus/keychain": "^3.0.0",
|
|
26
26
|
"@exodus/models": "^8.10.4",
|
|
27
27
|
"@exodus/secp256k1": "4.0.2-exodus.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@exodus/bip-schnorr": "0.6.6-fork-1",
|
|
41
41
|
"@noble/secp256k1": "~1.5.3"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "53103ac1ac2c6fd96111869a13893b6c13bbcb3a"
|
|
44
44
|
}
|
package/src/index.js
CHANGED
|
@@ -6,7 +6,6 @@ export * from './bitcoinjs-lib'
|
|
|
6
6
|
export { default as InsightAPIClient } from './insight-api-client'
|
|
7
7
|
export { default as InsightWSClient } from './insight-api-client/ws'
|
|
8
8
|
export { default as bip44Constants } from './constants/bip44'
|
|
9
|
-
export { default as createGetKeyIdentifier } from './key-identifier'
|
|
10
9
|
export * from './tx-send'
|
|
11
10
|
export * from './tx-sign'
|
|
12
11
|
export * from './fee'
|
package/src/key-identifier.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { buildBip32Path } from '@exodus/keychain'
|
|
2
|
-
import assert from 'minimalistic-assert'
|
|
3
|
-
|
|
4
|
-
export default ({ bip44 }) => ({ purpose, accountIndex, chainIndex, addressIndex }) => {
|
|
5
|
-
assert(typeof bip44 === 'number', 'bip44 must be a number')
|
|
6
|
-
// TODO, move key-utils.js hydra/keychain to asset libs.
|
|
7
|
-
// https://github.com/ExodusMovement/assets/pull/410#discussion_r1026331735
|
|
8
|
-
const derivationPath = buildBip32Path({
|
|
9
|
-
asset: { bip44 }, // buildBip32Path only requires bip44. Change asset with bip44 and validate!
|
|
10
|
-
purpose,
|
|
11
|
-
accountIndex,
|
|
12
|
-
chainIndex,
|
|
13
|
-
addressIndex,
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
return {
|
|
17
|
-
derivationAlgorithm: 'BIP32',
|
|
18
|
-
derivationPath,
|
|
19
|
-
keyType: 'secp256k1',
|
|
20
|
-
}
|
|
21
|
-
}
|