A CLI tool and Rust library for Bitcoin-related cryptography operations.
- SHA256: Compute SHA256 hash of input data
- RIPEMD160: Compute RIPEMD160 hash of input data
- HASH160: Compute HASH160 (RIPEMD160 of SHA256) of input data
- Key Generation: Generate secp256k1 keypairs
- Address Derivation: Derive P2PKH Bitcoin addresses from public keys
cargo install bitcoin-doAdd to your Cargo.toml:
[dependencies]
bitcoin-do = "0.1.2"Generate a new keypair:
bitcoin-do generate-keyDerive address from public key:
bitcoin-do derive-address 02...Hash some data (hex input):
bitcoin-do sha256 68656c6c6fMIT