fix bip85 mode to work without mnemonic (using xprv or entropy)

This commit is contained in:
Sylvia G
2021-04-06 03:18:04 +03:00
parent 23f393acfb
commit 85711db3bb

View File

@@ -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;