8000 Compiler outputs suboptimal miniscript for `or(pk(k1),pk(k2))` · Issue #139 · sipa/miniscript · GitHub
[go: up one dir, main page]

Skip to content

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

Open

Description

@benma

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)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0