rust-bitcoin-unsafe-fast/bitcoin/src
Tobin C. Harding 39f7dcb816
Reduce API surface of tagged wrapped hash types
Recently we made it so that wrapper types created with `hash_newtype`
were not general purpose hash types i.e., one could not easily hash
arbitrary data into them. We would like to do the same for tagged
wrapped hash types.

In `hashes` do:

- Create a new macro `sha256t_tag` that does just the tag/engine stuff
out of the `sha256t_hash_newtype` macro.
- Deprecate the `sha256t_hash_newtype` macro.

In `bitcoin` do:

- Use a combination of `sha256t_tag` and `hash_newtype` to create tagged
wrapped hash types.

Note that we do not add private helper functions `engine` and
`from_engine` to the tagged wrapper types as we do for legacy/segwit in
`sighash`. Can be done later if wanted/needed.
2024-08-22 10:07:58 +10:00
..
address Introduce two extensions traits for ScriptBuf 2024-08-20 09:34:34 +10:00
blockdata Merge rust-bitcoin/rust-bitcoin#3164: Extension traits for `ScriptBuf` 2024-08-20 16:32:29 +00:00
consensus Removed unneeded usages of vec! macro 2024-08-19 10:12:09 +02:00
crypto Reduce API surface of tagged wrapped hash types 2024-08-22 10:07:58 +10:00
merkle_tree Introduce ToU64 conversion trait 2024-08-08 15:32:40 +10:00
network Removed unneeded usages of vec! macro 2024-08-19 10:12:09 +02:00
p2p Removed unneeded usages of vec! macro 2024-08-19 10:12:09 +02:00
psbt Introduce two extensions traits for ScriptBuf 2024-08-20 09:34:34 +10:00
taproot Reduce API surface of tagged wrapped hash types 2024-08-22 10:07:58 +10:00
bip32.rs Merge rust-bitcoin/rust-bitcoin#2889: Move `serde_round_trip` macro to internals 2024-07-08 20:50:23 +00:00
bip152.rs Removed unneeded usages of vec! macro 2024-08-19 10:12:09 +02:00
bip158.rs Removed unneeded usages of vec! macro 2024-08-19 10:12:09 +02:00
consensus_validation.rs Generalize fn params in `define_extension_trait` 2024-08-13 13:13:10 +02:00
hash_types.rs bitcoin: remove all direct use of hashing/engines in unit tests 2024-06-24 13:58:03 +00:00
internal_macros.rs Introduce two extensions traits for ScriptBuf 2024-08-20 09:34:34 +10:00
lib.rs Remove build cfg for versions less than MSRV 2024-08-08 12:03:06 +10:00
policy.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
pow.rs Removed unneeded usages of vec! macro 2024-08-19 10:12:09 +02:00
serde_utils.rs Bump MSRV to 1.63 2024-07-27 07:24:32 +02:00
sign_message.rs Remove wildcard from prelude import 2024-06-28 08:02:43 +01:00