Skip to content

Include original_psbt input txos to payjoin_psbt for sender signing and broadcast #276

@DanGould

Description

@DanGould

BIP 78 (Payjoin V1) does not follow BIP 174 (PSBT V1) because it removins UTXO data from PSBT inputs, which a sender needs to sign the augmented Payjoin PSBT. It only keeps the input OutPoints. Many PSBT signers will not sign PSBT Inputs with unspecified input UTXO data. Payjoin Dev Kit may not have noticed this at first because bitcoind does sign inputs by looking up OutPoints, but other wallets still have problems.

The send module of the Dev Kit maintains the original_psbt including sender UTXO data and should add it back to the Payjoin PSBT before the sender signs to support as many wallets as possible. This would solve the protocol shortcoming for users of the Dev Kit without patching BIP 78.

These wallets are confirmed unable to sign inputs without PSBT UTXO data

LND
Sparrow
BDK

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsendsending payjoin

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions