Update jsbip39.js to latest version

This commit is contained in:
Ian Coleman
2018-03-12 11:06:52 +11:00
parent f8ca25c338
commit 0514c20b81
2 changed files with 5 additions and 9 deletions
+2 -9
View File
@@ -149,21 +149,14 @@ var Mnemonic = function(language) {
// Set space correctly depending on the language
// see https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md#japanese
var space = " ";
if (language == "japanese") {
if (language == "japanese" || language == "korean") {
space = "\u3000"; // ideographic space
}
return words.join(space);
}
self.normalizeString = function(str) {
if (typeof str.normalize == "function") {
return str.normalize("NFKD");
}
else {
// TODO decide how to handle this in the future.
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize
return str;
}
return str.normalize("NFKD");
}
function byteArrayToWordArray(data) {