rgb-cln/bitcoin
niftynei 9e0ef45048 psbt: handle 'unsetting' final witness stack
Prior to this commit, passing a NULL stack to `bitcoin_tx_input_set_witness`
unsets the witness stack on the bitcoin_tx's wally_tx but leaves the
final witness on the PSBT unchanged.

at the moment, libwally's `wally_psbt_input_set_final_witness` will blow
up if you attempt to set a NULL witness -- instead we manually remove it
if the passed in stack is NULL. previously we would leave the PSBT's
witness unchanged.
2020-06-11 13:13:13 +02:00
..
test psbt: helpers for adding a pubkey or signature to a psbt 2020-06-11 13:13:13 +02:00
Makefile bitcoin/tx_parts: infrastructure for partial bitcoin txs. 2020-05-27 10:12:03 +09:30
README Fix typo. 2015-06-25 13:48:05 +09:30
address.h Makefile: generalize whitespace check. 2017-01-04 14:09:20 +10:30
base58.c wallet: Pass chainparams to address serialization 2019-05-10 23:07:49 +00:00
base58.h wallet: Pass chainparams to address serialization 2019-05-10 23:07:49 +00:00
block.c wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
block.h common/wire: move bitcoin-specific marshalling functions into bitcoin files. 2020-05-18 14:51:12 +02:00
chainparams.c common/wire: move bitcoin-specific marshalling functions into bitcoin files. 2020-05-18 14:51:12 +02:00
chainparams.h wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
feerate.h bitcoin: expose feerate_floor. 2018-06-21 13:43:32 +02:00
locktime.c Remove unused functions not covered by unit tests 2018-03-26 23:35:56 +00:00
locktime.h Remove unused functions not covered by unit tests 2018-03-26 23:35:56 +00:00
preimage.c wire: move towire/fromwire_preimage out to bitcoin/preimage.c. 2020-05-18 14:51:12 +02:00
preimage.h wire: move towire/fromwire_preimage out to bitcoin/preimage.c. 2020-05-18 14:51:12 +02:00
privkey.c wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
privkey.h wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
psbt.c psbt: if a transaction has witnesses/scriptSig set, add it to psbt 2020-06-11 13:13:13 +02:00
psbt.h psbt: add method to confirm 'finalized' status of psbt 2020-06-11 13:13:13 +02:00
pubkey.c wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
pubkey.h wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
pullpush.c Makefile: check for direct amount_sat/amount_msat access. 2019-02-21 08:01:37 +00:00
pullpush.h bitcoin: use amount_sat/amount_msat. 2019-02-21 08:01:37 +00:00
script.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
script.h bitcoin: remove unused struct bitcoin_tx_input. 2020-05-15 09:55:59 +09:30
shadouble.c wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
shadouble.h wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
short_channel_id.c wire: move towire/fromwire_short_channel_id out to bitcoin/short_channel_id.c 2020-05-18 14:51:12 +02:00
short_channel_id.h wire: move towire/fromwire_short_channel_id out to bitcoin/short_channel_id.c 2020-05-18 14:51:12 +02:00
signature.c psbt: remove input_amounts from bitcoin tx 2020-06-11 13:13:13 +02:00
signature.h common/wire: move bitcoin-specific marshalling functions into bitcoin files. 2020-05-18 14:51:12 +02:00
tx.c psbt: handle 'unsetting' final witness stack 2020-06-11 13:13:13 +02:00
tx.h psbt: move `channels.last_tx` field to be a psbt 2020-06-11 13:13:13 +02:00
tx_parts.c bitcoin/tx_parts: infrastructure for partial bitcoin txs. 2020-05-27 10:12:03 +09:30
tx_parts.h bitcoin/tx_parts: infrastructure for partial bitcoin txs. 2020-05-27 10:12:03 +09:30
varint.c varint: Add helper function for getting varlen size 2019-10-10 05:57:45 +00:00
varint.h varint: Add helper function for getting varlen size 2019-10-10 05:57:45 +00:00

README

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.