This commit is contained in:
dabura667 2015-10-04 00:44:49 +09:00
parent 52e5a218e4
commit b97c718164
1 changed files with 2 additions and 2 deletions

View File

@ -10,9 +10,9 @@ JavaScript implementation of [Bitcoin BIP39](https://github.com/bitcoin/bips/blo
***Please remember to allow recovery from mnemonic phrases that have invalid checksums (or that you don't have the wordlist)*** ***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.*** 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`*** 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`
## Usage ## Usage