miniscript icon indicating copy to clipboard operation
miniscript copied to clipboard

Fixes #126 - hash160/ripemd160 were generating incorrect ASM

Open landabaso opened this issue 3 years ago • 0 comments

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>.

landabaso avatar Jan 23 '23 21:01 landabaso