Created
September 25, 2014 12:01
-
-
Save melvincarvalho/00a225c8c5d816a900e4 to your computer and use it in GitHub Desktop.
Vanitygen for bitmark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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