Incorrect error message when trying to sign with compressed key #9437

issue davout opened this issue on December 28, 2016
  1. davout commented at 7:40 AM on December 28, 2016: none

    Reproduction

    Try to sign a transaction with signrawtransaction, but instead of using the uncompressed key as third argument, use a compressed key.

    Expected behaviour

    A meaningful error message.

    Actual behaviour

    The error message returned will be "Operation not valid with the current stack size".

    What version of bitcoin-core are you using?

    3bf06e9bac57b5b5a746677b75e297a7b154bdbd

  2. unsystemizer commented at 7:38 PM on December 30, 2016: contributor

    The same error appears in other similar situations (for example, if one tries to send an unsigned raw transaction). There could be some basic checking of inputs based on the length of valid input arguments, so say if input is X instead of the expected Y or Z bytes, a "Maybe you screwed up" message could be displayed. I think this would require less effort compared to advanced checking and would help detect a lot of simple problems that happen in the CLI.

  3. meshcollider commented at 8:52 PM on March 6, 2018: contributor

    I think this was fixed by #11288, so can be closed (unless anyone says otherwise)

  4. meshcollider closed this on Mar 6, 2018

  5. MarcoFalke locked this on Sep 8, 2021

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-29 03:15 UTC

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