mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-18 00:12:18 +00:00
Convert mnemonic to hex entropy instead of binary
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user