crypto-key-tool

Crates.iocrypto-key-tool
lib.rscrypto-key-tool
version0.2.3
sourcesrc
created_at2024-11-05 21:46:36.089995
updated_at2024-11-06 01:33:19.885743
descriptionA tool for interacting with bitcoin keys and addresses
homepage
repositoryhttps://github.com/nullren/crypto-key-tool
max_upload_size
id1437191
size27,240
Renning Bruns (nullren)

documentation

README

crypto-key-tool

This is a simple CLI to verify Bitcoin keys and their addresses.

Usage: crypto-key-tool [OPTIONS] --private-key <PRIVATE_KEY>

Options:
  -p, --private-key <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 <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 versa

Are 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

cargo install crypto-key-tool
Commit count: 41

cargo fmt