@shapeshiftoss/hdwallet-ledger 1.55.2 → 1.55.4-alpha.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/dist/bitcoin.js +177 -243
- package/dist/bitcoin.js.map +1 -1
- package/dist/cosmos.d.ts.map +1 -1
- package/dist/cosmos.js +38 -82
- package/dist/cosmos.js.map +1 -1
- package/dist/currencies.js +1 -4
- package/dist/currencies.js.map +1 -1
- package/dist/ethereum.d.ts.map +1 -1
- package/dist/ethereum.js +143 -202
- package/dist/ethereum.js.map +1 -1
- package/dist/index.js +6 -22
- package/dist/index.js.map +1 -1
- package/dist/ledger.js +183 -284
- package/dist/ledger.js.map +1 -1
- package/dist/thorchain/common.js +11 -16
- package/dist/thorchain/common.js.map +1 -1
- package/dist/thorchain/hw-app-thor.d.ts +2 -3
- package/dist/thorchain/hw-app-thor.d.ts.map +1 -1
- package/dist/thorchain/hw-app-thor.js +125 -146
- package/dist/thorchain/hw-app-thor.js.map +1 -1
- package/dist/thorchain/index.d.ts.map +1 -1
- package/dist/thorchain/index.js +39 -86
- package/dist/thorchain/index.js.map +1 -1
- package/dist/transport.js +4 -29
- package/dist/transport.js.map +1 -1
- package/dist/utils.d.ts +0 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +13 -49
- package/dist/utils.js.map +1 -1
- package/dist/utxoUtils.js +67 -73
- package/dist/utxoUtils.js.map +1 -1
- package/package.json +7 -7
package/dist/utxoUtils.js
CHANGED
|
@@ -1,112 +1,108 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const hdwallet_core_1 = require("@shapeshiftoss/hdwallet-core");
|
|
6
|
-
const types_1 = require("@shapeshiftoss/types");
|
|
7
|
-
const bs58check_1 = require("bs58check");
|
|
1
|
+
import { ASSET_REFERENCE, bchChainId, btcChainId, dogeChainId, ltcChainId } from "@shapeshiftoss/caip";
|
|
2
|
+
import { BTCInputScriptType, BTCOutputScriptType } from "@shapeshiftoss/hdwallet-core";
|
|
3
|
+
import { UtxoAccountType } from "@shapeshiftoss/types";
|
|
4
|
+
import { decode, encode } from "bs58check";
|
|
8
5
|
/**
|
|
9
6
|
* Utility function to convert a BTCInputScriptType to the corresponding BTCOutputScriptType
|
|
10
7
|
* @param x a BTCInputScriptType
|
|
11
8
|
* @returns the corresponding BTCOutputScriptType
|
|
12
9
|
*/
|
|
13
|
-
const toBtcOutputScriptType = (x) => {
|
|
10
|
+
export const toBtcOutputScriptType = (x) => {
|
|
14
11
|
switch (x) {
|
|
15
|
-
case
|
|
16
|
-
return
|
|
17
|
-
case
|
|
18
|
-
return
|
|
19
|
-
case
|
|
20
|
-
return
|
|
21
|
-
case
|
|
22
|
-
return
|
|
12
|
+
case BTCInputScriptType.SpendWitness:
|
|
13
|
+
return BTCOutputScriptType.PayToWitness;
|
|
14
|
+
case BTCInputScriptType.SpendP2SHWitness:
|
|
15
|
+
return BTCOutputScriptType.PayToP2SHWitness;
|
|
16
|
+
case BTCInputScriptType.SpendMultisig:
|
|
17
|
+
return BTCOutputScriptType.PayToMultisig;
|
|
18
|
+
case BTCInputScriptType.SpendAddress:
|
|
19
|
+
return BTCOutputScriptType.PayToAddress;
|
|
23
20
|
default:
|
|
24
21
|
throw new TypeError("scriptType");
|
|
25
22
|
}
|
|
26
23
|
};
|
|
27
|
-
exports.toBtcOutputScriptType = toBtcOutputScriptType;
|
|
28
24
|
/**
|
|
29
25
|
* Utility function to get BIP44Params and scriptType
|
|
30
26
|
*/
|
|
31
|
-
const utxoAccountParams = (chainId, accountType, accountNumber) => {
|
|
27
|
+
export const utxoAccountParams = (chainId, accountType, accountNumber) => {
|
|
32
28
|
// TODO: dynamic coinType assignment to reduce copy/pasta
|
|
33
29
|
switch (chainId) {
|
|
34
|
-
case
|
|
30
|
+
case dogeChainId:
|
|
35
31
|
return {
|
|
36
|
-
scriptType:
|
|
32
|
+
scriptType: BTCInputScriptType.SpendAddress,
|
|
37
33
|
bip44Params: {
|
|
38
34
|
purpose: 44,
|
|
39
|
-
coinType: Number(
|
|
35
|
+
coinType: Number(ASSET_REFERENCE.Dogecoin),
|
|
40
36
|
accountNumber,
|
|
41
37
|
},
|
|
42
38
|
};
|
|
43
|
-
case
|
|
39
|
+
case btcChainId:
|
|
44
40
|
switch (accountType) {
|
|
45
|
-
case
|
|
41
|
+
case UtxoAccountType.SegwitNative:
|
|
46
42
|
return {
|
|
47
|
-
scriptType:
|
|
43
|
+
scriptType: BTCInputScriptType.SpendWitness,
|
|
48
44
|
bip44Params: {
|
|
49
45
|
purpose: 84,
|
|
50
|
-
coinType: Number(
|
|
46
|
+
coinType: Number(ASSET_REFERENCE.Bitcoin),
|
|
51
47
|
accountNumber,
|
|
52
48
|
},
|
|
53
49
|
};
|
|
54
|
-
case
|
|
50
|
+
case UtxoAccountType.SegwitP2sh:
|
|
55
51
|
return {
|
|
56
|
-
scriptType:
|
|
52
|
+
scriptType: BTCInputScriptType.SpendP2SHWitness,
|
|
57
53
|
bip44Params: {
|
|
58
54
|
purpose: 49,
|
|
59
|
-
coinType: Number(
|
|
55
|
+
coinType: Number(ASSET_REFERENCE.Bitcoin),
|
|
60
56
|
accountNumber,
|
|
61
57
|
},
|
|
62
58
|
};
|
|
63
|
-
case
|
|
59
|
+
case UtxoAccountType.P2pkh:
|
|
64
60
|
return {
|
|
65
|
-
scriptType:
|
|
61
|
+
scriptType: BTCInputScriptType.SpendAddress,
|
|
66
62
|
bip44Params: {
|
|
67
63
|
purpose: 44,
|
|
68
|
-
coinType: Number(
|
|
64
|
+
coinType: Number(ASSET_REFERENCE.Bitcoin),
|
|
69
65
|
accountNumber,
|
|
70
66
|
},
|
|
71
67
|
};
|
|
72
68
|
default:
|
|
73
69
|
throw new TypeError("utxoAccountType");
|
|
74
70
|
}
|
|
75
|
-
case
|
|
71
|
+
case bchChainId:
|
|
76
72
|
return {
|
|
77
|
-
scriptType:
|
|
73
|
+
scriptType: BTCInputScriptType.SpendAddress,
|
|
78
74
|
bip44Params: {
|
|
79
75
|
purpose: 44,
|
|
80
|
-
coinType: Number(
|
|
76
|
+
coinType: Number(ASSET_REFERENCE.BitcoinCash),
|
|
81
77
|
accountNumber,
|
|
82
78
|
},
|
|
83
79
|
};
|
|
84
|
-
case
|
|
80
|
+
case ltcChainId:
|
|
85
81
|
switch (accountType) {
|
|
86
|
-
case
|
|
82
|
+
case UtxoAccountType.SegwitNative:
|
|
87
83
|
return {
|
|
88
|
-
scriptType:
|
|
84
|
+
scriptType: BTCInputScriptType.SpendWitness,
|
|
89
85
|
bip44Params: {
|
|
90
86
|
purpose: 84,
|
|
91
|
-
coinType: Number(
|
|
87
|
+
coinType: Number(ASSET_REFERENCE.Litecoin),
|
|
92
88
|
accountNumber,
|
|
93
89
|
},
|
|
94
90
|
};
|
|
95
|
-
case
|
|
91
|
+
case UtxoAccountType.SegwitP2sh:
|
|
96
92
|
return {
|
|
97
|
-
scriptType:
|
|
93
|
+
scriptType: BTCInputScriptType.SpendP2SHWitness,
|
|
98
94
|
bip44Params: {
|
|
99
95
|
purpose: 49,
|
|
100
|
-
coinType: Number(
|
|
96
|
+
coinType: Number(ASSET_REFERENCE.Litecoin),
|
|
101
97
|
accountNumber,
|
|
102
98
|
},
|
|
103
99
|
};
|
|
104
|
-
case
|
|
100
|
+
case UtxoAccountType.P2pkh:
|
|
105
101
|
return {
|
|
106
|
-
scriptType:
|
|
102
|
+
scriptType: BTCInputScriptType.SpendAddress,
|
|
107
103
|
bip44Params: {
|
|
108
104
|
purpose: 44,
|
|
109
|
-
coinType: Number(
|
|
105
|
+
coinType: Number(ASSET_REFERENCE.Litecoin),
|
|
110
106
|
accountNumber,
|
|
111
107
|
},
|
|
112
108
|
};
|
|
@@ -117,25 +113,24 @@ const utxoAccountParams = (chainId, accountType, accountNumber) => {
|
|
|
117
113
|
throw new TypeError(`not a supported utxo chain ${chainId}`);
|
|
118
114
|
}
|
|
119
115
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
[
|
|
123
|
-
[
|
|
124
|
-
[types_1.UtxoAccountType.SegwitNative]: hdwallet_core_1.BTCInputScriptType.SpendWitness,
|
|
116
|
+
export const accountTypeToScriptType = Object.freeze({
|
|
117
|
+
[UtxoAccountType.P2pkh]: BTCInputScriptType.SpendAddress,
|
|
118
|
+
[UtxoAccountType.SegwitP2sh]: BTCInputScriptType.SpendP2SHWitness,
|
|
119
|
+
[UtxoAccountType.SegwitNative]: BTCInputScriptType.SpendWitness,
|
|
125
120
|
});
|
|
126
|
-
|
|
127
|
-
[
|
|
128
|
-
[
|
|
129
|
-
[
|
|
121
|
+
export const accountTypeToOutputScriptType = Object.freeze({
|
|
122
|
+
[UtxoAccountType.P2pkh]: BTCOutputScriptType.PayToAddress,
|
|
123
|
+
[UtxoAccountType.SegwitP2sh]: BTCOutputScriptType.PayToP2SHWitness,
|
|
124
|
+
[UtxoAccountType.SegwitNative]: BTCOutputScriptType.PayToWitness,
|
|
130
125
|
});
|
|
131
|
-
|
|
132
|
-
[
|
|
133
|
-
[
|
|
134
|
-
[
|
|
135
|
-
[
|
|
136
|
-
[
|
|
137
|
-
[
|
|
138
|
-
[
|
|
126
|
+
export const scriptTypeToAccountType = Object.freeze({
|
|
127
|
+
[BTCInputScriptType.SpendAddress]: UtxoAccountType.P2pkh,
|
|
128
|
+
[BTCInputScriptType.SpendP2SHWitness]: UtxoAccountType.SegwitP2sh,
|
|
129
|
+
[BTCInputScriptType.SpendWitness]: UtxoAccountType.SegwitNative,
|
|
130
|
+
[BTCInputScriptType.SpendMultisig]: undefined,
|
|
131
|
+
[BTCInputScriptType.Bech32]: undefined,
|
|
132
|
+
[BTCInputScriptType.CashAddr]: undefined,
|
|
133
|
+
[BTCInputScriptType.External]: undefined,
|
|
139
134
|
});
|
|
140
135
|
/*
|
|
141
136
|
* @see https://github.com/blockkeeper/blockkeeper-frontend-web/issues/38
|
|
@@ -167,17 +162,17 @@ var PublicKeyType;
|
|
|
167
162
|
})(PublicKeyType || (PublicKeyType = {}));
|
|
168
163
|
const accountTypeToVersion = (() => {
|
|
169
164
|
const Litecoin = {
|
|
170
|
-
[
|
|
171
|
-
[
|
|
172
|
-
[
|
|
165
|
+
[UtxoAccountType.P2pkh]: Buffer.from(PublicKeyType.Ltub, "hex"),
|
|
166
|
+
[UtxoAccountType.SegwitP2sh]: Buffer.from(PublicKeyType.Mtub, "hex"),
|
|
167
|
+
[UtxoAccountType.SegwitNative]: Buffer.from(PublicKeyType.zpub, "hex"),
|
|
173
168
|
};
|
|
174
169
|
const Dogecoin = {
|
|
175
|
-
[
|
|
170
|
+
[UtxoAccountType.P2pkh]: Buffer.from(PublicKeyType.dgub, "hex"),
|
|
176
171
|
};
|
|
177
172
|
const Bitcoin = {
|
|
178
|
-
[
|
|
179
|
-
[
|
|
180
|
-
[
|
|
173
|
+
[UtxoAccountType.P2pkh]: Buffer.from(PublicKeyType.xpub, "hex"),
|
|
174
|
+
[UtxoAccountType.SegwitP2sh]: Buffer.from(PublicKeyType.ypub, "hex"),
|
|
175
|
+
[UtxoAccountType.SegwitNative]: Buffer.from(PublicKeyType.zpub, "hex"),
|
|
181
176
|
};
|
|
182
177
|
return (coin, type) => {
|
|
183
178
|
switch (coin) {
|
|
@@ -186,7 +181,7 @@ const accountTypeToVersion = (() => {
|
|
|
186
181
|
case "Bitcoin":
|
|
187
182
|
return Bitcoin[type];
|
|
188
183
|
case "Dogecoin":
|
|
189
|
-
if (type !==
|
|
184
|
+
if (type !== UtxoAccountType.P2pkh)
|
|
190
185
|
throw new Error("Unsupported account type");
|
|
191
186
|
return Dogecoin[type];
|
|
192
187
|
default:
|
|
@@ -207,21 +202,20 @@ const convertVersions = ["Ltub", "xpub", "dgub"];
|
|
|
207
202
|
* @param {UtxoAccountType} accountType - The desired account type to be encoded into the public key
|
|
208
203
|
* @param {string} coin - The coin type, which will determine what version we derive
|
|
209
204
|
*/
|
|
210
|
-
function convertXpubVersion(xpub, accountType, coin) {
|
|
205
|
+
export function convertXpubVersion(xpub, accountType, coin) {
|
|
211
206
|
if (!accountType)
|
|
212
207
|
return xpub;
|
|
213
208
|
if (!convertVersions.includes(xpub.substring(0, 4))) {
|
|
214
209
|
return xpub;
|
|
215
210
|
}
|
|
216
|
-
const payload =
|
|
211
|
+
const payload = decode(xpub);
|
|
217
212
|
const version = payload.slice(0, 4);
|
|
218
213
|
const desiredVersion = accountTypeToVersion(coin, accountType);
|
|
219
214
|
if (version.compare(desiredVersion) !== 0) {
|
|
220
215
|
// Get the key without the version code at the front
|
|
221
216
|
const key = payload.slice(4);
|
|
222
|
-
return
|
|
217
|
+
return encode(Buffer.concat([desiredVersion, key]));
|
|
223
218
|
}
|
|
224
219
|
return xpub;
|
|
225
220
|
}
|
|
226
|
-
exports.convertXpubVersion = convertXpubVersion;
|
|
227
221
|
//# sourceMappingURL=utxoUtils.js.map
|
package/dist/utxoUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utxoUtils.js","sourceRoot":"","sources":["../src/utxoUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utxoUtils.js","sourceRoot":"","sources":["../src/utxoUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAqB,EAAE,EAAE;IAC7D,QAAQ,CAAC,EAAE,CAAC;QACV,KAAK,kBAAkB,CAAC,YAAY;YAClC,OAAO,mBAAmB,CAAC,YAAY,CAAC;QAC1C,KAAK,kBAAkB,CAAC,gBAAg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,7 +19,7 @@
|
|
|
19
19
|
"@ethereumjs/tx": "^3.3.0",
|
|
20
20
|
"@ledgerhq/hw-app-cosmos": "^6.29.1",
|
|
21
21
|
"@shapeshiftoss/bitcoinjs-lib": "5.2.0-shapeshift.2",
|
|
22
|
-
"@shapeshiftoss/hdwallet-core": "1.55.
|
|
22
|
+
"@shapeshiftoss/hdwallet-core": "^1.55.4-alpha.1",
|
|
23
23
|
"base64-js": "^1.5.1",
|
|
24
24
|
"bchaddrjs": "^0.4.4",
|
|
25
25
|
"bitcoinjs-message": "^2.0.0",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"lodash": "^4.17.21"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ledgerhq/hw-app-btc": "^10.
|
|
33
|
-
"@ledgerhq/hw-app-eth": "^6.
|
|
34
|
-
"@ledgerhq/hw-transport": "^6.
|
|
35
|
-
"@ledgerhq/live-common": "^
|
|
32
|
+
"@ledgerhq/hw-app-btc": "^10.4.1",
|
|
33
|
+
"@ledgerhq/hw-app-eth": "^6.38.0",
|
|
34
|
+
"@ledgerhq/hw-transport": "^6.31.2",
|
|
35
|
+
"@ledgerhq/live-common": "^30.0.0",
|
|
36
36
|
"@types/bchaddrjs": "^0.4.0",
|
|
37
37
|
"@types/bs58check": "^2.1.0",
|
|
38
38
|
"@types/ethereumjs-tx": "1.0.1",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@types/ripemd160": "^2.0.2",
|
|
41
41
|
"typedoc": "^0.20.36"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d53f2770ee5def052ea44385216063c43a2de777"
|
|
44
44
|
}
|