rust-bitcoin-unsafe-fast/bitcoin/examples
merge-script febce17eff
Merge rust-bitcoin/rust-bitcoin#4186: Clean up Witness API
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 3ca3218c23
  tcharding:
    ACK 3ca3218c23
  apoelstra:
    ACK 3ca3218c236c63a9b006047524e2b47e310f07d9; successfully ran local tests

Tree-SHA512: 163e7457f3fe5141373e27a6df5fe1da6f2f05f02e877ef96243510d030d832c0fa86ade781e015a3c392f004651170b60438a83d330f1059457e5ade6478af7
2025-03-06 18:43:27 +00:00
..
bip32.rs Make capitalization of SegWit uniform in rustdocs 2024-12-17 14:28:28 +00:00
create-p2wpkh-address.rs Add p2wpkh address creation example 2024-11-27 15:09:14 -06:00
ecdsa-psbt-simple.rs bitcoin: Remove hash type re-exports 2025-03-04 08:15:04 +11:00
ecdsa-psbt.rs Introduce Transaction extension traits 2024-10-30 12:28:52 +11:00
handshake.rs Remove unused extern statement 2024-11-27 23:06:55 -06:00
io.rs bitcoin: Add an example of doing I/O to encode/decode 2025-01-08 10:18:00 +11:00
sighash.rs witness: Improve element access methods with get() and get_back() 2025-03-04 12:16:48 -03:00
sign-tx-segwit-v0.rs bitcoin: Remove hash type re-exports 2025-03-04 08:15:04 +11:00
sign-tx-taproot.rs update secp256k1 to 0.30.0 2025-03-02 23:31:48 +08:00
taproot-psbt-simple.rs Use _unchecked to construct amounts 2025-01-06 13:14:21 +11:00
taproot-psbt.rs update secp256k1 to 0.30.0 2025-03-02 23:31:48 +08:00