diff options
author | Ian Coleman <coleman.ian@gmail.com> | 2016-11-07 11:33:47 +1100 |
---|---|---|
committer | Ian Coleman <coleman.ian@gmail.com> | 2016-11-07 11:33:47 +1100 |
commit | 52e6eb81c8e464e12cea1ffc75104ca726daaa1a (patch) | |
tree | b69e264fc46da1a0e55a03b58aeecaca157ede7e /src/js | |
parent | c6624d51f4e5607202e48903352574c47571baab (diff) | |
download | BIP39-52e6eb81c8e464e12cea1ffc75104ca726daaa1a.tar.gz BIP39-52e6eb81c8e464e12cea1ffc75104ca726daaa1a.tar.zst BIP39-52e6eb81c8e464e12cea1ffc75104ca726daaa1a.zip |
jsbip39 updated to latest version
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/jsbip39.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/jsbip39.js b/src/js/jsbip39.js index 80ce656..67ba5a7 100644 --- a/src/js/jsbip39.js +++ b/src/js/jsbip39.js | |||
@@ -98,7 +98,7 @@ var Mnemonic = function(language) { | |||
98 | 98 | ||
99 | self.check = function(mnemonic) { | 99 | self.check = function(mnemonic) { |
100 | var mnemonic = self.splitWords(mnemonic); | 100 | var mnemonic = self.splitWords(mnemonic); |
101 | if (mnemonic.length % 3 > 0) { | 101 | if (mnemonic.length == 0 || mnemonic.length % 3 > 0) { |
102 | return false | 102 | return false |
103 | } | 103 | } |
104 | // idx = map(lambda x: bin(self.wordlist.index(x))[2:].zfill(11), mnemonic) | 104 | // idx = map(lambda x: bin(self.wordlist.index(x))[2:].zfill(11), mnemonic) |