rust-bitcoin-unsafe-fast/bitcoin/examples
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
..
bip32.rs changing docs and examples to use reference to slice in `derive_pub` 2023-02-21 14:34:14 -03:00
ecdsa-psbt.rs changing docs and examples to use reference to slice in `derive_pub` 2023-02-21 14:34:14 -03:00
handshake.rs Add a workspace to the top level directory. 2022-09-13 08:44:57 +10:00
taproot-psbt.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00