mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 08:04:26 +01:00
This is the other origin, besides `bitcoin_tx`, where we create `bitcoin_tx` instances, so add the context as soon as possible. Sadly I can't weave the chainparams into the deserialization code since that'd need to change all the generated wire code as well. Signed-off-by: Christian Decker <decker.christian@gmail.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.