descriptor: do not parse from script unspendable Miniscript descriptors #28112

pull darosior wants to merge 1 commits into bitcoin:master from darosior:miniscript_from_script_unspendable changing 2 files +4 −1
  1. darosior commented at 1:23 PM on July 20, 2023: member

    #27997 but for Script parsing.

    I've added a test demonstrating the behaviour despite the descriptor parsing also currently being incorrect (wsh(raw()), see #28067). I guess whichever comes after the other between this PR and #28067 would be trivial to rebase on to fix it.

  2. descriptor: do not parse from script unspendable Miniscript descriptors
    https://github.com/bitcoin/bitcoin/pull/27997 but for Script parsing.
    3dc840635f
  3. DrahtBot commented at 1:23 PM on July 20, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

  4. darosior commented at 1:25 PM on July 20, 2023: member

    Actually i'm not even sure we'd like to do this, as i don't see how it could be a footgun for a user.

  5. darosior commented at 1:31 PM on July 20, 2023: member

    Closing this, sorry for the noise. I don't think it is useful to forbid parsing a Miniscript descriptor from Script since it cannot be a footgun for end user and it's always better to parse a Miniscript, even though unspendable, than a raw Script to be displayed in some utilities (such as decodescript for instance).

  6. darosior closed this on Jul 20, 2023

  7. bitcoin locked this on Jul 19, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-28 03:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me