You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sign Message UI allows selection of keyless addresses #17969
When you click File|Sign Message, the UI asks you to choose an address with which to sign. You can enter one by hand, paste from clipboard, or "Choose a previously used address." The third option provides a list of addresses that includes addresses for which there is no private key (P2SH addresses). This is intimately related to #10542 but the fix here is straightforward.
Expected Behavior
I expect addresses for which no private key is known to be excluded from the list presented. I realize that the same list is used to select an address to which to receive a payment, but that code could be adjusted to accept a filter, or the private-key-less addresses could be filtered out during display.
To reproduce
Ensure that you have at least one P2SH address in your Bitcoin core wallet.
Select File | Sign Message
Click the address book.
Note that there are P2SH addresses offered for selection.
changed the title [-]sign message UI allows selection of keyless addressses[/-][+]Sign Message UI allows selection of keyless addressses[/+]on Jan 20, 2020
changed the title [-]Sign Message UI allows selection of keyless addressses[/-][+]Sign Message UI allows selection of keyless addresses[/+]on Jan 21, 2020
Hey should we check this exists:
PKHash* pkhash = boost::get(&addressinlist);
And then would we have to call the wallet().getPrivKey to check that as well or would the above be enough.
Actually would it not be more efficient to have a filtering bool value for the addresses, or is there another location we can fetch them from
Activity
[-]sign message UI allows selection of keyless addressses[/-][+]Sign Message UI allows selection of keyless addressses[/+][-]Sign Message UI allows selection of keyless addressses[/-][+]Sign Message UI allows selection of keyless addresses[/+]yozaam commentedon Jan 21, 2020
Hey should we check this exists:
PKHash* pkhash = boost::get(&addressinlist);
And then would we have to call the wallet().getPrivKey to check that as well or would the above be enough.
Actually would it not be more efficient to have a filtering bool value for the addresses, or is there another location we can fetch them from
fanquake commentedon Aug 15, 2020
I've moved this over to the GUI repo: bitcoin-core/gui#62.