Sign nonstandard input API #17400

issue 3s3s opened this issue on November 7, 2019
  1. 3s3s commented at 9:42 AM on November 7, 2019: none

    Is your feature request related to a problem? Please describe. Someone can send me P2SH transaction where redeem script should be non standard. For spend bitcoins I can manually create RAW transaction with required redeem script but I can not to sign the input because bitcoin client can not sign non standard inputs. scriptSig example <sig> <data>

    Redeem script <sig> <data> OP_DROP OP_CHECKSIGVERIFY

    When bitcoin core API sign raw transaction it output a new RAW transaction where signature part is included. I think this is reason why bitcoin core does not sign non standard inputs: core do not known about where to place signature in custom script.

    Describe the solution you'd like I think it is possible create new API function like getsignature rawtx options [inputs1, input2 ...] rawtx - hex encoded unsigned raw transaction options - optional. Default value SIGHASH_ALL inpit1, input2 - optional inputs for signing. (not shure about it)

    Result: signature - hex encoded string that user can manualy place in RAW transaction

  2. 3s3s added the label Feature on Nov 7, 2019
  3. MarcoFalke commented at 5:23 PM on April 26, 2020: member

    The feature request didn't seem to attract much attention in the past. Also, the issue seems not important enough right now to keep it sitting around idle in the list of open issues.

    Closing due to lack of interest. Pull requests with improvements are always welcome.

  4. MarcoFalke closed this on Apr 26, 2020

  5. DrahtBot locked this on Feb 15, 2022
Contributors
Labels

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