}
phraseChangeTimeoutEvent = setTimeout(function() {
phraseChanged();
- var entropy = mnemonic.toRawEntropyHex(DOM.phrase.val());
+ var entropy = mnemonic.toRawEntropyBin(DOM.phrase.val());
if (entropy !== null) {
DOM.entropyMnemonicLength.val("raw");
DOM.entropy.val(entropy);
calcForDerivationPath();
// Show the word indexes
showWordIndexes();
+ writeSplitPhrase(phrase);
}
function tabChanged() {
if (DOM.phrase.val().length > 0) {
var newPhrase = convertPhraseToNewLanguage();
DOM.phrase.val(newPhrase);
- writeSplitPhrase(newPhrase);
phraseChanged();
}
else {
// show the words
var words = mnemonic.toMnemonic(data);
DOM.phrase.val(words);
- writeSplitPhrase(words);
// show the entropy
var entropyHex = uint8ArrayToHex(data);
DOM.entropy.val(entropyHex);