rust-bitcoin-unsafe-fast/bitcoin/src
Andrew Poelstra 72ce271b6b
Merge rust-bitcoin/rust-bitcoin#2852: Add inherent functions to hashes
18b2788a5a api: Run just check-api (Tobin C. Harding)
6b7d02e5ae Add inherent functions to hashes (Tobin C. Harding)

Pull request description:

  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.

ACKs for top commit:
  apoelstra:
    ACK 18b2788a5a

Tree-SHA512: 6b7a8d8a8501e981416d767040e5bd9fa8d1134be2ca133b5c53aa55f65c8456dccb63b642e30d0d571ca838c6f9eaeff6527d92a9b4212819a49ce619c4e093
2024-06-14 16:30:52 +00:00
..
address Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
blockdata Merge rust-bitcoin/rust-bitcoin#2852: Add inherent functions to hashes 2024-06-14 16:30:52 +00:00
consensus Update bitcoinconsensus version 2024-06-11 14:31:32 +01:00
crypto Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
merkle_tree Merge rust-bitcoin/rust-bitcoin#2852: Add inherent functions to hashes 2024-06-14 16:30:52 +00:00
p2p Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
psbt Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
taproot Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
bip32.rs Merge rust-bitcoin/rust-bitcoin#2585: Improve array macros 2024-05-28 16:25:59 +00:00
bip152.rs Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
bip158.rs Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
hash_types.rs Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
internal_macros.rs Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
lib.rs bitcoin: Use new BlockHeight and BlockInterval types 2024-05-30 16:49:30 +10:00
network.rs Minimize usage of Network in public API 2024-04-03 13:32:39 +11:00
policy.rs Removed //! spare line at end of headers 2024-05-16 09:59:55 +01:00
pow.rs Merge rust-bitcoin/rust-bitcoin#2852: Add inherent functions to hashes 2024-06-14 16:30:52 +00:00
serde_utils.rs Removed //! spare line at end of headers 2024-05-16 09:59:55 +01:00
sign_message.rs Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
test_macros.rs Removed //! spare line at end of headers 2024-05-16 09:59:55 +01:00