Crate bitcoin_hashes[−][src]
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
Modules
Useful comparison functions.
Error Type
HASH160 (SHA256 then RIPEMD160)
Hex encoding and decoding
HMAC support
RIPEMD160
Macros for serde trait impls, and supporting code
SHA1
SHA256
SHA256d
SHA256t (tagged SHA256)
SHA512
SipHash 2-4
Macros
Adds slicing traits implementations to a given type $ty
Create a new newtype around a Hash type.
Adds hexadecimal formatting implementation of a trait $imp
to a given type $ty
Adds core::ops::Index
trait implementation to a given type $ty
Does an “empty” serde implementation for the configuration without serde feature
Macro used to define a newtype tagged hash. It creates two public types:
Traits
Trait which applies to hashes of all types
A hashing engine which bytes can be serialized into