Merge pull request #271 from cernekee/local

Allow converting mnemonic back to raw entropy value
This commit is contained in:
iancoleman
2019-11-11 09:21:07 +11:00
committed by GitHub
2 changed files with 44 additions and 16 deletions
+8 -1
View File
@@ -232,7 +232,14 @@
if (phraseChangeTimeoutEvent != null) {
clearTimeout(phraseChangeTimeoutEvent);
}
phraseChangeTimeoutEvent = setTimeout(phraseChanged, 400);
phraseChangeTimeoutEvent = setTimeout(function() {
phraseChanged();
var entropy = mnemonic.toRawEntropyHex(DOM.phrase.val());
if (entropy !== null) {
DOM.entropyMnemonicLength.val("raw");
DOM.entropy.val(entropy);
}
}, 400);
}
function phraseChanged() {