bitcoinjs / bip39

JavaScript implementation of Bitcoin BIP39: Mnemonic code for generating deterministic keys
ISC License
1.11k stars 447 forks source link

81 - restructure source #82

Closed bent0b0x closed 6 years ago

bent0b0x commented 6 years ago

Issue bip39#81

Motivation If one is using bip39 in a front-end web application (as is Paratii-Portal), there is a strong desire to only import the absolute minimum code needed to keep our application bundle size as small as possible. Given how the code in bip39 is currently organized, one cannot import/require individual functions from the module w/o importing the entirety of the module (including its dependencies). Some dependencies (specifically unorm and the language files) are quite large and are not required for every single function in this package.

Selfishly speaking, this change enables the size of our imports from bip39 to decrease by 90KB

Work Done