sipa / miniscript

Miniscript site and implementation
157 stars 47 forks source link

js: check for validity when analyzing a Miniscript #121

Closed darosior closed 2 years ago

darosior commented 2 years ago

I wanted to be more helpful if it's an issue with validty and output the first insane sub with no child, but we also accept invalid miniscripts there. So, at least just check for validity.

I did not test this code.

sipa commented 2 years ago

utACK 1f6c596fe8e7631bf955e34dce2211324c3084a2

sipa commented 2 years ago

See https://github.com/sipa/miniscript/pull/122 to make it actually compile again...