Skip to content

ct() taproot descriptors with script tree don't parse #105

Open

Description

@topologoanatom

ct(slip77(...),eltr(...)) with script tree fails to parse, though same descriptor displays and derives addresses fine. No test covers this combination, only key-path eltr.

Failing tests: fork link

Activity

  1. KyrylR commented on Nov 10, 2026

    @KyrylR
    Contributor

    ct(slip77(...),eltr(KEY,{pk(A),pk(B)})) now parses and round-trips

    Both tests from the fork commit (topologoanatom@14ced55) fail on the commit before #112 and pass on the current master

    Though, one case still breaks the same way the issue describes
    A ct() whose eltr leaves use extension fragments like is_exp_asset(...)
    It displays and gives an address, but won't parse back
    The cause is that the eltr inside ct() is always parsed without extensions

    Will do the follow-up to fix the last part

  2. KyrylR commented on Nov 10, 2026

    @KyrylR
    Contributor

    Will do the follow-up to fix the last part

    For the context, a follow-up is related to this part #112 (comment) (as far as I can see)

  3. topologoanatom commented on Nov 13, 2026

    @topologoanatom
    Author

    @KyrylR

    Another case is multipath descriptor len mismatch with ct(), like

    ct(elip151,elwsh(multi(2,{xpub}/<0;1>/*,{xpub}/0/<0;1;2>/*))) - silently passes
    ct(elip151,elwsh(multi(2,{xpub}/0/<0;1;2>/*,{xpub}/<0;1>/*))) - panics
    

    Provided tests against current master at another branch on fork (topologoanatom/elements-miniscript@314489a).

    It implicitly follows from your description in #109

    The confidential parser enters through from_tree, bypassing the standalone multipath-length check...

    , but that PR is closed so leaving this just for tracking's sake.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions