rgb-cln/bitcoin
Rusty Russell 253b3e679e bitcoin/tx: use NULL for empty input scripts, not a zero-len array.
The signing code asserts these are NULL, and if we unmarshal from the
wire then sign them, it gets upset.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-08-20 13:06:41 +09:30
..
libbase58@16c2527608 Add libbase58 as git submodule 2017-01-05 12:11:18 +10:30
test struct bitcoin_tx: remove explicit lengths, use tal_len()/tal_count() 2017-01-25 11:03:55 +10:30
Makefile Makefiles: fix from-scratch parallel build. 2017-04-01 23:59:46 +10: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 pubkey: valgrind was reporting about unset memory in address parsing 2017-06-23 16:02:20 +09:30
base58.h Use global secp256k1_ctx instead of passing it around. 2016-12-02 18:12:58 +10:30
block.c opening: Use the correct chainparams to open a channel 2017-07-12 11:30:23 +09:30
block.h opening: Use the correct chainparams to open a channel 2017-07-12 11:30:23 +09:30
chainparams.c fix: Only add cli_args if we have some defined 2017-08-13 13:57:48 +09:30
chainparams.h bitcoin: Make chainparams const 2017-07-13 15:36:50 +02:00
locktime.c type_to_string: move formatting to appropriate files. 2017-01-04 14:07:15 +10:30
locktime.h header cleanup: sort include lines into alpha order, after config.h 2016-01-22 06:38:08 +10:30
preimage.h bitcoin/preimage: struct preimage. 2017-02-02 14:48:00 +10:30
privkey.h struct secret: use everywhere. 2017-05-09 11:43:35 +09:30
pubkey.c script: Use pkh to construct p2pkh output scripts 2017-06-23 16:02:20 +09:30
pubkey.h script: Use pkh to construct p2pkh output scripts 2017-06-23 16:02:20 +09:30
pullpush.c struct bitcoin_tx: remove explicit lengths, use tal_len()/tal_count() 2017-01-25 11:03:55 +10:30
pullpush.h struct bitcoin_tx: remove explicit lengths, use tal_len()/tal_count() 2017-01-25 11:03:55 +10:30
script.c script: Consolidate scripts to use pubkey_to_hash160 2017-07-15 10:19:33 +09:30
script.h script: Use pkh to construct p2pkh output scripts 2017-06-23 16:02:20 +09:30
shadouble.c type_to_string: move formatting to appropriate files. 2017-01-04 14:07:15 +10:30
shadouble.h header cleanup: sort include lines into alpha order, after config.h 2016-01-22 06:38:08 +10:30
short_channel_id.c Move short_channel_id primitive into bitcoin 2017-08-10 12:34:58 +09:30
short_channel_id.h Move short_channel_id primitive into bitcoin 2017-08-10 12:34:58 +09:30
signature.c struct secret: use everywhere. 2017-05-09 11:43:35 +09:30
signature.h struct bitcoin_tx: remove explicit lengths, use tal_len()/tal_count() 2017-01-25 11:03:55 +10:30
tx.c bitcoin/tx: use NULL for empty input scripts, not a zero-len array. 2017-08-20 13:06:41 +09:30
tx.h struct bitcoin_tx: remove explicit lengths, use tal_len()/tal_count() 2017-01-25 11:03:55 +10:30
varint.c bitcoin/varint: fix varint reading for multibyte varints. 2016-07-07 11:55:32 +09:30
varint.h varint: new file. 2016-04-12 13:07:03 +09:30

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.