From be6ba9a836bebfb245c0d139436e728296485e5e Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Sat, 27 Sep 2014 21:50:48 +1000 Subject: mnemonic.normalizeString method made public --- bip39-standalone.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bip39-standalone.html') diff --git a/bip39-standalone.html b/bip39-standalone.html index 41634c2..b062b2e 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html @@ -22432,14 +22432,14 @@ var Mnemonic = function(language) { self.toSeed = function(mnemonic, passphrase) { passphrase = passphrase || ''; - mnemonic = normalizeString(mnemonic) - passphrase = normalizeString(passphrase) + mnemonic = self.normalizeString(mnemonic) + passphrase = self.normalizeString(passphrase) passphrase = "mnemonic" + passphrase; //return PBKDF2(mnemonic, 'mnemonic' + passphrase, iterations=PBKDF2_ROUNDS, macmodule=hmac, digestmodule=hashlib.sha512).read(64) return asmCrypto.PBKDF2_HMAC_SHA512.hex(mnemonic, passphrase, PBKDF2_ROUNDS, 512/8); } - function normalizeString(str) { + self.normalizeString = function(str) { if (typeof str.normalize == "function") { return str.normalize("NFKD"); } -- cgit v1.2.3