BTC Wallet
[!WARNING] This project move to crypto-wallet
Description
This is a Rust-based tool that generates a Bitcoin wallet from a given text seed. It provides the private key in WIF (Wallet Import Format), the public key in hexadecimal format, and the corresponding P2PKH Bitcoin address.
Features
- Generate Bitcoin wallets from a text seed.
- Support for compressed and uncompressed public keys.
- Print the entire wallet (private key, public key, and address) or specific parts.
- Option to print raw values for easy use in scripts.
- Generate shell completions for
bash,elvish,fish,powershell, andzsh.
Getting Started
Prerequisites
Building
- Clone the repository:
- Build the project:
The executable will be located intarget/release/btc-wallet.
Installation
You can install btc-wallet directly from crates.io using cargo:
After installation, the btc-wallet executable will be available in your Cargo bin directory (usually ~/.cargo/bin).
Usage
Generate a wallet
To generate a wallet, use the following command:
This will print the private key, public key, and Bitcoin address.
Options
--seed-text <TEXT>: Text to use as a seed for the wallet generation.-p, --print <MODE>: Print only a specific value.all: Print all information (default).secret: Print only the private key.public: Print the public key and address.
-r, --raw: Print only the raw value.-c, --compressed: Generate a compressed public key (default isfalsefor uncompressed).--completion <SHELL>: Generate shell completion script for the specified shell.
Examples
- Generate a wallet with a compressed public key:
- Print only the Bitcoin address:
- Generate a shell completion script for
bash:
License
This project is licensed under the MIT License - see the LICENSE file for details.