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

txscript: Remove DER signature verification flag. #1323

Merged
merged 1 commit into from
Jul 2, 2018

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jun 30, 2018

This is rebased on PR #1322.

This removes the ScriptVerifyDERSignatures flag from the txscript package, changes the default semantics to always enforce its behavior and updates all callers in the repository accordingly.

This change is being made to simplify the script engine code since the flag has always been active and required by consensus in Decred, so there is no need to require a flag to conditionally toggle it.

It should be noted that the tests removed from script_tests.json specifically dealt with ensuring non-DER-compliant signatures were handled properly when the ScriptVerifyDERSignatures flag was not set. Therefore, they are no longer necessary.

Finally, the DERSIG indicator to enable the flag in the test data has been retained for now in order to keep the logic changes separate.

Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@davecgh davecgh added this to the 1.3.0 milestone Jul 1, 2018
This removes the ScriptVerifyDERSignatures flag from the txscript
package, changes the default semantics to always enforce its behavior
and updates all callers in the repository accordingly.

This change is being made to simplify the script engine code since the
flag has always been active and required by consensus in Decred, so
there is no need to require a flag to conditionally toggle it.

It should be noted that the tests removed from script_tests.json
specifically dealt with ensuring non-DER-compliant signatures were
handled properly when the ScriptVerifyDERSignatures flag was not set.
Therefore, they are no longer necessary.

Finally, the DERSIG indicator to enable the flag in the test data has
been retained for now in order to keep the logic changes separate.
@davecgh davecgh force-pushed the txscript_remove_dersig_flag branch from 22aa10a to 98e0b27 Compare July 2, 2018 17:31
@davecgh davecgh merged commit 98e0b27 into decred:master Jul 2, 2018
@davecgh davecgh deleted the txscript_remove_dersig_flag branch July 2, 2018 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants