rust-bitcoin-unsafe-fast/bitcoin
Tobin C. Harding 6b7d02e5ae
Add inherent functions to hashes
Currently we have a trait `Hash` that is required for `Hmac`, `Hkdf`,
and other use cases. However, it is unegonomic for users who just want
to do a simple hash to have to import the trait.

Add inherent functions to all hash types including those created with
the new wrapper type macros.

This patch introduces some duplicate code but we are trying to make
progress in the hashes API re-write. We can come back and de-dublicate
later.

Includes making `to_byte_array`,`from_byte_array`, `as_byte_array`, and
`all_zeros` const where easily possible.
2024-06-14 10:17:00 +10:00
..
contrib CI: Remove shebang from non-executable scripts 2024-05-31 10:10:00 +10:00
embedded ci: shellcheck checks 2024-05-11 18:08:53 +00:00
examples Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
src Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
tests Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
CHANGELOG.md bitcoin: Bump version to 0.32.0-rc1 2024-04-05 08:10:08 +11:00
Cargo.toml Update bitcoinconsensus version 2024-06-11 14:31:32 +01:00
build.rs Bump MSRV to Rust version 1.56.1 2023-11-23 06:20:02 +11:00