Uh oh!
There was an error while loading. Please reload this page.
Feature/bip322 integration - #179
Conversation
I'd rather not have a separate key file for this feature and try to protect it with a password and all that. This More importantly the use of bip322 as I understand it is to be able to sign a message using what ever bitcoin descriptor script your bitcoin wallet has. If you have a private key descriptor you should be able to sign the invalid input message transaction, and if not you should still be able to create a PSBT that your hardware signers can sign. Does that make sense? Also have you seen the bdk-reserves crate? it does something similar. |
aagbotemi
commented
May 18, 2025
Still actively working on this. Will push updates once I'm done (likely within this week). |
tvpeter
commented
Jun 12, 2025
Hi @aagbotemi, can you rebase and fix the CI failures? |
tvpeter
left a comment
There was a problem hiding this comment.
This PR is similar to the reserves feature that was taken out in the v1.0 update.
@aagbotemi, please consider changing bip322 feature flag to reserves.
Also, after rebasing, check whether there is need to update the workflows. I would prefer the workflows to go in a separate PR if necessary.
@notmandatory I don't know whether it is ideal that the crate he is referencing should be published for security reasons.
aagbotemi
commented
Jun 13, 2025
Alright @tvpeter, will do that.
Yes, I'm revamping the crate to use descriptor instead of private key, but I will continue the PR with the reserves crate. |
aagbotemi
commented
Jun 25, 2025
Thanks for the review and suggestion to rename the A PR (bitcoindevkit/bdk-reserves#39) updates |
7b94ecc to
007f71bCompareaagbotemi
commented
Jan 20, 2026
The update is a follow-up to the BIP322 refactor that migrated signing from raw keys to descriptor-based |
coveralls
commented
Jan 20, 2026
Pull Request Test Coverage Report for Build 21173945658Details
💛 - Coveralls |
tvpeter
left a comment
There was a problem hiding this comment.
Thank you for working on this @aagbotemi
I have left some comments.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
aagbotemi
commented
Feb 17, 2026
Thank you for the review. I'll attend to the comments shortly. |
c7a7e19 to
d85feecCompareCodecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## master #179 +/- ##
==========================================
- Coverage 11.13% 10.96% -0.17%
==========================================
Files 8 8 Lines 2488 2526 +38 ==========================================
Hits 277 277 - Misses 2211 2249 +38
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Uh oh!
There was an error while loading. Please reload this page.
tvpeter
left a comment
There was a problem hiding this comment.
Hi @aagbotemi ,
So I was testing the feature, and some tests failed. In the attached screenshot, I generated an address from a wallet, signed a message, and verified the message. I changed the message, and it still came back true. I thought the expected output would have been an error indicating that verification failed

d85feec to
0a713a1CompareSome good hardware signing new on this topic. The latest ColdCard firmware supports BIP-322, see: https://nitter.net/COLDCARDwallet/status/2029684130938531965 |
0a713a1 to
5184d45Compareaagbotemi
commented
Mar 11, 2026
Thanks for pointing this out. I’ve fixed the verification logic so that verification now correctly fails when the message is tampered with. Also, I noticed the feature was referenced as |
aagbotemi
commented
Mar 11, 2026
Thanks for the heads-up! Just checked the ColdCard firmware announcement, it's awesome to see the BIP-322 support. |
tvpeter
commented
Mar 11, 2026
No, it is the wallet I used during testing that I named |
5184d45 to
9826c76Compareaagbotemi
commented
Mar 18, 2026
UPDATE: Removed |
9826c76 to
3aaf73cCompare…g and add Bip322Error variant
3aaf73c to
e03f123Compare
notmandatory
left a comment
There was a problem hiding this comment.
ACK 7c33b33
Useful feature and good integration with this cli. I encourage you to add some example code and doc page for how to use the bip_322 crate in the book-of-bdk.
aagbotemi
commented
Apr 24, 2026
Thank you. I'll add example code and doc to the book-of-bdk. |

Description
This PR added BIP322 feature into BDK CLI.
It also has a usage file for testing purposes
Notes to the reviewers
Changelog notice
Checklists
All Submissions:
cargo fmtandcargo clippybefore committingNew Features:
CHANGELOG.md