@bitgo/sdk-api 1.1.1-rc.0 → 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 +37 -113
- 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
|
-
|
|
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
|
-
|
|
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,234 +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.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)
|
|
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
|
-
# [1.1.0-rc.
|
|
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
|
|
|
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)
|
|
122
135
|
|
|
136
|
+
**Note:** Version bump only for package @bitgo/sdk-api
|
|
123
137
|
|
|
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)
|
|
124
139
|
|
|
140
|
+
**Note:** Version bump only for package @bitgo/sdk-api
|
|
125
141
|
|
|
126
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)
|
|
127
143
|
|
|
128
144
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
129
145
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
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)
|
|
135
147
|
|
|
136
148
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
137
149
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
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)
|
|
143
151
|
|
|
144
152
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
145
153
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
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)
|
|
151
155
|
|
|
152
|
-
|
|
153
156
|
### Bug Fixes
|
|
154
157
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
- add dependency check to fix current and future dependency resolutions ([3074335](https://github.com/BitGo/BitGoJS/commit/30743356cff4ebb6d9e185f1a493b187614a1ea9))
|
|
160
159
|
|
|
161
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)
|
|
162
161
|
|
|
163
162
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
164
163
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
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)
|
|
170
165
|
|
|
171
166
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
172
167
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
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)
|
|
178
169
|
|
|
179
170
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
180
171
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
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)
|
|
186
173
|
|
|
187
174
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
188
175
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
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)
|
|
194
177
|
|
|
195
178
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
196
179
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
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)
|
|
202
181
|
|
|
203
|
-
|
|
204
182
|
### Features
|
|
205
183
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
184
|
+
- move coinFactory from bitgo to sdk-core ([fb7e902](https://github.com/BitGo/BitGoJS/commit/fb7e902c150a25c40310dc040ca6a8833b097cef))
|
|
211
185
|
|
|
212
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)
|
|
213
187
|
|
|
214
|
-
|
|
215
188
|
### Bug Fixes
|
|
216
189
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
190
|
+
- **sdk-api:** api uses own version ([e2091e9](https://github.com/BitGo/BitGoJS/commit/e2091e9074f392fcebea468c8cb60cb6eb445b84))
|
|
222
191
|
|
|
223
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)
|
|
224
193
|
|
|
225
194
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
226
195
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
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)
|
|
232
197
|
|
|
233
198
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
234
199
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
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)
|
|
240
201
|
|
|
241
202
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
242
203
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
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)
|
|
248
205
|
|
|
249
206
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
250
207
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
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)
|
|
256
209
|
|
|
257
210
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
258
211
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
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)
|
|
264
213
|
|
|
265
214
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
266
215
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
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)
|
|
272
217
|
|
|
273
218
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
274
219
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
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)
|
|
280
221
|
|
|
281
222
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
282
223
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
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)
|
|
288
225
|
|
|
289
226
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
290
227
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
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)
|
|
296
229
|
|
|
297
|
-
|
|
298
230
|
### Features
|
|
299
231
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
232
|
+
- **bitgo:** added sdk version to constants call ([6ee0b6a](https://github.com/BitGo/BitGoJS/commit/6ee0b6af92eb204ec220b09de8212f6061d39afb))
|
|
305
233
|
|
|
306
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)
|
|
307
235
|
|
|
308
236
|
**Note:** Version bump only for package @bitgo/sdk-api
|
|
309
237
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
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)
|
|
315
239
|
|
|
316
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmlwMzJwYXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2JpcDMycGF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7O0dBRUc7OztBQUVIOzs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FrQkc7QUFDSCxTQUFnQixrQkFBa0IsQ0FBQyxJQUFZO0lBQzdDLE1BQU0sS0FBSyxHQUFhLElBQUk7U0FDekIsS0FBSyxDQUFDLEdBQUcsQ0FBQztTQUNWLE1BQU0sQ0FBQyxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztTQUN2QixNQUFNLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLEtBQUss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BhdGggdGhhdCBjYW4gYmUgcGFzc2VkIHRvIHN0YW5kYXJkIGJpcDMyIGxpYnJhcmllc1xuICovXG5leHBvcnQgZnVuY3Rpb24gc2FuaXRpemVMZWdhY3lQYXRoKHBhdGg6IHN0cmluZyk6IHN0cmluZyB7XG4gIGNvbnN0IHBhcnRzOiBzdHJpbmdbXSA9IHBhdGhcbiAgICAuc3BsaXQoJy8nKVxuICAgIC5maWx0ZXIoKHApID0+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>
|