Skip to content

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

Open
landabaso wants to merge 3 commits intosipa:masterfrom
bitcoinerlab:master
Open

Fixes #126 - hash160/ripemd160 were generating incorrect ASM#132
landabaso wants to merge 3 commits intosipa:masterfrom
bitcoinerlab:master

Conversation

@landabaso
Copy link
Copy Markdown

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