Skip to content

Commit

Permalink
Merge PR #25 "miniscript: multi() is expressive"
Browse files Browse the repository at this point in the history
  • Loading branch information
darosior committed Jan 17, 2023
2 parents 27f3ecf + 0e4c1db commit d2f5d8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bip380/miniscript/fragments.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def __init__(self, k, keys):
self.p = Property("Bndu")
self.needs_sig = True
self.is_forced = False
self.is_expressive = False
self.is_expressive = True
self.is_nonmalleable = True
self.abs_heightlocks = False
self.rel_heightlocks = False
Expand Down
5 changes: 5 additions & 0 deletions tests/test_miniscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,3 +1000,8 @@ def test_satisfaction_validity():
]:
andv_frag = fragments.AndV(fragments.WrapV(pk_frag), h_frag(digest))
sat_test(andv_frag, keypairs=pk_keypairs, preimages={digest: preimage})


def test_multi_is_expressive():
frag = fragments.Node.from_str(f"or_b(pk({dummy_pk()}),a:multi(1,{dummy_pk()},{dummy_pk()}))")
assert frag.is_nonmalleable

0 comments on commit d2f5d8f

Please sign in to comment.