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

Fixes #126 - hash160/ripemd160 were generating incorrect ASM #132

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

landabaso
Copy link

Fixes #126

When passing hex values to ripemd160 and hash160 as in: hash160(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) it will generate correct ASM:

OP_SIZE <20> OP_EQUALVERIFY OP_RIPEMD160 <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa> OP_EQUAL
Not omitting the <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>

When using the special value H, ASM will then produce <H> instead of lower case <h>.

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.

hash160/ripemd160: concrete hash missing in output script
1 participant