Skip to content

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

Closed
jgriffiths wants to merge 1 commit into
ElementsProject:masterfrom
odudex:fix-el-prefix-outermost
Closed

jgriffiths wants to merge 1 commit into
ElementsProject:masterfrom
odudex:fix-el-prefix-outermost

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

Copy link
Copy Markdown
Contributor Author

Merged with minor comment change, closing.

@jgriffiths jgriffiths closed this Nov 22, 2026
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