rust-bitcoin-unsafe-fast/bitcoin/src
Martin Habovstiak 06f1f027ab Make `hash_newtype` evocative of the output
The API guidelines say macro input should be evocative of the output.
`hash_newtype` didn't have this property.

This change makes it look exactly like the resulting struct, `$len`
parameter was removed since it's not needed, reversing is controlled
using an attribute. The macro is also better documented and ready to be
extended in the future.

The tagged SHA256 newtype is not yet modified because it has a more
complicated input parameters.

Closes #1648
2023-02-22 14:35:50 +01:00
..
blockdata Clarify the intention of strange condition 2023-02-20 19:40:19 +01:00
consensus Improve Psbt error handling 2023-01-17 16:43:39 -05:00
crypto Make `hash_newtype` evocative of the output 2023-02-22 14:35:50 +01:00
merkle_tree Get rid of BadFormat error 2023-02-20 12:53:57 +01:00
network Merge rust-bitcoin/rust-bitcoin#1593: hashes: Implement AsRef for fixed size arrays 2023-02-17 13:24:57 +00:00
psbt Rename schnorr module to taproot 2023-02-20 12:58:09 +11:00
util Move base58 module to crate root 2022-12-01 09:56:33 +11:00
address.rs Move taproot keys to the keys module 2023-02-20 12:58:05 +11:00
amount.rs Make max/min_value functions const 2023-01-31 08:35:32 +11:00
base58.rs Replace `Vec::from_hex` with `hex!` 2022-12-31 21:10:19 +01:00
bip32.rs Add new hex parse error variant 2023-01-28 07:53:47 +11:00
bip152.rs Do not export unusual hash types at crate root 2023-02-04 13:34:20 +11:00
bip158.rs Merge rust-bitcoin/rust-bitcoin#1579: Fix license on bip158 module 2023-02-12 21:33:47 +00:00
error.rs Move util::Error to error module 2022-11-16 10:42:30 +11:00
hash_types.rs Make `hash_newtype` evocative of the output 2023-02-22 14:35:50 +01:00
internal_macros.rs Remove hex_from_slice and display Sighash forwards 2023-02-01 08:26:46 +11:00
lib.rs Rename schnorr module to taproot 2023-02-20 12:58:09 +11:00
parse.rs Add `Weight` and `FeeRate` newtypes 2023-02-08 23:17:30 +01:00
policy.rs Add a workspace to the top level directory. 2022-09-13 08:44:57 +10:00
pow.rs pow: Remove Mul/Div by arbitrary integer types 2023-02-14 11:50:46 +11:00
serde_utils.rs Use marker type to enforce validation of `Address`'s network 2023-01-11 19:27:10 +08:00
sign_message.rs Remove `ToHex` 2023-01-07 19:50:03 +01:00
string.rs impl FromHexStr for structs with single u32 member 2022-12-11 00:01:58 -05:00
taproot.rs Make `hash_newtype` evocative of the output 2023-02-22 14:35:50 +01:00
test_macros.rs Add a workspace to the top level directory. 2022-09-13 08:44:57 +10:00