Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nullren/crypto-key-tool
https://github.com/nullren/crypto-key-tool
Last synced: about 14 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/nullren/crypto-key-tool
- Owner: nullren
- License: mit
- Created: 2024-11-04T22:50:25.000Z (16 days ago)
- Default Branch: main
- Last Pushed: 2024-11-05T21:51:16.000Z (15 days ago)
- Last Synced: 2024-11-05T22:12:59.522Z (15 days ago)
- Language: Rust
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crypto-key-tool
This is a simple CLI to verify Bitcoin keys and their addresses.
```
Usage: crypto-key-tool [OPTIONS] --private-keyOptions:
-p, --private-key The private key to parse must be in either mini private key format, WIF, or a raw key in hex
-c, --compressed Whether the public key is compressed or not
-n, --network Which network to generate public address for [default: mainnet] [possible values: mainnet, testnet]
-h, --help Print help
```Why would I want this? Well, a few reasons:
- you have a raw private key and want to know the public address
- you have a mini private key and want to know the WIF key
- you have a WIF key in an uncompressed format and want to convert it to a compressed format
- you have a WIF key in a compressed format and want to convert it to an uncompressed format
- you have a key for testnet and want to use it in mainnet or vice versaAre they good reasons? Maybe not. It's not the most important piece of software.
## Installation
Install from crates.io, https://crates.io/crates/crypto-key-tool
```bash
cargo install crypto-key-tool
```