(mnemonicStr: string, lang = "ENGLISH")
| 64 | } |
| 65 | |
| 66 | protected importMnemonic(mnemonicStr: string, lang = "ENGLISH"): void { |
| 67 | this.mnemoic = new Mnemonic(mnemonicStr, Mnemonic.Words[lang]); |
| 68 | |
| 69 | const seed = this.mnemoic.toSeed(); |
| 70 | this.rootHDPrivateKey = bitcore.HDPrivateKey.fromSeed( |
| 71 | seed, |
| 72 | this.config.network |
| 73 | ); |
| 74 | this.currentAccount = this.createAccount(this.rootPath, this.accoutIndex); |
| 75 | } |
| 76 | |
| 77 | // Create account |
| 78 | createAccount( |
nothing calls this directly
no test coverage detected