Allow replacing output and inserting new outputs
This is needed for fancy things like batching or efficient LN channel opening...
This is supported in PayjoinProposal. What do you have in mind that is not yet possible?
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.
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
closed by #313