rgb-cln/bitcoin
Rusty Russell b99c5620ef struct secret: use everywhere.
We alternated between using a sha256 and using a privkey, but there are
numerous places where we have a random 32 bytes which are neither.

This fixes many of them (plus, struct privkey is now defined in terms of
struct secret).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-05-09 11:43:35 +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 struct secret: use everywhere. 2017-05-09 11:43:35 +09:30
base58.h Use global secp256k1_ctx instead of passing it around. 2016-12-02 18:12:58 +10:30
block.c Update wire from spec 9e0a0e893db389bfe392b2f4db8097949395fe28 2017-04-01 23:59:46 +10:30
block.h Update wire from spec 9e0a0e893db389bfe392b2f4db8097949395fe28 2017-04-01 23:59:46 +10:30
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 struct secret: use everywhere. 2017-05-09 11:43:35 +09:30
pubkey.h type_to_string: add secp256k1_pubkey 2017-01-25 11:03:55 +10: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 bitcoin/script: update scripts to the lightningnetwork/lightning-rfc#123 version 2017-03-07 16:16:59 +10:30
script.h bitcoin/script: update scripts to the lightningnetwork/lightning-rfc#123 version 2017-03-07 16:16:59 +10: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
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 struct bitcoin_tx: remove explicit lengths, use tal_len()/tal_count() 2017-01-25 11:03:55 +10: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.