Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Fix a bug in Mnemonic._entropyChecksum #29

Closed
wants to merge 1 commit into from

Conversation

Flavien
Copy link

@Flavien Flavien commented Aug 22, 2015

The result of toString on a number can be different across browsers for large numbers. In particular, it's possible for IE to use exponential notation, which was breaking Mnemonic._entropyChecksum.

This can be reproduced using this seed: patrol wise idea oyster inquiry crash dignity chronic scatter time admit pet, which is valid on Chrome and Firefox, but invalid on IE11 and Edge.

The result of toString on a number can be different across
browsers for large numbers. In particular, it's possible for IE
to use exponential notation, which was breaking Mnemonic._entropyChecksum.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant