mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-05 18:43:47 +00:00
fix bip85 mode to work without mnemonic (using xprv or entropy)
This commit is contained in:
@@ -495,13 +495,12 @@
|
||||
|
||||
var app = DOM.bip85application.val();
|
||||
|
||||
var phrase = DOM.phrase.val();
|
||||
var passphrase = DOM.passphrase.val();
|
||||
if (!phrase) {
|
||||
var rootKey = DOM.rootKey.val();
|
||||
if (!rootKey) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
var master = libs.bip85.BIP85.fromMnemonic(phrase, passphrase);
|
||||
var master = libs.bip85.BIP85.fromBase58(rootKey);
|
||||
|
||||
var result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user