JeremyRubin / bitcoin_hashes

Simple library which implements a few hashes and does nothing else

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Status

Bitcoin Hashes Library

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

Documentation

Minimum Supported Rust Version (MSRV)

This library should always compile with any combination of features on Rust 1.29. However, due to some dependencies breaking their MSRV in patch releases, you may need to pin these deps explicitly, e.g. with the following commands

cargo generate-lockfile
cargo update -p serde_json --precise "1.0.39"

Contributions

Contributions are welcome, including additional hash function implementations.

About

Simple library which implements a few hashes and does nothing else

License:Other


Languages

Language:Rust 98.4%Language:Shell 1.6%Language:RPC 0.1%