bitcoinerlab / miniscript

A Bitcoin Miniscript compiler and an explicit Satisfier decoupled from the tx signer.
https://bitcoinerlab.com/modules/miniscript
21 stars 6 forks source link

ripemd160 and hash160 fail when using 40 char hex #2

Closed landabaso closed 1 year ago

landabaso commented 1 year ago

ripemd160 and hash160 fail when using 40 char hex.

The problem can be tracked back to https://bitcoin.sipa.be/miniscript/. Test this miniscript: and_v(v:pk(k),ripemd160(095ff41131e5946f3c85f79e44adbcf8e27e080e)) It will produce invalid ASM. Same for hash160

landabaso commented 1 year ago

The issue has already been reported https://github.com/sipa/miniscript/issues/126.

landabaso commented 1 year ago

Internally applied the PR submitted to https://github.com/sipa/miniscript. Remove this fix once it's fixed on the parent's source.