Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcaversaccio/mass-key-generation
A repository for mass public-private key generation (Bitcoin & Ethereum).
https://github.com/pcaversaccio/mass-key-generation
bitcoin bitcoin-address ecdsa-keypairs ethereum ethereum-address private-key wallet
Last synced: 15 days ago
JSON representation
A repository for mass public-private key generation (Bitcoin & Ethereum).
- Host: GitHub
- URL: https://github.com/pcaversaccio/mass-key-generation
- Owner: pcaversaccio
- License: mit
- Created: 2020-10-19T14:53:50.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-01T11:30:19.000Z (almost 2 years ago)
- Last Synced: 2024-10-13T23:06:34.614Z (about 1 month ago)
- Topics: bitcoin, bitcoin-address, ecdsa-keypairs, ethereum, ethereum-address, private-key, wallet
- Language: Java
- Homepage:
- Size: 56.6 KB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
./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:
```bash
unzip tokenapp-keygeneration-1.1.zip
cd tokenapp-keygeneration/bin
./tokenapp-keygeneration/bin -n numberOfKeypairs
```### Example
```bash
./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 addressThe `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