Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign nonstandard input API #17400

Closed
3s3s opened this issue Nov 7, 2019 · 1 comment
Closed

Sign nonstandard input API #17400

3s3s opened this issue Nov 7, 2019 · 1 comment
Labels

Comments

@3s3s
Copy link

3s3s commented Nov 7, 2019

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

@3s3s 3s3s added the Feature label Nov 7, 2019
@maflcko
Copy link
Member

maflcko commented Apr 26, 2020

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.

@maflcko maflcko closed this as completed Apr 26, 2020
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants