Skip to content

Support signing transactions with output amount > input amount #354

@kewde

Description

@kewde

PSBTs with custom SIGHASH flags may not always have all the inputs already because we don't know who the counterparty will be yet.
This leads to a situation where the output amount > input amount and the firmware throws an error.

workaround is to add a dummy input - just make sure it's not included in the sighash of the real inputs you wish to sign.
maybe skip the amount check if all inputs have sighashes that support adding more inputs later on? they already get hit with a scary warning about custom sighashes anyways

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