Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler outputs suboptimal miniscript for or(pk(k1),pk(k2)) #139

Open
benma opened this issue Oct 17, 2023 · 0 comments
Open

Compiler outputs suboptimal miniscript for or(pk(k1),pk(k2)) #139

benma opened this issue Oct 17, 2023 · 0 comments

Comments

@benma
Copy link
Contributor

benma commented Oct 17, 2023

The second policy example at https://bitcoin.sipa.be/miniscript/

"One of two keys (equally likely)" - or(pk(key_1),pk(key_2))) - compiles to or_b(pk(key_1),s:pk(key_2)).

Should it not compile to multi(1,key_1,key_2) instead, which has the same witness size but a smaller script size (71 WU vs 72 WU)?

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

No branches or pull requests

1 participant