File tree 3 files changed +10
-19
lines changed
3 files changed +10
-19
lines changed Original file line number Diff line number Diff line change 48
48
"deep-freeze-strict" : " ^1.1.1" ,
49
49
"eth-ens-namehash" : " ^2.0.8" ,
50
50
"eth-json-rpc-infura" : " ^5.1.0" ,
51
- "eth-keyring-controller" : " ^7.0.1 " ,
51
+ "eth-keyring-controller" : " ^7.0.2 " ,
52
52
"eth-method-registry" : " 1.1.0" ,
53
53
"eth-phishing-detect" : " ^1.1.16" ,
54
54
"eth-query" : " ^2.1.2" ,
Original file line number Diff line number Diff line change @@ -240,10 +240,11 @@ export class KeyringController extends BaseController<
240
240
* using the given seed phrase.
241
241
*
242
242
* @param password - Password to unlock keychain.
243
- * @param seed - Seed phrase to restore keychain.
244
- * @returns Promise resolving to th restored keychain object.
243
+ * @param seed - A BIP39-compliant seed phrase,
244
+ * either as a string or an array of UTF-8 bytes that represent the string.
245
+ * @returns Promise resolving to the restored keychain object.
245
246
*/
246
- async createNewVaultAndRestore ( password : string , seed : string ) {
247
+ async createNewVaultAndRestore ( password : string , seed : string | number [ ] ) {
247
248
const releaseLock = await this . mutex . acquire ( ) ;
248
249
if ( ! password || ! password . length ) {
249
250
throw new Error ( 'Invalid password' ) ;
Original file line number Diff line number Diff line change @@ -2166,16 +2166,6 @@ bindings@^1.2.1, bindings@^1.5.0:
2166
2166
dependencies :
2167
2167
file-uri-to-path "1.0.0"
2168
2168
2169
- bip39@^3.0.4 :
2170
- version "3.0.4"
2171
- resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.0.4.tgz#5b11fed966840b5e1b8539f0f54ab6392969b2a0"
2172
- integrity sha512-YZKQlb752TrUWqHWj7XAwCSjYEgGAk+/Aas3V7NyjQeZYsztO8JnQUaCWhcnL4T+jL8nvB8typ2jRPzTlgugNw==
2173
- dependencies :
2174
- " @types/node" " 11.11.6"
2175
- create-hash "^1.1.0"
2176
- pbkdf2 "^3.0.9"
2177
- randombytes "^2.0.1"
2178
-
2179
2169
bip66@^1.1.5 :
2180
2170
version "1.1.5"
2181
2171
resolved "https://registry.yarnpkg.com/bip66/-/bip66-1.1.5.tgz#01fa8748785ca70955d5011217d1b3139969ca22"
@@ -3373,13 +3363,13 @@ eth-json-rpc-middleware@^6.0.0:
3373
3363
pify "^3.0.0"
3374
3364
safe-event-emitter "^1.0.1"
3375
3365
3376
- eth-keyring-controller@^7.0.1 :
3377
- version "7.0.1 "
3378
- resolved "https://registry.yarnpkg.com/eth-keyring-controller/-/eth-keyring-controller-7.0.1 .tgz#7dd959ea6d6dca0be27f732ad08c650ba327cab3 "
3379
- integrity sha512-mD+MUwGuMStowINfen860SFhCAOm62JpEAbLM4hnD27P/sOEWkxZMjlf7S6j12YziGwX6WAO07k7Hk2hgAhcfQ ==
3366
+ eth-keyring-controller@^7.0.2 :
3367
+ version "7.0.2 "
3368
+ resolved "https://registry.yarnpkg.com/eth-keyring-controller/-/eth-keyring-controller-7.0.2 .tgz#c4d7f9be179f08b3bb18410066bc4c8e91f50552 "
3369
+ integrity sha512-U4bqbXkTn7js/47rnFtVyBYQcvOKtmraD/YReBwuy4R56bFSJN8kinP0JJRl3WTtVfVS1l5A/jjsF3qk5TaTeg ==
3380
3370
dependencies :
3371
+ " @metamask/bip39" " ^4.0.0"
3381
3372
" @metamask/eth-hd-keyring" " ^4.0.2"
3382
- bip39 "^3.0.4"
3383
3373
browser-passworder "^2.0.3"
3384
3374
eth-sig-util "^3.0.1"
3385
3375
eth-simple-keyring "^4.2.0"
You can’t perform that action at this time.
0 commit comments