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. |
Still actively working on this. Will push updates once I'm done (likely within this week). |
|
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.
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. |
|
Thanks for the review and suggestion to rename the A PR (bitcoindevkit/bdk-reserves#39) updates |
7b94ecc to
007f71b
Compare
|
The update is a follow-up to the BIP322 refactor that migrated signing from raw keys to descriptor-based |
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.
Thank you for the review. I'll attend to the comments shortly. |
c7a7e19 to
d85feec
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #179 +/- ##
==========================================
- Coverage 10.86% 10.69% -0.18%
==========================================
Files 8 8
Lines 2466 2506 +40
==========================================
Hits 268 268
- Misses 2198 2238 +40
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:
|
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
0a713a1
Compare
|
Some good hardware signing new on this topic. The latest ColdCard firmware supports BIP-322, see: https://nitter.net/COLDCARDwallet/status/2029684130938531965 |
0a713a1 to
5184d45
Compare
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 |
Thanks for the heads-up! Just checked the ColdCard firmware announcement, it's awesome to see the BIP-322 support. |
No, it is the wallet I used during testing that I named |
…g and add Bip322Error variant
5184d45 to
9826c76
Compare
|
UPDATE: Removed |

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