cln/bitcoin
Rusty Russell 74e7264d54 bitcoin: make input witness weight calculation explicit.
This is inspired by a patch from @whitslack, which overlapped with this series.
Most importantly, there was only one call to bitcoin_tx_simple_input_weight(),
and it is better to be explicit with that one.

This also changes our funder calculation to assume our own input is taproot,
which it is likely to be given we've defaulted to taproot for outputs for
change addresses since 23.08.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-05-06 12:27:53 +09:30
..
test plugin: Add tracing support for send_outreq 2024-11-13 13:15:52 +01:00
address.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
base58.c base58: use _n api variant to avoid duplicating our input string 2024-01-16 15:47:03 +01:00
base58.h bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
block.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
block.h global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10:30
chainparams.c common: Chainparams for testnet4 support 2025-01-13 15:45:19 -08:00
chainparams.h Fix incorrect hex value for Signet port 2024-02-16 15:54:29 +01:00
feerate.c lightningd: clarify uses of dynamic (mempool) feerate floor, and static. 2023-04-10 07:31:12 +09:30
feerate.h lightningd: clarify uses of dynamic (mempool) feerate floor, and static. 2023-04-10 07:31:12 +09:30
locktime.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
locktime.h bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
Makefile bitcoin: add to check-source-bolt, and (minor) quotes fixup. 2022-06-18 13:45:09 +09:30
preimage.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
preimage.h global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10:30
privkey.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
privkey.h global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10:30
psbt.c psbt: avoid duplicating the input string when parsing from base64 2025-03-21 09:48:57 +10:30
psbt.h splice: Update splice fee maximums 2024-11-12 06:42:52 +10:30
pubkey.c secp256k1 pubkey constant fix 2024-11-17 10:55:28 +10:30
pubkey.h global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10:30
README Fix typo. 2015-06-25 13:48:05 +09:30
script.c script: consistently take the script length in identification functions 2024-03-18 12:24:49 +10:30
script.h script: consistently take the script length in identification functions 2024-03-18 12:24:49 +10:30
shadouble.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
shadouble.h global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10:30
short_channel_id.c bitcoin/short_channel_id: pass by copy everywhere. 2024-03-20 13:51:48 +10:30
short_channel_id.h bitcoin: add short_channel_id_dir_eq. 2024-08-07 20:35:30 +09:30
signature.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
signature.h global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10:30
tx.c bitcoin: make input witness weight calculation explicit. 2025-05-06 12:27:53 +09:30
tx.h bitcoin: make input witness weight calculation explicit. 2025-05-06 12:27:53 +09:30
tx_parts.c tx_parts: use wally to clone tx inputs 2024-02-21 12:01:33 +01:00
tx_parts.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
varint.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
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.