]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - src/js/index.js
Convert mnemonic to hex entropy instead of binary
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / index.js
index 3db0a31938fe8c093187c8dbace172093c42ece5..c9e7b44aa02a228cac4d5786ca5d0dad7a53f22b 100644 (file)
         }
         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);
     }