rust-bitcoin-unsafe-fast/bitcoin
Tobin C. Harding 195615c14d
Fix bug in witness stack getters
In #2646 we introduced a bug in the taproot witness stack getter
functions, of which we have three:

- `tapscript`
- `taproot_control_block`
- `taproot_annex`

Each returns `Some` if a possible bytes slice is found (with no other
guarantees).

Use `taproot_annex` combined with getters from `primitives` to implement
the other two getters. This simplifies the code and fixes the bug.

Add an additional getter to `primitives` `Witness::third_from_last`.

Fix: #3598
2024-11-13 10:55:51 +11:00
..
contrib Remove the SliceIndex implementation from hash types 2024-10-02 10:18:45 +10:00
embedded Move opcodes to primitives 2024-07-09 15:26:33 +10:00
examples Standardize wording to `constructs a new` 2024-11-05 13:02:26 +00:00
src Fix bug in witness stack getters 2024-11-13 10:55:51 +11:00
tests script: deprecate to_bytes 2024-11-01 07:09:53 +11:00
CHANGELOG.md bitcoin: Add some upgrade notes 2024-10-27 07:02:30 +11:00
Cargo.toml Bump hex-conservative to 0.3.0 2024-10-31 03:36:22 +00:00