payjoin / rust-payjoin

Supercharged payment batching to save you fees and preserve your privacy
https://payjoindevkit.org
82 stars 34 forks source link

Restore sender UTXOs before Payjoin Signing #280

Closed DanGould closed 1 month ago

DanGould commented 1 month ago

BIP78 requires sender UTXOs to be removed by the receiver before returning them to the sender. Many wallets have problems signing PSBTs that only specify OutPoint and not UTXO data. Since the sender made the Original PSBT, it can restore the UTXO data to the Payjoin PSBT before signing to accommodate more wallets.

--

fix #276

DanGould commented 1 month ago

I've added the API label since this changes the result of the API, even though I don't think it will break any downstream consumer integration.