]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commit
Raw entropy is interpreted as binary
authorIan Coleman <ian@iancoleman.io>
Sun, 10 Nov 2019 23:31:14 +0000 (10:31 +1100)
committerIan Coleman <ian@iancoleman.io>
Sun, 10 Nov 2019 23:31:14 +0000 (10:31 +1100)
commit700294714c39cb6e8226b960671a33dc93362edc
treeccd935208aed75efa1de3798d3a83e68157139e7
parentd93f2ba9f074464f5e20f9711563ff08e3eb19a6
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.
src/js/index.js
src/js/jsbip39.js
tests/spec/tests.js