Skip to content

Instantly share code, notes, and snippets.

@melvincarvalho
Created September 25, 2014 12:01
Show Gist options
  • Select an option

  • Save melvincarvalho/00a225c8c5d816a900e4 to your computer and use it in GitHub Desktop.

Select an option

Save melvincarvalho/00a225c8c5d816a900e4 to your computer and use it in GitHub Desktop.
Vanitygen for bitmark
var bitcore = require('bitcore');
// loop here
var password = 'loop here';
var privateKey = bitcore.util.sha256(password);
var key = new bitcore.Key();
key.private = privateKey;
key.regenerateSync();
var hash = bitcore.util.sha256ripe160(key.public);
var version = 85;
var addr = new bitcore.Address(version, hash);
console.log( password + ' ' + addr.toString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment