rust-bitcoin-unsafe-fast/hashes/src
Tobin C. Harding 161273b209
Re-name hash inner/byte methods
Currently we have an associated type on hash types `Inner` with
accompanying methods `into_inner`, `from_inner`, `as_inner`. Also, we
provide a way to create new wrapped hash types. The use of 'inner'
becomes ambiguous with the addition of wrapped types because the inner
could be the inner hash type or the `Inner` byte array of the inner
wrapped hash type.

In an effort to make the API more clear and uniform do the following:

- Rename `Inner` -> `Bytes`
- Rename `*_inner` -> `*_byte_array`
- Rename the inner hash to/from methods to `*_raw_hash`

Correct method prefix `into_` -> `to_` because theses methods convert
owned `Copy` types.

Add the trait Bound `Copy` to the `Bytes` type because we rely on this
trait bound for the conversion methods to be correctly named according
to convention.

Because of the dependency hole created by `secp256k1` this patch changes
the secp dependency to a git tag dependency that includes changes to the
hashes calls required so that we can get green lights on CI in this
repo.
2023-02-27 14:23:58 +11:00
..
cmp.rs Import bitcoin_hashes crate into hashes 2022-11-08 08:58:09 +11:00
error.rs Remove FromHex for all types except Vec and array 2023-02-01 08:26:46 +11:00
hash160.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
hex.rs hashes: Improve feature gating 2023-02-14 06:23:56 +11:00
hmac.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
impls.rs hashes: Implement std::error::Error 2023-02-01 08:22:46 +11:00
internal_macros.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
lib.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
ripemd160.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
serde_macros.rs Import bitcoin_hashes crate into hashes 2022-11-08 08:58:09 +11:00
sha1.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
sha256.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
sha256d.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
sha256t.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
sha512.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
sha512_256.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
siphash24.rs Use fully qualified path in macro 2023-02-01 08:22:46 +11:00
util.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00