rgb-cln/bitcoin
Rusty Russell 84dc943cf5 common/bolt11_json: extract bolt11->json code.
Our new "decode" command will also handle bolt11.  We make a few cleanups:

1. Avoid type_to_string() in JSON, instead use format functions directly.
2. Don't need to escape description now that JSON core does that for us.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-01-09 14:34:35 +10:30
..
test unittest: use common_setup / common_shutdown almost everywhere. 2020-12-02 12:55:09 +10:30
Makefile Makefile: make check-includes check all the non-generated files. 2020-10-22 12:14:34 +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 utils: use a cleaner pattern to capture wally allocations. 2020-09-23 14:45:53 +02:00
base58.h wallet: Pass chainparams to address serialization 2019-05-10 23:07:49 +00:00
block.c block: Compute the txids only once 2020-09-02 13:21:32 +02:00
block.h block: Compute the txids only once 2020-09-02 13:21:32 +02:00
chainparams.c Updating signet chainparams for the latest PoW fix 2020-09-24 09:24:14 +09:30
chainparams.h elements,pset: populate elements specific data for PSBTs 2020-07-13 11:37:24 +09:30
feerate.c feerate: remove duplicate method 2020-10-20 14:27:19 +10:30
feerate.h feerate: remove duplicate method 2020-10-20 14:27:19 +10:30
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 wally: remove wally casts that are no longer needed 2020-11-30 10:28:04 +10:30
psbt.h psbt: have the unknown map 'add' be a 'set' instead 2020-10-20 14:27:19 +10:30
pubkey.c bitcoin/pubkey: add pubkey32 primitive for xonly pubkey types. 2020-12-09 16:40:13 +10:30
pubkey.h bitcoin/pubkey: add pubkey32 primitive for xonly pubkey types. 2020-12-09 16:40:13 +10:30
script.c script: break out redeemscript->scriptsig function 2020-10-26 13:04:42 +10:30
script.h script: break out redeemscript->scriptsig function 2020-10-26 13:04:42 +10: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 common/bolt11_json: extract bolt11->json code. 2021-01-09 14:34:35 +10:30
signature.h common/bolt11_json: extract bolt11->json code. 2021-01-09 14:34:35 +10:30
tx.c bitcoin_tx_check: don't rely on tmpctx. 2020-12-07 14:23:59 +01:00
tx.h bitcoin/tx: fix type of outpoint (n is a u32), simplify json_to_outpoint 2020-12-09 06:56:21 +10:30
tx_parts.c utils: use a cleaner pattern to capture wally allocations. 2020-09-23 14:45:53 +02:00
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.