rust-bitcoin-unsafe-fast/bitcoin
Tobin C. Harding d094350230
hashes: Modify trait bounds
Currently we require indexing trait bounds as well as `Borrow` on the
`Hash` trait. We also already implement `AsRef`.

It was observed that `Borrow<[u8]>` does not best describe what we want
from the `Hash` trait implementor but rather `AsRef<[u8]>` does.

Remove all the inexing trait bounds. Remove the `borrow::Borrow<[u8]>`
trait bound. Add a `convert::AsRef<[u8]>` trait bound.

This leaves the `Borrow<[u8]>` implementation for hashes created with
`hash_newtype`, I'm not sure if this should be removed or not.
2024-05-06 13:48:26 +10:00
..
contrib CI: Re-write run_task.sh 2024-04-26 09:41:51 +10:00
embedded base58: Re-name crate to base58ck 2024-03-19 09:00:46 +11:00
examples fix(typo): examples/ecdsa-psbt.rs 2024-05-01 17:56:11 -03:00
src hashes: Modify trait bounds 2024-05-06 13:48:26 +10:00
tests chore: format and standardize all markdowns files 2024-04-27 06:29:23 -03:00
CHANGELOG.md bitcoin: Bump version to 0.32.0-rc1 2024-04-05 08:10:08 +11:00
Cargo.toml bitcoin: Upgrade base64 dependency 2024-04-26 09:31:33 +10:00
build.rs Bump MSRV to Rust version 1.56.1 2023-11-23 06:20:02 +11:00