rust-bitcoin-unsafe-fast/bitcoin
Andrew Poelstra a458461a6b
Merge rust-bitcoin/rust-bitcoin#2004: psbt: Add IndexOutOfBounds error
66d5800ac0 psbt: Add IndexOutOfBounds error (Tobin C. Harding)

Pull request description:

  We currently have a bunch of functions that are infallible if the `index` argument is within-bounds however we return a `SignError`, this obfuscates the code.

  Add an `IndexOutOfBoundsError`. While we are at it make it an enum so users can differentiate between which vector the out of bounds access was attempted against.

ACKs for top commit:
  sanket1729:
    utACK 66d5800ac0. This is a clean improvement over existing code.
  apoelstra:
    ACK 66d5800ac0

Tree-SHA512: fa8a24990d1dcdab0c9b019fb2387b5a518b02d0a65715f0ab62519894b19c0c74750d3dcdc928626fa68b146038b907d79de3ba9712c9287db8fa64693ebc11
2023-08-25 13:58:06 +00:00
..
contrib hashes: Bump version to 0.13.0 2023-08-24 12:25:42 +10:00
embedded Add patch section to test crates 2023-07-18 10:27:48 +10:00
examples Merge rust-bitcoin/rust-bitcoin#2019: Rename xpub and xpriv types 2023-08-25 13:41:50 +00:00
src Merge rust-bitcoin/rust-bitcoin#2004: psbt: Add IndexOutOfBounds error 2023-08-25 13:58:06 +00:00
tests Rename xpub and xpriv types 2023-08-22 13:47:35 +10:00
CHANGELOG.md Add changelo entry for removal of FromHex 2023-05-18 14:18:42 +10:00
Cargo.toml hashes: Bump version to 0.13.0 2023-08-24 12:25:42 +10:00
build.rs Remove rust_v_1_46 2023-03-23 08:27:10 +11:00