Crate bitcoin_hashes

source ·
Expand description

Rust Hashes Library

This is a simple, no-dependency library which implements the hash functions needed by Bitcoin. These are SHA256, SHA256d, and RIPEMD160. As an ancillary thing, it exposes hexadecimal serialization and deserialization, since these are needed to display hashes anway.

Re-exports

pub use hmac::Hmac;
pub use hmac::HmacEngine;
pub use error::Error;

Modules

Error Type
HASH160 (SHA256 then RIPEMD160)
Hex encoding and decoding
HMAC support
RIPEMD160
SHA1
SHA256
SHA256d
SHA512

Traits

Trait which applies to hashes of all types
A hashing engine which bytes can be serialized into. It is expected to implement the io::Write trait, but to never return errors under any conditions.