Expand description
Bitcoin-compatible cryptographic primitives
This crate provides cryptographic functions commonly used in Bitcoin, including:
- SHA256 hashing
- Double SHA256 (SHA256d) hashing
- RIPEMD160 hashing
§Examples
use utxo_detective_cryptography::Hash;
// Simple SHA256 hash
let input = b"hello world";
let hash = Hash::sha256(input);
// Double SHA256 (commonly used in Bitcoin)
let double_hash = Hash::sha256d(input);
// RIPEMD160 hash
let ripemd_hash = Hash::ripemd160(input);
Re-exports§
Modules§
Structs§
- Hash
- Provides Bitcoin-compatible cryptographic hash functions