core-lightning/bitcoin
niftynei 04b6ad06cb change fees: more accurate rounding for change amount
We were getting off-by-one for the total amount that the change is for,
since it rounds the fee *down*, independent of the total weight of the
entire tx.

We fix this by using the diff btw the fee of the total weight (w/ and
w/o the change output)
2021-07-19 16:13:24 -04:00
..
test update-mocks: make sure we cover all test programs. 2021-05-22 17:53:04 +09:30
address.h
base58.c utils: use a cleaner pattern to capture wally allocations. 2020-09-23 14:45:53 +02:00
base58.h
block.c check-includes: allow redundant "config.h" 2021-02-04 12:02:36 +10:30
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 check-includes: allow redundant "config.h" 2021-02-04 12:02:36 +10:30
locktime.h
Makefile Makefile: make check-includes check all the non-generated files. 2020-10-22 12:14:34 +10:30
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 libwally: update to release_0.8.3 2021-06-03 11:24:33 +09:30
psbt.h psbt: mark psbt arg as const for psbt_compute_fee 2021-03-09 14:55:05 +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
README
script.c bitcoin/script: use script opcode constants from wally_script.h 2021-03-02 14:42:34 +10:30
script.h bitcoin/script: use script opcode constants from wally_script.h 2021-03-02 14:42:34 +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 chore: fix compile issue discovered by gcc 2021-06-11 13:53:41 +09:30
signature.h common/bolt11_json: extract bolt11->json code. 2021-01-09 14:34:35 +10:30
tx_parts.c check-includes: allow redundant "config.h" 2021-02-04 12:02:36 +10:30
tx_parts.h bitcoin/tx_parts: infrastructure for partial bitcoin txs. 2020-05-27 10:12:03 +09:30
tx.c change fees: more accurate rounding for change amount 2021-07-19 16:13:24 -04:00
tx.h change fees: more accurate rounding for change amount 2021-07-19 16:13:24 -04:00
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

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.