rust-bitcoin-unsafe-fast/bitcoin
Erick Cestari 3ca3218c23 witness: Improve element access methods with get() and get_back()
Enhance Witness struct element access methods:

- Rename `nth()` to `get()` for clearer slice-like element retrieval
- Introduce `get_back()` method for flexible reverse indexing
- Remove redundant `second_to_last()` and `third_to_last()` methods
- Add `#[track_caller]` to index implementation for better error tracking
- Update all references to use new method names
- Improve documentation with usage examples

The changes provide a more intuitive and consistent approach to
accessing witness elements.
2025-03-04 12:16:48 -03:00
..
contrib Remove rust-ordered dependency 2025-02-18 13:36:07 +11:00
embedded Move opcodes to primitives 2024-07-09 15:26:33 +10:00
examples witness: Improve element access methods with get() and get_back() 2025-03-04 12:16:48 -03:00
src witness: Improve element access methods with get() and get_back() 2025-03-04 12:16:48 -03:00
tests Use Version constant 2025-02-23 04:19:48 +07:00
CHANGELOG.md Grab missing changelog 2025-02-25 19:35:43 +11:00
Cargo.toml update secp256k1 to 0.30.0 2025-03-02 23:31:48 +08:00