signmessage and verifymessage : “Address does not refer to key” #26876

issue tunerji openend this issue on January 12, 2023
  1. tunerji commented at 3:44 am on January 12, 2023: none

    sign and verify message functions not working with (probobaly bech32 type addresse like: “bc1qg0kmtkmgf4angrmcr9wz2fslxjj4jzj95tkg6r”.

    I was able to sign using signmessagewithprivkey “privkey” “my message” and the result if it is correct : “H+QaukT8FP/TFh3bchd9oRj00S7rzuxzSXNXH10y4tgkWkYmKFsfFxOs50bo9510ngNhgsUbE1yG7bbldc2qVGY=”

    however using signmessage “bc1qg0kmtkmgf4angrmcr9wz2fslxjj4jzj95tkg6r” “my message” and verifymessage “bc1qg0kmtkmgf4angrmcr9wz2fslxjj4jzj95tkg6r” “signature” “my message” examples gives error : “Address does not refer to key”

    Expected behavior Signing and verifying messages using bech32 addresses.

    Actual behavior “Address does not refer to key” error

    To reproduce

    System information

  2. tunerji added the label Bug on Jan 12, 2023
  3. ghost commented at 3:56 am on January 12, 2023: none

    Related issue: #10542

    Related pull request: https://github.com/bitcoin/bitcoin/pull/24058

  4. MarcoFalke commented at 9:05 am on January 12, 2023: member
    Closing as duplicate of #https://github.com/bitcoin/bitcoin/issues/10542
  5. MarcoFalke closed this on Jan 12, 2023

  6. fanquake locked this on Jan 18, 2023

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: 2024-11-23 06:12 UTC

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