Crate utxo_detective_cryptography

Source
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§

pub use ripemd160::*;
pub use sha256::*;

Modules§

ripemd160
sha256

Structs§

Hash
Provides Bitcoin-compatible cryptographic hash functions