Skip to content

Witness node constructor does not use provided witness value for typingΒ #230

@apoelstra

Description

@apoelstra

When we construct a WitnessNode using WitnessNode::witness we can provide a witness. However, this constructor passes through to types::Arrow::witness(NoWitness); i.e., it does not constrain the target type of the witness node based on the type of the witness data.

This allows the construction of broken programs even when pruning is otherwise done correctly.

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