-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpcwallet: fix remote signing issues #7130
rpcwallet: fix remote signing issues #7130
Conversation
564b665
to
65d2ec9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM👍 Thanks for the quick fix! Just FYI the new itest failed due to flakes and is unrelated to this PR. The linter issue should be gone once the btcd is in. And maybe you could rebase on #7126 to see how the old itest goes?
65d2ec9
to
1e43476
Compare
Pushed up an updated version that uses the latest dependencies. The itest won't be green before #7126 is merged but I rand the remote signing itests locally to confirm the targeted fixes are correct. |
1e43476
to
16c3cbf
Compare
I tacked on a commit (29d86a51) that fixes another Taproot related issue in a remote signing setup (related to Pool account deposits). |
Yeah there're def some subtle interactive here, it took quite a bit to get to the bottom of all this. @morehouse have you seen: btcsuite/btcwallet#825? This PR updates the |
Ok merged the itest PR, can you rebase this now @guggero, then the new set of itests can run on top of it. |
@morehouse I'm not sure what you mean. This PR includes a bump in the btcwallet version that includes btcsuite/btcwallet#825. Which is what you mean if I understand you correctly. |
This commit bumps to the latest version of btcd that fixes a key mutation issue when signing for Taproot outputs.
This commit bumps the btcwallet dependency to the version that includes the address validation that asserts we can sign for an address before we use it.
This commit fixes an issue with signing for mixed inputs in a remote signing setup where the re-use of the sign descriptor would lead to the sign method not being reset correctly if a p2wkh input is following a p2tr input.
This commit fixes signing of Taproot inputs when some of the other inputs of the transaction are not known to the wallet (such as a Pool account for example). If we want to sign for a Taproot (change) input when depositing into a Pool account the wallet won't know the Pool account input. So we need to make sure we pass it along inside the PrevOutputFetcher (which contains the UTXO information extracted from the PSBT).
16c3cbf
to
8b522aa
Compare
Ack, thanks for explaining.
Yep, sorry I missed the fix over there. |
Fixes #7024.
Fixes #7022.