rust-payjoin icon indicating copy to clipboard operation
rust-payjoin copied to clipboard

Allow replacing output and inserting new outputs

Open Kixunil opened this issue 2 years ago • 3 comments

This is needed for fancy things like batching or efficient LN channel opening...

Kixunil avatar May 10 '23 21:05 Kixunil

This is supported in PayjoinProposal. What do you have in mind that is not yet possible?

DanGould avatar May 11 '23 16:05 DanGould

Those handle adding inputs, not outputs. I missed substitute_output_address but it really should be substitute_script_pubkey to allow LN channels. Also it'd be great to have methods to reasonably modify values - e.g. giving a discount to the payer.

Kixunil avatar May 11 '23 17:05 Kixunil

Added this https://github.com/payjoin/rust-payjoin/pull/233/commits/ef8c7ec53675d06d29aa479456d2b2d812fc7402 as part of this pr https://github.com/payjoin/rust-payjoin/pull/233

jbesraa avatar May 08 '24 12:05 jbesraa

closed by #313

DanGould avatar Sep 16 '24 15:09 DanGould