|
Ran
|
Jobs
1
|
Files
129
|
Run time
2min
|
Badge
README BADGES
|
push
github
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
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 25 |
85.84 |
4.99% | bitcoin/src/psbt/mod.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 14045014433.1 | 129 |
83.6 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|