rust-bitcoin-unsafe-fast/hashes/embedded
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
..
src Make `hash_newtype` evocative of the output 2023-02-22 14:35:50 +01:00
Cargo.toml Import bitcoin_hashes crate into hashes 2022-11-08 08:58:09 +11:00
memory.x Import bitcoin_hashes crate into hashes 2022-11-08 08:58:09 +11:00