rust-bitcoin-unsafe-fast/bitcoin/examples
merge-script 7d4b40dfd4
Merge rust-bitcoin/rust-bitcoin#4410: Wrap secp256k1::XOnlyPublicKey to improve error handling
c11772a768 Accept flexible input types for Taproot-related functions (Erick Cestari)
2a518d62e6 Wrap secp256k1::XOnlyPublicKey to improve error handling (Erick Cestari)

Pull request description:

  This PR addresses issue #4361 by creating a wrapper type for XOnlyPublicKey instead of directly re-exporting it from the secp256k1 library.

  ### Key Changes

  1. Created a new `XOnlyPublicKey` struct that wraps `secp256k1::XOnlyPublicKey`
  2. Implemented custom error types:
      - `ParseXOnlyPublicKeyError` for handling parsing errors
      - `TweakXOnlyPublicKeyError` for tweaking an `XOnlyPublicKey`
  3. Updated all imports and usage throughout the codebase
  4. Implemented necessary traits and methods for compatibility

  Closes #4361

ACKs for top commit:
  apoelstra:
    ACK c11772a768eefd89dcc0e3b1a369d535c191f94a; successfully ran local tests
  tcharding:
    ACK c11772a768

Tree-SHA512: c8da3486e7ffcab6c24cc08f9b2f964dd9158449ef2bd720e54d56176bc7027052314ea23cac3f673d217fa785238ea8a9b5323ba57f02199f20e56df5893965
2025-05-07 17:01:31 +00:00
..
bip32.rs Use variable directly in format! string 2025-05-06 09:49:03 +01:00
create-p2wpkh-address.rs Use variable directly in format! string 2025-05-06 09:49:03 +01:00
ecdsa-psbt-simple.rs Use variable directly in format! string 2025-05-06 09:49:03 +01:00
ecdsa-psbt.rs Use variable directly in format! string 2025-05-06 09:49:03 +01:00
handshake.rs Use variable directly in format! string 2025-05-06 09:49:03 +01:00
io.rs bitcoin: Add an example of doing I/O to encode/decode 2025-01-08 10:18:00 +11:00
script.rs Use variable directly in format! string 2025-05-06 09:49:03 +01:00
sighash.rs Use variable directly in format! string 2025-05-06 09:49:03 +01:00
sign-tx-segwit-v0.rs Use variable directly in format! string 2025-05-06 09:49:03 +01:00
sign-tx-taproot.rs Merge rust-bitcoin/rust-bitcoin#4410: Wrap secp256k1::XOnlyPublicKey to improve error handling 2025-05-07 17:01:31 +00:00
taproot-psbt-simple.rs Merge rust-bitcoin/rust-bitcoin#4410: Wrap secp256k1::XOnlyPublicKey to improve error handling 2025-05-07 17:01:31 +00:00
taproot-psbt.rs Merge rust-bitcoin/rust-bitcoin#4410: Wrap secp256k1::XOnlyPublicKey to improve error handling 2025-05-07 17:01:31 +00:00