miniscript
miniscript copied to clipboard
Fixes #126 - hash160/ripemd160 were generating incorrect ASM
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>.