• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rust-bitcoin / rust-bitcoin / 14045014433
83%

Build:
DEFAULT BRANCH: master
Ran 24 Mar 2025 08:16PM UTC
Jobs 1
Files 129
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Mar 2025 08:15PM UTC coverage: 83.604% (+0.4%) from 83.17%
14045014433

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4238: Add XOnlyPublicKey support for PSBT key retrieval and improve Taproot signing

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/069d2fd07e7d6dad1401fce6ab28ab1dc9f3c60f">069d2fd07 Add XOnlyPublicKey support for PSBT key retrieval and improve Taproot signing (Erick Cestari)

Pull request description:

  The `bip32_sign_schnorr` function was previously only attempting to retrieve private keys using `KeyRequest::Bip32`, which limited the ability to sign Taproot inputs with key maps that don't support BIP32 derivation paths.

  ## Changes
  - Added new `KeyRequest::XOnlyPubkey` variant to support direct retrieval using XOnly public keys
  - Implemented `GetKey` for `HashMap<XOnlyPublicKey, PrivateKey>` for more efficient Taproot key management
  - Modified `HashMap<PublicKey, PrivateKey>` implementation to handle XOnlyPublicKey requests by checking both even and odd parity variants
  - Added comprehensive tests for both key map implementations

  These improvements enable wallet implementations to store keys indexed by either `PublicKey` or `XOnlyPublicKey` and successfully sign PSBTs.

  Closes #4150

ACKs for top commit:
  Kixunil:
    ACK 069d2fd07e7d6dad1401fce6ab28ab1dc9f3c60f
  apoelstra:
    ACK 069d2fd07e7d6dad1401fce6ab28ab1dc9f3c60f; successfully ran local tests

Tree-SHA512: 0ae07309b2335925d6ae7fc8d578eeae90f

109 of 134 new or added lines in 2 files covered. (81.34%)

22253 of 26617 relevant lines covered (83.6%)

16721.61 hits per line

Uncovered Changes

Lines Coverage ∆ File
25
85.84
4.99% bitcoin/src/psbt/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 14045014433.1 24 Mar 2025 08:16PM UTC 129
83.6
GitHub Action Run
Source Files on build 14045014433
  • Tree
  • List 129
  • Changed 5
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14045014433
  • 87889955 on github
  • Prev Build on master (#14043863869)
  • Next Build on master (#14068638141)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc