Pull request description: 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. Close #4098 ACKs for top commit: Kixunil: ACK |
||
---|---|---|
.. | ||
bip32.rs | ||
create-p2wpkh-address.rs | ||
ecdsa-psbt-simple.rs | ||
ecdsa-psbt.rs | ||
handshake.rs | ||
io.rs | ||
sighash.rs | ||
sign-tx-segwit-v0.rs | ||
sign-tx-taproot.rs | ||
taproot-psbt-simple.rs | ||
taproot-psbt.rs |