rust-bitcoin-unsafe-fast/hashes/src
merge-script c50796c238
Merge rust-bitcoin/rust-bitcoin#2981: Remove to/from/as_raw_hash functions
2b56f763d0 hashes: Remove to/from/as_raw_hash (Tobin C. Harding)

Pull request description:

  In an effort to shrink the API of `hashes` remove the `from_raw_hash`, `to_raw_hash`, and `as_raw_hash` inherent functions from types created with the `hash_newtype` macro.

  There are a few reasons why this is favourable:

  - It allows stable crates to use the macro and not expose unstable `hashes` types in their API.
  - It makes types created with the macro less "general" in the sense that its more obscure to just hash any data into them. This allows us to write cleaner APIs in `rust-bitcoin`.

ACKs for top commit:
  Kixunil:
    ACK 2b56f763d0
  apoelstra:
    ACK 2b56f763d0

Tree-SHA512: 3d73aa8250dd775994623c9201dd819256acf2ec82526b3537da74c9e19c2ac5e8bba358a2171f7b02342804cb6b4d5ac4dca88d912b3d46d14e3bc35dd5cb91
2024-07-15 13:53:37 +00:00
..
cmp.rs hashes: Introduce SPDX license identifiers 2023-05-01 09:26:36 +10:00
hash160.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
hkdf.rs 2024-07-07 automated rustfmt nightly 2024-07-07 01:10:59 +00:00
hmac.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
impls.rs hashes: Strongly type the hash160::HashEngine 2024-07-09 13:30:20 +10:00
internal_macros.rs hashes: Use $crate in macro 2024-07-12 12:55:22 +10:00
lib.rs Merge rust-bitcoin/rust-bitcoin#2981: Remove to/from/as_raw_hash functions 2024-07-15 13:53:37 +00:00
ripemd160.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
serde_macros.rs Removed //! spare line at end of headers 2024-05-22 12:00:25 +01:00
sha1.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
sha256.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
sha256d.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
sha256t.rs hashes: stop exposing engine/from_engine and general hashing methods in hash_newtype 2024-06-24 13:58:05 +00:00
sha384.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
sha512.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
sha512_256.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
siphash24.rs Remove midstate from the GeneralHash and HashEngine traits 2024-07-13 07:59:33 +10:00
util.rs hashes: Remove to/from/as_raw_hash 2024-07-14 05:03:36 +10:00