-
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
wallet: check we can produce valid signature for address before sending funds on-chain #7022
Comments
Could you maybe share some logs when trying to sweep the UTXO? |
Yes. Please let me know if you need more info
|
I took a quick look and it looks like the public key in the witness doesn't match the address on chain. This is really really weird and I can't think of any way this could happen. Is this an old node? Maybe affected by an old wallet related bug that we fixed in the meantime? The funds should be recoverable though. Can you please run And once you were able to sweep the funds, would you consider sending us the wallet DB so we can dig into how this came about? Feel free to contact me on Slack if you have question about the fund recovery. |
I took a very close look at this. The user even provided the affected wallet file (since the funds in the address It is quite hard to write software to protect against such unexpected bit flips. But we discussed this internally and think that we at least should try to create a signature (and verify it) before sending funds to a change address (or any other address the wallet identifies as "its own"). So I'm going to change the title and description of this issue to match that feature request. |
@papssaj we're trying to gather more information on this. Can you please check Slack, I have a few questions about your hardware and setup. Thanks! |
Any chance this address is falling afoul of the The generation of the address and later recovery attempt would have to have been on different sides of that fix ... not sure if that is likely ... |
No, that's the first thing we checked. We actually never switched to the "correct" BIP-32 derivation yet in But I still have another suspicion what could've mutated the keys and am working on a tool to verify or disprove that suspicion. |
EDIT (guggero):
See comment below, this issue was turned from a bug report into a feature request.
Steps to implement:
Original issue text:
The text was updated successfully, but these errors were encountered: