rust-bitcoin-unsafe-fast/bitcoin/examples
Tobin C. Harding 6b7d02e5ae
Add inherent functions to hashes
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.
2024-06-14 10:17:00 +10:00
..
bip32.rs bip32: derive_xpriv should not return a Result 2024-05-13 20:43:49 +00:00
ecdsa-psbt-simple.rs Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
ecdsa-psbt.rs examples: drop a couple allocations 2024-05-27 12:54:22 +00:00
handshake.rs Fix new nightly warnings/errors 2024-02-21 14:13:49 +11:00
sighash.rs Header change from arguments to parameters 2024-05-22 13:12:44 +01:00
sign-tx-segwit-v0.rs Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
sign-tx-taproot.rs Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
taproot-psbt-simple.rs Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
taproot-psbt.rs bip32: derive_xpriv should not return a Result 2024-05-13 20:43:49 +00:00