rust-bitcoin-unsafe-fast/bitcoin
Andrew Poelstra 3a867ee8ce
Merge rust-bitcoin/rust-bitcoin#1503: Fix wrong newtype APIs
64f7d2549e Fix wrong newtype APIs (Martin Habovstiak)

Pull request description:

  This fixes several API bugs:

  * Use `TryFrom` instead of `From` for fallible conversions
  * Move byte conversion methods from `impl_array_newtype` to `impl_bytes_newtype`
  * Add missing trait impls like `AsRef`, `Borrow`, their mutable versions and infallible conversions from arrays

  Closes #1336

  Notably this change is much less bad than even I expected and some places actually get cleaner than before.

ACKs for top commit:
  tcharding:
    ACK 64f7d2549e
  sanket1729:
    code review ACK 64f7d2549e
  apoelstra:
    ACK 64f7d2549e

Tree-SHA512: 0c5ab19aa1a01ccf34ad1c2f3f66bd003a3142a840cb7cf57e1449e721f6eed1523555c62f0e3391012708767ff86315ff7edce9afd85017a67c61cfe57dddbc
2022-12-30 23:10:39 +00:00
..
contrib Fail CI if docs build throws warnings 2022-11-21 10:35:49 +11:00
embedded Patch hashes and update the code 2022-12-18 14:33:55 +01:00
examples Add `tapscript_leaf_hash()` to `Script` 2022-12-19 08:35:35 +01:00
fuzz Patch hashes and update the code 2022-12-18 14:33:55 +01:00
src Merge rust-bitcoin/rust-bitcoin#1503: Fix wrong newtype APIs 2022-12-30 23:10:39 +00:00
tests Implemented unsized `Script` 2022-12-14 23:21:27 +01:00
CHANGELOG.md add some documentation clarifying the locktime ordering shenanigans in #1330 2022-12-15 23:12:03 +00:00
Cargo.toml Merge rust-bitcoin/rust-bitcoin#1495: Introduce mutation testing 2022-12-24 06:02:48 +00:00
build.rs Implement consensus encoding adapter for serde 2022-12-02 10:48:05 +01:00