Skip to content

Instantly share code, notes, and snippets.

@normanzb
Last active December 29, 2015 12:59
Show Gist options
  • Select an option

  • Save normanzb/7673817 to your computer and use it in GitHub Desktop.

Select an option

Save normanzb/7673817 to your computer and use it in GitHub Desktop.
generate vanity bitcoin addr
!function(){
for(var i = 0; i < 66999;i++){
var key = new Bitcoin.ECKey(false);
var bitcoinAddress = key.getBitcoinAddress();
var privateKeyWif = key.getBitcoinWalletImportFormat();
var testkey = bitcoinAddress.toLowerCase();
if (
testkey.indexOf('norm') == 1 ||
testkey.indexOf('hongyu') == 1 ||
testkey.indexOf('shabi') == 1 ||
testkey.indexOf('shit') == 1 ||
testkey.indexOf('crap') == 1 ||
testkey.indexOf('fuck') == 1 ||
testkey.indexOf('money') == 1 ||
testkey.indexOf('html') == 1 ||
testkey.indexOf('java') == 1 ||
testkey.indexOf('akb48') == 1 ||
testkey.indexOf('git') == 1 ||
testkey.indexOf('bit') == 1 ||
testkey.indexOf('icon') == 1 ||
testkey.indexOf('nerd') == 1 ||
testkey.indexOf('geek') == 1
) {
console.log('found');
document.getElementById("btcaddress").innerHTML = bitcoinAddress;
document.getElementById("btcprivwif").innerHTML = privateKeyWif;
return;
}
}
console.log('not found')
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment