@bitgo/sdk-api 1.1.1 → 1.1.2-hotfix.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 +32 -124
- package/dist/package.json +5 -6
- package/dist/src/bip32path.d.ts +24 -0
- package/dist/src/bip32path.d.ts.map +1 -0
- package/dist/src/bip32path.js +45 -0
- package/dist/web/browser.html +1 -0
- package/dist/web/main.js +1 -1
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.1.
|
|
6
|
+
## [1.1.2-hotfix.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.2-rc.6...@bitgo/sdk-api@1.1.2-hotfix.0) (2022-08-11)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
## [1.1.
|
|
14
|
+
## [1.1.2-rc.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.2-rc.5...@bitgo/sdk-api@1.1.2-rc.6) (2022-08-10)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
## [1.1.
|
|
22
|
+
## [1.1.2-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.2-rc.2...@bitgo/sdk-api@1.1.2-rc.3) (2022-08-02)
|
|
23
23
|
|
|
24
24
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
## [1.1.2-rc.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.2-rc.1...@bitgo/sdk-api@1.1.2-rc.2) (2022-08-01)
|
|
31
31
|
|
|
32
32
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
33
33
|
|
|
@@ -35,7 +35,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
## [1.1.2-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.2-rc.0...@bitgo/sdk-api@1.1.2-rc.1) (2022-07-27)
|
|
39
39
|
|
|
40
40
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
## [1.1.2-rc.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.1...@bitgo/sdk-api@1.1.2-rc.0) (2022-07-26)
|
|
47
47
|
|
|
48
48
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
49
49
|
|
|
@@ -51,7 +51,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
## [1.1.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.1-rc.1...@bitgo/sdk-api@1.1.1) (2022-07-21)
|
|
55
55
|
|
|
56
56
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
57
57
|
|
|
@@ -59,7 +59,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
## [1.1.1-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.1-rc.0...@bitgo/sdk-api@1.1.1-rc.1) (2022-07-21)
|
|
63
63
|
|
|
64
64
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
65
65
|
|
|
@@ -67,7 +67,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
## [1.1.1-rc.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0...@bitgo/sdk-api@1.1.1-rc.0) (2022-07-20)
|
|
71
71
|
|
|
72
72
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
73
73
|
|
|
@@ -75,7 +75,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
# [1.1.0
|
|
78
|
+
# [1.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.33...@bitgo/sdk-api@1.1.0) (2022-07-19)
|
|
79
79
|
|
|
80
80
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
81
81
|
|
|
@@ -83,250 +83,158 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
# [1.1.0-rc.
|
|
86
|
+
# [1.1.0-rc.33](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.31...@bitgo/sdk-api@1.1.0-rc.33) (2022-07-19)
|
|
87
87
|
|
|
88
88
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
89
89
|
|
|
90
|
+
# [1.1.0-rc.33](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.31...@bitgo/sdk-api@1.1.0-rc.33) (2022-07-19)
|
|
90
91
|
|
|
92
|
+
**Note:** Version bump only for package @bitgo/sdk-api
|
|
91
93
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
# [1.1.0-rc.26](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.25...@bitgo/sdk-api@1.1.0-rc.26) (2022-07-07)
|
|
94
|
+
# [1.1.0-rc.32](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.31...@bitgo/sdk-api@1.1.0-rc.32) (2022-07-18)
|
|
95
95
|
|
|
96
96
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
97
97
|
|
|
98
|
+
# [1.1.0-rc.31](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.30...@bitgo/sdk-api@1.1.0-rc.31) (2022-07-15)
|
|
98
99
|
|
|
100
|
+
**Note:** Version bump only for package @bitgo/sdk-api
|
|
99
101
|
|
|
102
|
+
# [1.1.0-rc.30](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.28...@bitgo/sdk-api@1.1.0-rc.30) (2022-07-15)
|
|
100
103
|
|
|
104
|
+
**Note:** Version bump only for package @bitgo/sdk-api
|
|
101
105
|
|
|
102
|
-
# [1.1.0-rc.
|
|
106
|
+
# [1.1.0-rc.29](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.28...@bitgo/sdk-api@1.1.0-rc.29) (2022-07-14)
|
|
103
107
|
|
|
104
108
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
105
109
|
|
|
110
|
+
# [1.1.0-rc.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.27...@bitgo/sdk-api@1.1.0-rc.28) (2022-07-12)
|
|
106
111
|
|
|
112
|
+
**Note:** Version bump only for package @bitgo/sdk-api
|
|
107
113
|
|
|
114
|
+
# [1.1.0-rc.27](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.26...@bitgo/sdk-api@1.1.0-rc.27) (2022-07-11)
|
|
108
115
|
|
|
116
|
+
**Note:** Version bump only for package @bitgo/sdk-api
|
|
109
117
|
|
|
110
|
-
# [1.1.0-rc.
|
|
118
|
+
# [1.1.0-rc.26](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.25...@bitgo/sdk-api@1.1.0-rc.26) (2022-07-07)
|
|
111
119
|
|
|
112
120
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
113
121
|
|
|
122
|
+
# [1.1.0-rc.25](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.24...@bitgo/sdk-api@1.1.0-rc.25) (2022-07-05)
|
|
114
123
|
|
|
124
|
+
**Note:** Version bump only for package @bitgo/sdk-api
|
|
115
125
|
|
|
126
|
+
# [1.1.0-rc.24](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.23...@bitgo/sdk-api@1.1.0-rc.24) (2022-07-01)
|
|
116
127
|
|
|
128
|
+
**Note:** Version bump only for package @bitgo/sdk-api
|
|
117
129
|
|
|
118
130
|
# [1.1.0-rc.23](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.22...@bitgo/sdk-api@1.1.0-rc.23) (2022-06-30)
|
|
119
131
|
|
|
120
132
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
121
133
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
134
|
# [1.1.0-rc.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.21...@bitgo/sdk-api@1.1.0-rc.22) (2022-06-30)
|
|
127
135
|
|
|
128
136
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
129
137
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
138
|
# [1.1.0-rc.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.19...@bitgo/sdk-api@1.1.0-rc.21) (2022-06-29)
|
|
135
139
|
|
|
136
140
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
137
141
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
142
|
# [1.1.0-rc.20](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.19...@bitgo/sdk-api@1.1.0-rc.20) (2022-06-29)
|
|
143
143
|
|
|
144
144
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
146
|
# [1.1.0-rc.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.18...@bitgo/sdk-api@1.1.0-rc.19) (2022-06-27)
|
|
151
147
|
|
|
152
148
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
153
149
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
150
|
# [1.1.0-rc.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.17...@bitgo/sdk-api@1.1.0-rc.18) (2022-06-23)
|
|
159
151
|
|
|
160
152
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
161
153
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
154
|
# [1.1.0-rc.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.16...@bitgo/sdk-api@1.1.0-rc.17) (2022-06-22)
|
|
167
155
|
|
|
168
|
-
|
|
169
156
|
### Bug Fixes
|
|
170
157
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
158
|
+
- add dependency check to fix current and future dependency resolutions ([3074335](https://github.com/BitGo/BitGoJS/commit/30743356cff4ebb6d9e185f1a493b187614a1ea9))
|
|
176
159
|
|
|
177
160
|
# [1.1.0-rc.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.15...@bitgo/sdk-api@1.1.0-rc.16) (2022-06-21)
|
|
178
161
|
|
|
179
162
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
180
163
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
164
|
# [1.1.0-rc.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.14...@bitgo/sdk-api@1.1.0-rc.15) (2022-06-16)
|
|
186
165
|
|
|
187
166
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
188
167
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
168
|
# [1.1.0-rc.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.13...@bitgo/sdk-api@1.1.0-rc.14) (2022-06-14)
|
|
194
169
|
|
|
195
170
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
196
171
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
172
|
# [1.1.0-rc.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.12...@bitgo/sdk-api@1.1.0-rc.13) (2022-06-14)
|
|
202
173
|
|
|
203
174
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
204
175
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
176
|
# [1.1.0-rc.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.11...@bitgo/sdk-api@1.1.0-rc.12) (2022-06-13)
|
|
210
177
|
|
|
211
178
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
212
179
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
180
|
# [1.1.0-rc.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.10...@bitgo/sdk-api@1.1.0-rc.11) (2022-06-10)
|
|
218
181
|
|
|
219
|
-
|
|
220
182
|
### Features
|
|
221
183
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
184
|
+
- move coinFactory from bitgo to sdk-core ([fb7e902](https://github.com/BitGo/BitGoJS/commit/fb7e902c150a25c40310dc040ca6a8833b097cef))
|
|
227
185
|
|
|
228
186
|
# [1.1.0-rc.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.9...@bitgo/sdk-api@1.1.0-rc.10) (2022-06-07)
|
|
229
187
|
|
|
230
|
-
|
|
231
188
|
### Bug Fixes
|
|
232
189
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
190
|
+
- **sdk-api:** api uses own version ([e2091e9](https://github.com/BitGo/BitGoJS/commit/e2091e9074f392fcebea468c8cb60cb6eb445b84))
|
|
238
191
|
|
|
239
192
|
# [1.1.0-rc.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.8...@bitgo/sdk-api@1.1.0-rc.9) (2022-06-07)
|
|
240
193
|
|
|
241
194
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
242
195
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
196
|
# [1.1.0-rc.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.7...@bitgo/sdk-api@1.1.0-rc.8) (2022-06-02)
|
|
248
197
|
|
|
249
198
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
250
199
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
200
|
# [1.1.0-rc.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.6...@bitgo/sdk-api@1.1.0-rc.7) (2022-06-02)
|
|
256
201
|
|
|
257
202
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
258
203
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
204
|
# [1.1.0-rc.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.5...@bitgo/sdk-api@1.1.0-rc.6) (2022-06-01)
|
|
264
205
|
|
|
265
206
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
266
207
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
208
|
# [1.1.0-rc.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.4...@bitgo/sdk-api@1.1.0-rc.5) (2022-05-23)
|
|
272
209
|
|
|
273
210
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
274
211
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
212
|
# [1.1.0-rc.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.3...@bitgo/sdk-api@1.1.0-rc.4) (2022-05-19)
|
|
280
213
|
|
|
281
214
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
282
215
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
216
|
# [1.1.0-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.2...@bitgo/sdk-api@1.1.0-rc.3) (2022-05-17)
|
|
288
217
|
|
|
289
218
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
290
219
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
220
|
# [1.1.0-rc.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.1...@bitgo/sdk-api@1.1.0-rc.2) (2022-05-16)
|
|
296
221
|
|
|
297
222
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
298
223
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
224
|
# [1.1.0-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.0...@bitgo/sdk-api@1.1.0-rc.1) (2022-05-13)
|
|
304
225
|
|
|
305
226
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
306
227
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
228
|
# [1.1.0-rc.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.0.1-rc.3...@bitgo/sdk-api@1.1.0-rc.0) (2022-05-13)
|
|
312
229
|
|
|
313
|
-
|
|
314
230
|
### Features
|
|
315
231
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
232
|
+
- **bitgo:** added sdk version to constants call ([6ee0b6a](https://github.com/BitGo/BitGoJS/commit/6ee0b6af92eb204ec220b09de8212f6061d39afb))
|
|
321
233
|
|
|
322
234
|
## [1.0.1-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.0.1-rc.2...@bitgo/sdk-api@1.0.1-rc.3) (2022-05-12)
|
|
323
235
|
|
|
324
236
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
325
237
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
238
|
## [1.0.1-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.0.1-rc.0...@bitgo/sdk-api@1.0.1-rc.1) (2022-04-19)
|
|
331
239
|
|
|
332
240
|
**Note:** Version bump only for package @bitgo/sdk-api
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo/sdk-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2-hotfix.0",
|
|
4
4
|
"description": "REST wrapper for BitGoJS",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"check-fmt": "prettier --check .",
|
|
21
21
|
"clean": "rm -r ./dist",
|
|
22
22
|
"lint": "eslint --quiet .",
|
|
23
|
-
"precommit": "yarn lint-staged",
|
|
24
23
|
"prepare": "npm run build",
|
|
25
24
|
"webpack-dev": "yarn webpack",
|
|
26
25
|
"webpack-prod": "yarn webpack --mode=production --node-env=production",
|
|
@@ -51,10 +50,10 @@
|
|
|
51
50
|
]
|
|
52
51
|
},
|
|
53
52
|
"dependencies": {
|
|
54
|
-
"@bitgo/sdk-core": "^
|
|
53
|
+
"@bitgo/sdk-core": "^2.0.0-hotfix.0",
|
|
55
54
|
"@bitgo/sjcl": "^1.0.1",
|
|
56
|
-
"@bitgo/unspents": "^0.8.
|
|
57
|
-
"@bitgo/utxo-lib": "^
|
|
55
|
+
"@bitgo/unspents": "^0.8.5-hotfix.0",
|
|
56
|
+
"@bitgo/utxo-lib": "^3.0.0-hotfix.0",
|
|
58
57
|
"@types/superagent": "4.1.15",
|
|
59
58
|
"bip32": "^2.0.6",
|
|
60
59
|
"bitcoinjs-message": "^2.0.0",
|
|
@@ -70,5 +69,5 @@
|
|
|
70
69
|
"superagent": "3.8.3",
|
|
71
70
|
"superagent-proxy": "3.0.0"
|
|
72
71
|
},
|
|
73
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "773565cbf43e1be378ee1ef329ca4107caed9681"
|
|
74
73
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prettier
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* BitGoJS includes some custom hand-rolled bip32 derivation logic in `bitcoin.ts`, which sadly
|
|
6
|
+
* has numerous bugs.
|
|
7
|
+
*
|
|
8
|
+
* One of the effects is that the methods accept invalid bip32 paths:
|
|
9
|
+
* - the `m` prefix is ignored ('m/0' === '0')
|
|
10
|
+
* - path components that cannot be parsed as base-10 numbers are mapped to `0` ('0/x' === '0/0')
|
|
11
|
+
* - path components with trailing characters after numerals are accepted, trailing characters
|
|
12
|
+
* are ignored ('1x' === '1')
|
|
13
|
+
*
|
|
14
|
+
* This probably does not cover everything but it should cover most bugs encountered in our code.
|
|
15
|
+
*
|
|
16
|
+
* This method attempts to convert a "legacy path", which may be invalid, to a standard bip32 path:
|
|
17
|
+
* meaning the result should be equivalent to the input path when passed to either our custom
|
|
18
|
+
* derivation log or when passed to a standard bip32 library.
|
|
19
|
+
*
|
|
20
|
+
* @param path - legacy path
|
|
21
|
+
* @return string - somewhat sanitized path that can be passed to standard bip32 libraries
|
|
22
|
+
*/
|
|
23
|
+
export declare function sanitizeLegacyPath(path: string): string;
|
|
24
|
+
//# sourceMappingURL=bip32path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bip32path.d.ts","sourceRoot":"","sources":["../../src/bip32path.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAkBvD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @prettier
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.sanitizeLegacyPath = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* BitGoJS includes some custom hand-rolled bip32 derivation logic in `bitcoin.ts`, which sadly
|
|
9
|
+
* has numerous bugs.
|
|
10
|
+
*
|
|
11
|
+
* One of the effects is that the methods accept invalid bip32 paths:
|
|
12
|
+
* - the `m` prefix is ignored ('m/0' === '0')
|
|
13
|
+
* - path components that cannot be parsed as base-10 numbers are mapped to `0` ('0/x' === '0/0')
|
|
14
|
+
* - path components with trailing characters after numerals are accepted, trailing characters
|
|
15
|
+
* are ignored ('1x' === '1')
|
|
16
|
+
*
|
|
17
|
+
* This probably does not cover everything but it should cover most bugs encountered in our code.
|
|
18
|
+
*
|
|
19
|
+
* This method attempts to convert a "legacy path", which may be invalid, to a standard bip32 path:
|
|
20
|
+
* meaning the result should be equivalent to the input path when passed to either our custom
|
|
21
|
+
* derivation log or when passed to a standard bip32 library.
|
|
22
|
+
*
|
|
23
|
+
* @param path - legacy path
|
|
24
|
+
* @return string - somewhat sanitized path that can be passed to standard bip32 libraries
|
|
25
|
+
*/
|
|
26
|
+
function sanitizeLegacyPath(path) {
|
|
27
|
+
const parts = path
|
|
28
|
+
.split('/')
|
|
29
|
+
.filter((p) => p !== '')
|
|
30
|
+
.filter((p, i) => i !== 0 || p !== 'm')
|
|
31
|
+
.map((p) => {
|
|
32
|
+
const hardened = p.slice(-1) === "'";
|
|
33
|
+
const v = parseInt(p.slice(0, hardened ? -1 : undefined), 10);
|
|
34
|
+
if (Number.isNaN(v)) {
|
|
35
|
+
return '0';
|
|
36
|
+
}
|
|
37
|
+
return String(v) + (hardened ? "'" : '');
|
|
38
|
+
});
|
|
39
|
+
if (parts.length === 0) {
|
|
40
|
+
throw new Error(`empty path`);
|
|
41
|
+
}
|
|
42
|
+
return parts.join('/');
|
|
43
|
+
}
|
|
44
|
+
exports.sanitizeLegacyPath = sanitizeLegacyPath;
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmlwMzJwYXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2JpcDMycGF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7O0dBRUc7OztBQUVIOzs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FrQkc7QUFDSCxTQUFnQixrQkFBa0IsQ0FBQyxJQUFZO0lBQzdDLE1BQU0sS0FBSyxHQUFhLElBQUk7U0FDekIsS0FBSyxDQUFDLEdBQUcsQ0FBQztTQUNWLE1BQU0sQ0FBQyxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsQ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aWJyYXJ5LlxuICpcbiAqIEBwYXJhbSBwYXRoIC0gbGVnYWN5IHBhdGhcbiAqIEByZXR1cm4gc3RyaW5nIC0gc29tZXdoYXQgc2FuaXRpemVkIHBhdGggdGhhdCBjYW4gYmUgcGFzc2VkIHRvIHN0YW5kYXJkIGJpcDMyIGxpYnJhcmllc1xuICovXG5leHBvcnQgZnVuY3Rpb24gc2FuaXRpemVMZWdhY3lQYXRoKHBhdGg6IHN0cmluZyk6IHN0cmluZyB7XG4gIGNvbnN0IHBhcnRzOiBzdHJpbmdbXSA9IHBhdGhcbiAgICAuc3BsaXQoJy8nKVxuICAgIC5maWx0ZXIoKHApID0+IHAgIT09ICcnKVxuICAgIC5maWx0ZXIoKHAsIGkpID0+IGkgIT09IDAgfHwgcCAhPT0gJ20nKVxuICAgIC5tYXAoKHApID0+IHtcbiAgICAgIGNvbnN0IGhhcmRlbmVkID0gcC5zbGljZSgtMSkgPT09IFwiJ1wiO1xuICAgICAgY29uc3QgdiA9IHBhcnNlSW50KHAuc2xpY2UoMCwgaGFyZGVuZWQgPyAtMSA6IHVuZGVmaW5lZCksIDEwKTtcbiAgICAgIGlmIChOdW1iZXIuaXNOYU4odikpIHtcbiAgICAgICAgcmV0dXJuICcwJztcbiAgICAgIH1cbiAgICAgIHJldHVybiBTdHJpbmcodikgKyAoaGFyZGVuZWQgPyBcIidcIiA6ICcnKTtcbiAgICB9KTtcblxuICBpZiAocGFydHMubGVuZ3RoID09PSAwKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKGBlbXB0eSBwYXRoYCk7XG4gIH1cbiAgcmV0dXJuIHBhcnRzLmpvaW4oJy8nKTtcbn1cbiJdfQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><html><head><meta charset="utf-8"><title>BitGo SDK Sandbox</title><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="main.js"></script></head><body></body></html>
|