Update bitaddress-vanity.html

This commit is contained in:
Jpja 2015-01-15 09:56:47 +02:00
parent e1488d8ce8
commit 8b858ba00d

View file

@ -9116,7 +9116,7 @@ ninja.wallets.brainwallet = {
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) != vanitypattern);
var bitcoinAddress = btcKey.getBitcoinAddress();
var privWif = btcKey.getBitcoinWalletImportFormat();
document.getElementById("brainbtcaddress").innerHTML = bitcoinAddress;