Skip to content

Simple library which implements a few hashes and does nothing else

License

Notifications You must be signed in to change notification settings

TheBlueMatt/bitcoin_hashes

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 98.3%
  • Shell 1.6%
  • RPC 0.1%