rust-bitcoin-unsafe-fast/hashes
merge-script 436de8ef12
Merge rust-bitcoin/rust-bitcoin#4297: chore: remove unused serde_json dep
6ba0e46b53 chore: remove unused serde_json dep (lfg2)

Pull request description:

  checked by [shear](https://github.com/boshen/cargo-shear)
  ```
  bitcoin_hashes -- hashes/Cargo.toml:
    serde_json

  Fixed 1 dependencies!
  ```

  cargo +nightly build  in local env is ok, local cargo.lock  is ok(not include serde_json) so no need update cargo.lock
  ```
  [[package]]
  name = "bitcoin_hashes"
  version = "0.16.0"
  dependencies = [
   "bitcoin-internals",
   "hex-conservative 0.3.0",
   "serde",
   "serde_test",
  ]
  ```

  but check CI seems need update
  `error: the lock file /home/runner/work/rust-bitcoin/rust-bitcoin/Cargo.lock needs to be updated but --locked was passed to prevent this
  If you want to try to generate the lock file without accessing the network, remove the --locked flag and use --offline instead.`

ACKs for top commit:
  Kixunil:
    ACK 6ba0e46b53
  apoelstra:
    ACK 6ba0e46b53fbc9d6ea0c3e23a553920581930e75; successfully ran local tests

Tree-SHA512: 68a444e05876733af9606d4489ca30a18c9d3439dedf932e40db67dcfdb5ae40ab0f8cf937146f6b1ef92edc626dcb27a441b63c283e6945aa8071500bcc43a4
2025-03-30 21:23:45 +00:00
..
contrib Invert dependency between io and hashes 2025-02-11 09:17:21 +11:00
embedded refactor: use path dependencies for workspace members in bitcoin/Cargo.toml 2025-03-27 12:55:16 +08:00
src 2025-03-30 automated rustfmt nightly 2025-03-30 01:27:51 +00:00
tests Bound HmacEngine on HashEngine 2025-03-06 11:47:26 +11:00
CHANGELOG.md hashes: fix typo 2024-12-23 20:44:18 +08:00
Cargo.toml chore: remove unused serde_json dep 2025-03-30 23:35:18 +08:00
README.md Typo fix in: README.md 2025-02-27 12:40:30 +03:00

README.md

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 ancillary thing, it exposes hexadecimal serialization and deserialization, since these are needed to display hashes anyway.

Documentation

Minimum Supported Rust Version (MSRV)

This library should always compile with any combination of features on Rust 1.63.0.

Contributions

Contributions are welcome, including additional hash function implementations.

Githooks

To assist devs in catching errors before running CI we provide some githooks. If you do not already have locally configured githooks you can use the ones in this repository by running, in the root directory of the repository:

git config --local core.hooksPath githooks/

Alternatively add symlinks in your .git/hooks directory to any of the githooks we provide.

Running Benchmarks

We use a custom Rust compiler configuration conditional to guard the benchmark code. To run the benchmarks use: RUSTFLAGS='--cfg=bench' cargo +nightly bench.