This Go program generates wallets with a specified prefix for the wallet identity. It leverages concurrency to quickly find a wallet that matches the desired prefix using multiple worker goroutines.
- Generates wallets concurrently using worker goroutines.
- Supports specifying a target prefix for the wallet identity.
- Prints the total number of attempts every 1,000,000 tries.
- Exits with an error if no prefix is provided.
- Go 1.20 or later installed on your machine.
github.com/qubic/go-node-connector/types
package installed.
-
Clone the repository:
git clone https://github.com/evoandro/qubic-wallet-generator.git cd qubic-wallet-generator
-
Install dependencies:
go get -u github.com/qubic/go-node-connector/types
To run the program, use the following command, specifying your desired prefix:
go run main.go -prefix YOUR_PREFIX
Replace YOUR_PREFIX
with the desired prefix for the wallet identity.
go run main.go -prefix QUBIC
To build the program, use the following command:
go build -o wallet-generator
After building, you can run the program with the desired prefix as follows:
./wallet-generator -prefix YOUR_PREFIX
Replace YOUR_PREFIX
with the desired prefix for the wallet identity.
./wallet-generator -prefix QUBIC
main()
: Parses the command-line flag for the prefix and initializes worker goroutines. Waits for a wallet result and prints the wallet details.worker()
: A worker function that generates random seeds, creates wallets, and checks if the wallet identity starts with the specified prefix.
The program will exit with an error if no prefix is provided. Ensure to specify the -prefix
flag when running the program.
Contributions are welcome! Please fork the repository and open a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or inquiries, please open an issue or contact the repository owner.