Skip to content

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

@benma

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

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