rust-bitcoin-unsafe-fast/bitcoin/src
Andrew Poelstra a124ff41c4
Merge rust-bitcoin/rust-bitcoin#2473: Upgrade to `hex v0.2.0`
f337dec2b1 hashes: Remove unnecessary feature guard from test (Tobin C. Harding)
0cea90d505 Test hashes honour Formatter::precision (Tobin C. Harding)
4bfb466bb9 Upgrade hex dependency (Tobin C. Harding)
f0558e8eb9 Use fmt_hex_exact (Tobin C. Harding)
6820f51408 hashes: Add fmt roundtrip tests (Tobin C. Harding)
e302e30e7c Import with super::* in unit test (Tobin C. Harding)

Pull request description:

  Upgrade to use the newly released `hex` code.

  - Patch 1: Does trivial preparatory cleanup
  - Patch 2: Adds some unit tests to check we roundtrip hashes correctly (added because in the test PR I had the `Midstate` iml wrong and it was not being caught).
  - Patch 3: Uses macro in place of `forward_hex` and `backward_hex` - needs concept review, I hacked this without understanding why the functions existed in the first place.
  - Patch 4: Does the upgrade, I've attempted to make minimal changes, so there is room for a bunch of cleanups if/when this merges.
  - Patch 5: Adds a unit test to verify that we can close #2494
  - Patch 6: Removes unnecessary feature gate from unit test.

ACKs for top commit:
  Kixunil:
    ACK f337dec2b1
  apoelstra:
    ACK f337dec2b1

Tree-SHA512: 7913d1b3079cf5ba1b0e70f5c33e091c5ef1258026c8f27bbe8a050100bbc7622b6555d560b15be3b3d90d47ce873f137a73cf2d772108d2915fb30ed129bded
2024-03-11 21:01:24 +00:00
..
address Implement infallible for errors 2024-03-08 16:48:34 +11:00
blockdata Merge rust-bitcoin/rust-bitcoin#2473: Upgrade to `hex v0.2.0` 2024-03-11 21:01:24 +00:00
consensus Upgrade hex dependency 2024-03-10 10:35:01 +11:00
crypto Upgrade hex dependency 2024-03-10 10:35:01 +11:00
merkle_tree Implement infallible for errors 2024-03-08 16:48:34 +11:00
p2p Add ServiceFlags::P2P_V2 2024-03-08 15:07:34 -05:00
psbt Upgrade hex dependency 2024-03-10 10:35:01 +11:00
taproot Upgrade hex dependency 2024-03-10 10:35:01 +11:00
bip32.rs Implement infallible for errors 2024-03-08 16:48:34 +11:00
bip152.rs Implement infallible for errors 2024-03-08 16:48:34 +11:00
bip158.rs Implement infallible for errors 2024-03-08 16:48:34 +11:00
error.rs Do infallible int from hex conversions 2024-02-27 10:40:52 +11:00
hash_types.rs Add deprecation comment to hash_types module 2023-12-05 15:01:18 +11:00
internal_macros.rs Make from_hex inherent for byte-like types 2024-02-22 09:16:31 +11:00
lib.rs Merge rust-bitcoin/rust-bitcoin#2492: Remove the FromHexStr trait 2024-03-07 14:36:53 +00:00
network.rs Add ServiceFlags::P2P_V2 2024-03-08 15:07:34 -05:00
parse.rs Merge rust-bitcoin/rust-bitcoin#2492: Remove the FromHexStr trait 2024-03-07 14:36:53 +00:00
policy.rs bitcoin: Remove attribution from all files 2023-05-01 09:22:48 +10:00
pow.rs Do infallible int from hex conversions 2024-02-27 10:40:52 +11:00
serde_utils.rs Fix new nightly warnings/errors 2024-02-21 14:13:49 +11:00
sign_message.rs Implement infallible for errors 2024-03-08 16:48:34 +11:00
test_macros.rs bitcoin: Remove attribution from all files 2023-05-01 09:22:48 +10:00