Skip to content

Generate CSC Vanity Addresses (Wallets) on your local computer, offline

License

Notifications You must be signed in to change notification settings

luschka1/CSC-vanity-generator

 
 

Repository files navigation

CSC Vanity address (wallet) generator

A vanity address is a wallet address containing a few characters you like at the beginning or the end of the wallet address. Of course we can't just generate the address: the address is a derivative from a secret key. So: this tool generates several secret keys per second. The script will test the derived wallet address against one or more keywords you can supply.

How to use this tool

  1. Make sure you have nodejs installed on your computer, version 6.x or greater: https://www.npmjs.com/get-npm. (nodejs allowes you to run Javascript code on your computer from the commandline).
  2. Download the source of this repository (using git clone or by downloading the zip)
  3. Start your command line and go to the folder containing the source of this repository
  4. Install the dependency (casinocoin-libjs) by running npm install casinocoin-libjs
  5. Disconnect from the Internet (to run fully offline)
  6. Fire up the tool and append the keywords you are looking for:
node cscwallet.js bob csc moon jim

The example command above will search for wallet addresses containing either bob, csc, moon or jim.

Demo of install and wallet generation

EDIT: January 2nd:

Added new file. cscwallet_any.js to allow searching in any position in the wallet address.

node cscwallet_any.js bob csc moon jim

Notes

  • This script 'cscwallet.js' will look for your keywords at the beginning or at the end of CSC wallet addresses.
  • This script 'cscwallet_any.js' will look for your keywords at any position of CSC wallet addresses.
  • This script will look for matches, case insensitive.
  • The longer the keyword you are looking for, the longer it takes to find a match.
  • If you want to be make sure the generated wallets + keys are safe, generate offline.

Security / randomness

Serious question. How do we know these addresses are random and not some sort of sequence?

Good question indeed. The only way to be sure is to check the code;

My code is over here and as you can see it is invoking the method "api.generateAddress()" - and as you can see on line 1 and 2:

const CasinocoinAPI  = require('casinocoin-libjs').CasinocoinAPI
const api = new CasinocoinAPI()

... I use casinocoin-libjs to do this. casinocoin-libjs is from Casinocoin (the foundation) - this code is open source as well.

This is how they generate a keypair. They use their own lib casinocoin-libjs-keypairs to do this. The function is on line 16 over here and at line 18 you can see they use the brorand lib. to generate the randomness. This lib. uses the crypto object, a native NodeJS object, by invoking:

crypto.randomBytes()

More info about this method over here.

Feeling generous?

Tips are highly appreciated at CSC address: cHoDLvFcHH7dHUBaDXP8KwTL5obDdKQhez

About

Generate CSC Vanity Addresses (Wallets) on your local computer, offline

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%