Skip to content

psbt: check that non-witness UTXO matches outpoint hash #4617

Description

@brunoerg

During differential fuzzing between rust-bitcoin and Bitcoin Core of PSBT parsing, we just figured out that rust-bitcoin does not check if the non-witness UTXO matches outpoint hash.

Example: cHNidP8BAHN0/wEDAQAAAAAAAAAAAC4ocwBzdP8BB3NiBQAAAAAAAAAAAAAAAAAAAAAABgYABf7///90/wEACgAAAAAAAAAsx2AABXBzYsdgBAMFAAAAdP8BBwEAAAAAAAAAAAAAAAAAAACAAFIABgYABQAAc2J0/wDZAAEAc3T/QQMBAAAAAAAKCgYALihzAHN0/wEHAQAAAAAAAAAAAAAAAAAAAAD/AAAGBgAFAABzYnT/AQAKAIAAAAAAACTHYAAFcHNix2AAAwUAAAB0/wEHAQAAAAAAAAAkx2AABXDtYsdgBAMFAAAAdP8BB0JCCgoAAAAAAAA=

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions