mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-28 21:30:41 +00:00
jsbip39 updated to latest version
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@ var Mnemonic = function(language) {
|
|||||||
|
|
||||||
self.check = function(mnemonic) {
|
self.check = function(mnemonic) {
|
||||||
var mnemonic = self.splitWords(mnemonic);
|
var mnemonic = self.splitWords(mnemonic);
|
||||||
if (mnemonic.length % 3 > 0) {
|
if (mnemonic.length == 0 || mnemonic.length % 3 > 0) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
// idx = map(lambda x: bin(self.wordlist.index(x))[2:].zfill(11), mnemonic)
|
// idx = map(lambda x: bin(self.wordlist.index(x))[2:].zfill(11), mnemonic)
|
||||||
|
|||||||
Reference in New Issue
Block a user