Skip to content

Witnes::taproot_control_block returns Some(signature) for key spends #4097

@Kixunil

Description

@Kixunil

We need to have a check that the Witness is actually a script spend (at least 2 witness elements).

There's same bug in tapscript method but that one is also broken for other reasons. actually, it was using third_to_last which returned None if there were 2 witness elements. But the structure of the code looked the same and was confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions