From 244c76022af53c1f5b337a5a2cdb70358cf85e19 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Wed, 18 Dec 2019 09:07:17 +1100 Subject: Convert mnemonic to hex entropy instead of binary --- src/js/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/js') diff --git a/src/js/index.js b/src/js/index.js index 3db0a31..c9e7b44 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -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); } -- cgit v1.2.3