mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:42:38 +00:00
External signer: pick up bitcoin/bitcoin#36114 and update the signer test #1122
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#1122
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With an external-signer wallet, Send and Speed up broadcast whatever transaction the signer returns, even when it is not the one on the review screen. The fix is open upstream as bitcoin/bitcoin#36114 and is not in the vendored Core. This issue tracks picking it up, and the one change it needs here.
This needs a faulty or compromised signer, or signer bridge. It is not a claim about any real device. I used a mock signer on regtest that returns a prepared, validly signed transaction.
What happens now, at
eed1f426fcb6with Core44901d8f64cb:Core replaces the request with the signer's response without comparing them (external_signer.cpp#L124), and the app installs the result and enables Send (walletqmlmodel.cpp#L2498-L2500). Bitcoin-Qt uses the same Core call, so by source this is not specific to this GUI.
What the upstream fix changes
bitcoin/bitcoin#36114 merges the signer's response into the request instead of replacing it, and fails with
Signer returned a PSBT for a different transactionwhen they differ. Send and Speed up both sign through that call, and the app already handles its failure, so by source no app change is needed for the fix to take effect.What is needed here
qml_test_external_signer.py. It prepares a separate, finalized transaction, has Core's mock signer return it whatever the app asked for, and expects that txid in the mempool. The upstream change removes that mock's prepared-PSBT file and rejects finalized responses, so the test will fail on the update.Optional: on a rejected response Send shows
External signer failed to sign. Try again.and Speed up showsFailed to sign transaction.The reason goes only todebug.log, because Core passes no reason back to the app.I have not built this app with bitcoin/bitcoin#36114, so the "no app change needed" reading is unconfirmed. Tested on macOS / Qt 6.9, isolated regtest, offscreen only; Send was run twice and Speed up once. Addresses, amounts, file paths and the Activity search text were set into their fields directly, and every other step was a click through the test bridge.