Skip to content

A repository for mass public-private key generation (Bitcoin & Ethereum).

License

Notifications You must be signed in to change notification settings

pcaversaccio/mass-key-generation

Repository files navigation

Mass Public Private Key Generation (Bitcoin & Ethereum)

The address generation works by creating a new ECDSA keypair. The address can be derived from the public key. The private key allows to spend any funds sent to this address.

Building

./gradlew assembleDist

will generate a tokenapp-keygeneration-1.1.zip and tokenapp-keygeneration-1.1.tar in build/distributions.

Usage

The tool generates an arbitrary amount of ECDSA keypairs and saves them into two files: secret.csv and public.csv.

Unpack the application and run:

unzip tokenapp-keygeneration-1.1.zip
cd tokenapp-keygeneration/bin
./tokenapp-keygeneration/bin -n numberOfKeypairs

Example

./tokenapp-keygeneration -n 1000

Runtime for 10'000'000 keypairs is expected to be around 2 hours on modern hardware.

Output

The secret.csv contains the following fiels

  • btcPrivate: The 32 byte private key in hex format for the bitcoin address
  • btcPublic: The 32 byte public key in hex format for the bitcoin address
  • ethPrivate: The 32 byte private key in hex format for the ethereum address
  • ethPublic: The 64 byte public key in hex format for the ethereum address

The public.csv contains the following fields

  • btcPublic: The 32 byte public key in hex format for the bitcoin address
  • ethPublic: The 64 byte public key in hex format for the ethereum address

Releases

No releases published

Packages

No packages published

Languages