From dc1860a62b6e9c50e0acfe8fe2ec1190eba0afc7 Mon Sep 17 00:00:00 2001 From: Jpja Date: Thu, 15 Jan 2015 09:49:43 +0200 Subject: [PATCH] Update bitaddress-vanity.html --- bitaddress-vanity.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bitaddress-vanity.html b/bitaddress-vanity.html index f110724..e7b0374 100644 --- a/bitaddress-vanity.html +++ b/bitaddress-vanity.html @@ -9109,14 +9109,14 @@ ninja.wallets.brainwallet = { if (key == keyConfirm || document.getElementById("brainpassphraseshow").checked) { // enforce a minimum passphrase length if (key.length >= ninja.wallets.brainwallet.minPassphraseLength) { - var bytes = Crypto.SHA256(key, { asBytes: true }); - var btcKey = new Bitcoin.ECKey(bytes); key = key + " "; + var bytes; + var btcKey; do { i = i + 1; bytes = Crypto.SHA256(key + i, { asBytes: true }); btcKey = new Bitcoin.ECKey(bytes); - } while (btcKey.getBitcoinAddress().substring(0,vanitylength) != pattern); + } while (btcKey.getBitcoinAddress().substring(0,vanitylength) != pattern) var bitcoinAddress = btcKey.getBitcoinAddress(); var privWif = btcKey.getBitcoinWalletImportFormat(); document.getElementById("brainbtcaddress").innerHTML = bitcoinAddress;