{"repo":"bitcoinjs/bip39","free":true,"listed":false,"github":"https://github.com/bitcoinjs/bip39","clone":"git clone https://github.com/bitcoinjs/bip39.git","description":"JavaScript implementation of Bitcoin BIP39: Mnemonic code for generating deterministic keys","language":"JavaScript","stars":1180,"topics":["bitcoin","mnemonic","bip39","bip","bitcoinjs","javascript"],"license":"ISC","category":"blockchain-web3","readme_excerpt":"BIP39 JavaScript implementation of Bitcoin BIP39: Mnemonic code for generating deterministic keys Reminder for developers Please remember to allow recovery from mnemonic phrases that have invalid checksums (or that you don't have the wordlist) When a checksum is invalid, warn the user that the phrase is not something generated by your app, and ask if they would like to use it anyway. This way, your app only needs to hold the wordlists for your supported languages, but you can recover phrases made by other apps in other languages. However, there should be other checks in place, such as checking to make sure the user is inputting 12 words or more separated by a space. ie. phrase.trim().split(/\\s+/g).length = 12 Removing wordlists from webpack/browserify Browserify/Webpack bundles can get very large if you include all the wordlists, so you can now exclude wordlists to make your bundle lighter. For example, if we want to exclude all wordlists besides chinese simplified, you could build using the browserify command below. This will create a bundle that only contains the chinese simplified wordlist, and it will be the default wordlist for all calls without explicit wordlists. You can also do this in Webpack 5 using the IgnorePlugin . Here is an example of excluding all non-English wordlists This is how it will look in the browser console. For a list of supported wordlists check the wordlists folder. The name of the json file (minus the extension) is the name of the key to access th","default_branch":null,"files":null,"tree":[],"storefront":"/r/bitcoinjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bitcoinjs/bip39/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}