Convert mnemonic to hex entropy instead of binary

This commit is contained in:
Ian Coleman
2019-12-18 09:07:17 +11:00
parent 516c16d721
commit 244c76022a
2 changed files with 4 additions and 2 deletions

View File

@@ -239,10 +239,12 @@
}
phraseChangeTimeoutEvent = setTimeout(function() {
phraseChanged();
var entropy = mnemonic.toRawEntropyBin(DOM.phrase.val());
var entropy = mnemonic.toRawEntropyHex(DOM.phrase.val());
if (entropy !== null) {
DOM.entropyMnemonicLength.val("raw");
DOM.entropy.val(entropy);
DOM.entropyTypeInputs.filter("[value='hexadecimal']").prop("checked", true);
entropyTypeAutoDetect = false;
}
}, 400);
}