-
Notifications
You must be signed in to change notification settings - Fork 10
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
WIP scripting #85
base: master
Are you sure you want to change the base?
WIP scripting #85
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be happy to help with the rationale part.
Yes, please! Or any other part as well. |
|
||
Full support for script inputs and script outputs, this is the intented way to use scripts. | ||
|
||
When validating a `ValueTransferTransaction`, for each input, if that input has a `redeem_script`, do a script validation. Otherwise, if the input does not have a `redeem_script`, do a normal signature validation. Transactions can combine both script inputs and normal inputs. Script validation is described in the "Script execution" section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could it be possible for an input to have a redeem_script
but no witness_script
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for example if the redeem_script
always returns true
. But since the witness_script
contains the signatures this would make the input spendable by anyone, so it is basically a donation to the miner.
A draft for the motivation section can be found here: |
Not ready
Close #84