Skip to content

descriptor: only allow the el prefix on the outermost expression - #564

Merged
jgriffiths merged 1 commit into
masterfrom
el_prefix
Nov 22, 2026
Merged

jgriffiths merged 1 commit into
masterfrom
el_prefix

Conversation

@jgriffiths

Copy link
Copy Markdown
Contributor

As in ELIP-150 and elements-miniscript, Elements descriptors prefix only their outermost script expression with el, e.g. elsh(wpkh()). The prefix was accepted on any builtin, so expressions such as wsh(elpk(K)), elct(), ct(elslip77(k),wpkh(K)) or c:elpk_k(K) parsed as Elements descriptors and canonicalized to non-standard names. It is also no longer accepted when parsing with WALLY_MINISCRIPT_ONLY.

As in ELIP-150 and elements-miniscript, Elements descriptors prefix only
their outermost script expression with el, e.g. elsh(wpkh()). The prefix
was accepted on any builtin, so expressions such as wsh(elpk(K)),
elct(), ct(elslip77(k),wpkh(K)) or c:elpk_k(K) parsed as Elements
descriptors and canonicalized to non-standard names. It is also no
longer accepted when parsing with WALLY_MINISCRIPT_ONLY.
@jgriffiths
jgriffiths merged commit cd9fb86 into master Nov 22, 2026
0 of 5 checks passed
@jgriffiths
jgriffiths deleted the el_prefix branch November 22, 2026 10:19
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

Successfully merging this pull request may close these issues.

2 participants