Commit Graph

12 Commits

Author SHA1 Message Date
Ian Coleman 700294714c Raw entropy is interpreted as binary
For example, using abandon abandon ability becomes 8 zeros but how does
the entropy field know it's hex and not binary? It assumes the
worst-case scenario of binary, so entropy should be shown in binary.

Perhaps if entropy type is explicitly selected in the future this can be
changed back to using hex. But while magical assumptions exist, binary
it must be.
2019-11-11 10:31:14 +11:00
Kevin Cernekee 611f76238d Allow converting mnemonic back to raw entropy value
Currently, this sequence produces an unexpected result:

1) Navigate to bip39-standalone.html

2) Paste a known-good mnemonic into the BIP39 Mnemonic field

3) Select "Show entropy details"

This will erase the BIP39 Mnemonic field and most of the derived
address/key information.  It shows an empty Entropy field, and zeroes
for Event Count, Bits Per Event, Raw Entropy Words, Total Bits, etc.
However, it will show valid Word Indexes and BIP39 Seed.

The way to fix it is to convert the mnemonic back into a raw entropy
value and populate it in DOM.entropy, so that everything stays
consistent.  This will only happen if the mnemonic is manually entered
by the user, not if phraseChanged() is triggered by hand-editing the
entropy value.
2018-10-28 15:10:51 -07:00
Ian Coleman 956e44efd7 Korean uses ascii spaces, not ideographic spaces 2018-05-08 09:11:30 +10:00
Ian Coleman 0514c20b81 Update jsbip39.js to latest version 2018-03-12 11:31:41 +11:00
Ian Coleman 599fb39e4e jsbip39 updated - fixes Japanese language 2017-03-03 08:20:17 +11:00
Ian Coleman 52e6eb81c8 jsbip39 updated to latest version 2016-11-07 11:33:47 +11:00
Ian Coleman 3a8dbe99b4 jsBip39 and wordlists updated with new languages 2016-10-20 16:40:52 +11:00
Chris Moore 7772c641c7 Normalize whitespace before using mnemonic. Fixes #19. 2016-03-19 13:39:42 -07:00
Ian Coleman e66c8a9b5a jsbip39 updated and asmcrypto replaced with sjcl 2014-09-29 16:11:09 +10:00
Ian Coleman 4dd6050628 UTF-8 strings handled correctly by asmCrypto 2014-09-27 23:20:36 +10:00
Ian Coleman be6ba9a836 mnemonic.normalizeString method made public 2014-09-27 21:50:48 +10:00
Ian Coleman ebd8d4e8b5 Move from private repo 2014-09-18 11:01:19 +10:00