Sign Message UI allows selection of keyless addresses #17969

issue dscotese opened this issue on January 20, 2020
  1. dscotese commented at 10:31 PM on January 20, 2020: contributor

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    What Happens

    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.

    <!--- What behavior did you expect? -->

    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.

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    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.

    This is in Bitcoin Core 0.18.

  2. dscotese added the label Bug on Jan 20, 2020
  3. dscotese renamed this:
    sign message UI allows selection of keyless addressses
    Sign Message UI allows selection of keyless addressses
    on Jan 20, 2020
  4. fanquake renamed this:
    Sign Message UI allows selection of keyless addressses
    Sign Message UI allows selection of keyless addresses
    on Jan 21, 2020
  5. yozaam commented at 1:48 PM on January 21, 2020: none

    Hey should we check this exists: PKHash* pkhash = boost::get<PKHash>(&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

  6. MarcoFalke added the label GUI on Apr 26, 2020
  7. fanquake commented at 12:27 AM on August 15, 2020: member

    I've moved this over to the GUI repo: https://github.com/bitcoin-core/gui/issues/62.

  8. fanquake closed this on Aug 15, 2020

  9. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me