Uh oh!
There was an error while loading. Please reload this page.
adding hardware signers - #135
Conversation
rajarshimaitra
commented
Jan 9, 2023
Concept ACK.. Thanks for adding this.. I was just thinking about this the other day.. Could be useful if anyone wanna use bdk-cli with mainnet (still not recommended)..
From an initial glance, it looks like all the wallets you are using are watch-only? It has Xpubs and addresses only.. Such wallets in bdk can't sign for transactions as they don't have the private key.. and PS: We should throw an error in those cases if use asks to Can you try testing with a single sig wallet, with keys generated from bdk-cli itself?? If the HWI part is working properly that should work.. I will also try to test this out in an emulator.. |
I think the elctrum error you are seeing is also part of our lack of error handling in unsigned psbts and should be fixed with #128. But it only handles it while broadcast.. I will try to see how the watch-only case can be captured in signing also.. |
ulrichard
commented
Jan 10, 2023
I tested with single sig hw wallets now. |
816b8cc to
bd2b66eCompare
rajarshimaitra
left a comment
There was a problem hiding this comment.
Code Review ACK bd2b66e
Few more changes and it would be good to go..
Also seems to have conflict with master..
I have successfully tried it out with a single sig coldcard..
| - Added hardware signers through the use of HWI | ||
There was a problem hiding this comment.
We recently changed our changelog system from this file to just include it in the PR description.
The new PR template is here.. https://github.com/bitcoindevkit/bdk-cli/blob/master/.github/pull_request_template.md
Can you just add a Change Log section with this line in the description instead?
There was a problem hiding this comment.
Just to clarify after adding the log in the description, its actually not needed anymore in this file..
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.
rajarshimaitra
left a comment
There was a problem hiding this comment.
Re Ack 927b066 modulo one comment..
| - Added hardware signers through the use of HWI | ||
There was a problem hiding this comment.
Just to clarify after adding the log in the description, its actually not needed anymore in this file..
@ulrichard we made some CI changes and bumped the bdk and bdk-reserves versions, please rebase after #143 is merged and then this should be ready to go. Thanks! |
Description
Adding hardware signers, so that hardware wallets can be used to sign transactions.
Notes to the reviewers
It doesn't work 100% yet for me.I am using the following wallet:
https://github.com/RCasatta/electrum2descriptors/blob/main/tests/wallets2descriptors.rs#L89
https://github.com/RCasatta/electrum2descriptors/blob/main/tests/wallets/multisig_hw_segwit
I can create and sign a transaction with this version of bdk-cli. It displays the details on the Trezor and everything looks good so far. But in the CLI output of bdk-cli it says "is_finalized= false" and when I open the supposedly signed tx in Electrum, it aslo says "Status: Unsigned".
So, something must still be missing.
Initially I had some dependency problems, so I deleted Cargo.lock. That solved the dependency problems, but that's the reason for the large diff on that file.
Changelog notice
Added hardware signers through the use of HWI
Checklists
All Submissions:
cargo fmtandcargo clippybefore committingNew Features:
CHANGELOG.md