Error messages for invalid address #21741

issue ghost opened this issue on April 21, 2021
  1. ghost commented at 2:23 AM on April 21, 2021: none

    Can we add more information in error messages for invalid address especially the errors mentioned in PR: https://github.com/bitcoin/bitcoin/pull/20832/

    Example:

    Change https://github.com/bitcoin/bitcoin/blob/f385ad765174afb02e60900581612a19c143cf83/src/key_io.cpp#L103

    To

    error_str = "Invalid prefix for Bech32 address. Valid Bech32 address starts with `bc1` (mainnet) or `tb1` (testnet)";
    

    Context: https://github.com/bitcoin-core/gui/pull/280#issuecomment-820957002

  2. unknown added the label Feature on Apr 21, 2021
  3. tylerchambers commented at 1:54 PM on April 21, 2021: contributor

    concept ack. error messages should be human readable and actionable. this is a good improvement.

  4. unknown cross-referenced this on Apr 22, 2021 from issue Add more info about prefix in error message for invalid address by ghost
  5. kristapsk commented at 1:19 PM on April 25, 2021: contributor

    Concept ACK

  6. unknown cross-referenced this on Apr 26, 2021 from issue Remove user input from URI error message by ghost
  7. brunoerg commented at 10:23 PM on April 29, 2021: contributor

    Concept ACK

  8. vincenzopalazzo commented at 10:48 PM on May 4, 2021: none

    Concept ack.

  9. ghost commented at 1:12 AM on June 13, 2021: none

    4 Concept ACKs for this issue and few reviews in PR: #21755

    Will be helpful if you could comment on changes proposed in https://github.com/bitcoin/bitcoin/pull/21755/commits/af9979837d1a9d4844d2701f4eeb7aed353d8af9

  10. brunoerg commented at 2:25 AM on June 13, 2021: contributor

    Going to review soon.

  11. maflcko commented at 3:27 PM on August 11, 2022: member

    Not sure what the status is. I guess someone needs to rebase #21755?

  12. aureleoules cross-referenced this on Nov 16, 2022 from issue Improve address decoding errors by aureleoules
  13. glozow closed this on Mar 13, 2023

  14. bitcoin locked this on Mar 12, 2024

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-05-20 06:54 UTC