Skip to content

txscript: Cleanup and add tests for rotl opcode. #1286

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

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jun 12, 2018

This cleans up the code for handling the left rotation opcode to explicitly call out its semantics which are likely not otherwise obvious as well as improve its readability.

It also adds several tests to the reference script tests which exercise the semantics of the left rotation opcode including both positive and negative tests.

@davecgh davecgh force-pushed the txscript_cleanup_oprotl branch 2 times, most recently from b3205c8 to d5f5484 Compare June 12, 2018 23:29
@davecgh davecgh added this to the 1.3.0 milestone Jun 12, 2018
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

This cleans up the code for handling the left rotation opcode to
explicitly call out its semantics which are likely not otherwise obvious
as well as improve its readability.

It also adds several tests to the reference script tests which exercise
the semantics of the left rotation opcode including both positive and
negative tests.
@davecgh davecgh force-pushed the txscript_cleanup_oprotl branch from d5f5484 to 71f86be Compare June 13, 2018 21:39
@davecgh davecgh merged commit 71f86be into decred:master Jun 13, 2018
@davecgh davecgh deleted the txscript_cleanup_oprotl branch June 13, 2018 21:49
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.

4 participants