There are many contexts in which it doesn't make sense to create a PSBT wrapping the tx. There are also tx features that are not supported in wallys PSBT implementation yet (such as pegins), which fail if a PSBT wrapper is created, even though such features are unlikely to ever be used in txs that cln will create/manipulate. Allow these cases to be explicit that they only want the tx. This avoids hitting such errors, is clearer on the caller side, and is more efficient. Changelog-None Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
These are standard bitcoin manipulation routines which should be provided by any normal bitcoin library in whatever language you choose. The ones here are standalone ones taken from bitcoin core and some I wrote, many taken from bitcoin-iterate and pasted in here.