core-lightning/common
Rusty Russell bd19ec2292 fundpsbt: new JSON API to gather UTXOs.
Technically, they could do this themselves, but it's much nicer to have one
place to do it (and it makes sure we get the required information into the
PSBT, which is actually not entirely accessible through listfunds, as that
doesn't want to consult with the HSM for close outputs).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON RPC: new low-level coin selection `fundpsbt` routine.
2020-07-15 18:49:02 +09:30
..
test elements: convenience methods for dealing with assets 2020-07-13 11:37:24 +09:30
addr.c addr: handle P2SH/P2PKH in scriptpubkey encoding 2019-11-13 03:31:20 +00:00
addr.h common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
amount.c elements: convenience methods for dealing with assets 2020-07-13 11:37:24 +09:30
amount.h elements: convenience methods for dealing with assets 2020-07-13 11:37:24 +09:30
base32.c
base32.h
base64.c Init commit to be able to create a tor static service on the fly. 2019-12-03 23:35:18 +01:00
base64.h Init commit to be able to create a tor static service on the fly. 2019-12-03 23:35:18 +01:00
bech32_util.c
bech32_util.h
bech32.c
bech32.h
bigsize.c wire: update to latest version of the spec. 2020-06-23 18:49:15 +02:00
bigsize.h wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
bip32.c wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
bip32.h wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
blinding.c common: add blinding helpers. 2020-04-04 16:08:49 +10:30
blinding.h common: add blinding helpers. 2020-04-04 16:08:49 +10:30
bolt11.c invoice: Parse amounts without a multiplier as BTC not msats 2020-04-11 08:43:06 +09:30
bolt11.h cleanup: make 'u8 *features' and 'struct feature_set *fset' more explicit. 2020-04-03 13:13:21 +10:30
channel_config.c
channel_config.h bolt: update to BOLT spec changes (extract format + type specifications) 2019-07-16 06:10:58 +00:00
channel_id.c common/channel_id: move channel_id into its own file. 2020-05-18 14:51:12 +02:00
channel_id.h common/channel_id: move channel_id into its own file. 2020-05-18 14:51:12 +02:00
close_tx.c tx-psbt: pass in the witness script (if known) when adding an input 2020-06-11 13:13:13 +02:00
close_tx.h tx-psbt: pass in the witness script (if known) when adding an input 2020-06-11 13:13:13 +02:00
closing_fee.h closingd: configurable closing fee negotiation step 2020-04-07 13:52:48 +09:30
coin_mvt.c coins: use the chain's BIP173 name instead of a 'unit of account' 2020-05-12 15:46:58 +09:30
coin_mvt.h common/channel_id: move channel_id into its own file. 2020-05-18 14:51:12 +02:00
configdir.c config: limit depth on includes. 2019-11-23 22:42:34 +00:00
configdir.h config: explicitly disallow nonsensical options. 2019-11-23 22:42:34 +00:00
crypto_state.c
crypto_state.h
crypto_sync.c common: allow subdaemons to specify the node_id in status messages. 2019-11-18 04:50:22 +00:00
crypto_sync.h
cryptomsg.c transition from status_trace() to status_debug 2019-09-10 02:02:51 +00:00
cryptomsg.h
daemon_conn.c
daemon_conn.h
daemon.c setup: create a common setup which will handle the wally-context 2020-05-19 13:35:42 +09:30
daemon.h Add missing extern qualifiers for gcc 10 2020-02-02 12:59:17 +10:30
decode_array.c gossipd: hand (any) timestamps through to callback for query_channel_range. 2019-10-10 21:48:52 -05:00
decode_array.h wire: update to latest version of the spec. 2020-06-23 18:49:15 +02:00
derive_basepoints.c developer: add --dev-force-channel-secrets. 2019-07-17 12:55:37 -05:00
derive_basepoints.h developer: add --dev-force-channel-secrets. 2019-07-17 12:55:37 -05:00
dev_disconnect.c dev_disconnect: make it more reliable. 2019-10-10 21:48:52 -05:00
dev_disconnect.h
ecdh_hsmd.c wire: move towire/fromwire_short_channel_id out to bitcoin/short_channel_id.c 2020-05-18 14:51:12 +02:00
ecdh_hsmd.h common: generalize ecdh function. 2020-04-04 16:08:49 +10:30
ecdh.h common: generalize ecdh function. 2020-04-04 16:08:49 +10:30
errcode.h Use dedicated type for error codes 2020-01-31 06:02:47 +00:00
features.c fromwire: return NULL if array empty 2020-07-01 19:50:02 -05:00
features.h wire: update to latest version of the spec. 2020-06-23 18:49:15 +02:00
fee_states.c wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
fee_states.h df: rename 'funder' to 'opener' 2020-05-04 10:22:26 +09:30
funding_tx.c psbt: move witness script storage into the psbt 2020-05-21 18:45:07 +09:30
funding_tx.h tx: Add chainparams to struct bitcoin_tx as context 2019-07-31 23:22:54 +00:00
gossip_constants.h gossipd: restore a flag for fast pruning 2019-09-27 00:01:34 +00:00
gossip_rcvd_filter.c common/gossip_rcvd_filter: avoid DoS. 2019-09-06 14:35:01 +02:00
gossip_rcvd_filter.h common/gossip_rcvd_filter: cache for received gossip. 2019-09-06 14:35:01 +02:00
gossip_store.c BOLT: update to latest version. 2020-03-31 13:36:02 +02:00
gossip_store.h channeld: tell gossipd what the features are for our local channels. 2020-05-07 08:44:58 +09:30
hash_u5.c common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
hash_u5.h common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
hmac.c common: new file hmac for hmac calculation. 2020-03-25 14:26:28 +10:30
hmac.h common: new file hmac for hmac calculation. 2020-03-25 14:26:28 +10:30
htlc_state.c
htlc_state.h
htlc_trim.c
htlc_trim.h
htlc_tx.c tx-psbt: pass in the witness script (if known) when adding an input 2020-06-11 13:13:13 +02:00
htlc_tx.h tx-psbt: pass in the witness script (if known) when adding an input 2020-06-11 13:13:13 +02:00
htlc_wire.c channeld: support HTLCs with blinding (EXPERIMENTAL_FEATURES) 2020-04-14 12:51:18 +09:30
htlc_wire.h channeld: support HTLCs with blinding (EXPERIMENTAL_FEATURES) 2020-04-14 12:51:18 +09:30
htlc.h
initial_channel.c channel_tx: add the commitment sig and pubkey data to the commit tx 2020-06-11 13:13:13 +02:00
initial_channel.h watchtower: Add function to create penalty transactions 2020-05-07 15:05:39 +09:30
initial_commit_tx.c tx: add setter for tx locktime 2020-06-11 13:13:13 +02:00
initial_commit_tx.h tx-psbt: pass in the witness script (if known) when adding an input 2020-06-11 13:13:13 +02:00
io_lock.c
io_lock.h common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
json_command.h Use dedicated type for error codes 2020-01-31 06:02:47 +00:00
json_helpers.c json: Add helper to serialize short_channel_id_dir 2020-07-02 11:54:12 +02:00
json_helpers.h json: Add helper to serialize short_channel_id_dir 2020-07-02 11:54:12 +02:00
json_stream.c common/json_stream.c: Implement a json_add_jsonstr to add already-JSON strings to json_stream objects. 2020-04-09 14:09:23 +09:30
json_stream.h common/json_stream.c: Implement a json_add_jsonstr to add already-JSON strings to json_stream objects. 2020-04-09 14:09:23 +09:30
json_tok.c common/json_tok: expose param_txid. 2020-07-08 21:07:20 +02:00
json_tok.h common/json_tok: expose param_txid. 2020-07-08 21:07:20 +02:00
json.c json: Add helper to decode sha256 hashes 2020-07-02 11:54:12 +02:00
json.h json: Add helper to decode sha256 hashes 2020-07-02 11:54:12 +02:00
jsonrpc_errors.h lightningd/opening_control.c: fundchannel_cancel no longer requires a channel_id argument. 2020-07-02 01:10:59 +00:00
key_derive.c Make option_static_remotekey non-EXPERIMENTAL now it's in spec. 2019-09-30 01:50:44 +00:00
key_derive.h
keyset.c common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
keyset.h derive_keyset: don't rotate key for remote iff option_static_remotekey. 2019-09-10 16:18:25 -05:00
Makefile setup: create a common setup which will handle the wally-context 2020-05-19 13:35:42 +09:30
memleak.c Add missing extern qualifiers for gcc 10 2020-02-02 12:59:17 +10:30
memleak.h Add missing extern qualifiers for gcc 10 2020-02-02 12:59:17 +10:30
msg_queue.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
msg_queue.h
node_id.c wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
node_id.h wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
onion.c tools/generate-wire: no more lonely messages! 2020-05-06 14:56:09 -05:00
onion.h common/onion: add blinding and enctlv encoding. 2020-04-14 12:51:18 +09:30
onionreply.c wire: move towire/fromwire_short_channel_id out to bitcoin/short_channel_id.c 2020-05-18 14:51:12 +02:00
onionreply.h common: add struct onionreply 2020-01-23 16:17:42 +10:30
overflows.h
param.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
param.h common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
peer_billboard.c
peer_billboard.h
peer_failed.c channeld: treat all incoming errors as "soft", so we retry. 2019-12-13 16:36:18 +01:00
peer_failed.h channeld: treat all incoming errors as "soft", so we retry. 2019-12-13 16:36:18 +01:00
peer_status_wire.csv common/channel_id: move channel_id into its own file. 2020-05-18 14:51:12 +02:00
penalty_base.c watchtower: Add a struct containing the penalty base information 2020-05-07 15:05:39 +09:30
penalty_base.h watchtower: Add a struct containing the penalty base information 2020-05-07 15:05:39 +09:30
per_peer_state.c Move gossip_constants.h into common/ 2019-09-25 04:01:56 +00:00
per_peer_state.h developer: consolidiate gossip timing options into one --dev-fast-gossip. 2019-09-20 06:55:00 +00:00
permute_tx.c psbt: remove input_amounts from bitcoin tx 2020-06-11 13:13:13 +02:00
permute_tx.h
ping.c transition from status_trace() to status_debug 2019-09-10 02:02:51 +00:00
ping.h
pseudorand.c
pseudorand.h
read_peer_msg.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
read_peer_msg.h channeld: treat all incoming errors as "soft", so we retry. 2019-12-13 16:36:18 +01:00
setup.c setup: create a common setup which will handle the wally-context 2020-05-19 13:35:42 +09:30
setup.h setup: create a common setup which will handle the wally-context 2020-05-19 13:35:42 +09:30
socket_close.c
socket_close.h
sphinx.c common: make sphinx.c use hmac.c. 2020-03-25 14:26:28 +10:30
sphinx.h wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
status_levels.h
status_wire.c
status_wire.csv wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
status_wire.h
status.c lightningd: enable io logging on subdaemons iff we're going to print it. 2019-11-18 04:50:22 +00:00
status.h common: allow subdaemons to specify the node_id in status messages. 2019-11-18 04:50:22 +00:00
subdaemon.c common: allow subdaemons to specify the node_id in status messages. 2019-11-18 04:50:22 +00:00
subdaemon.h common: reduce header differences for DEVELOPER vs non-DEVELOPER. 2019-09-06 14:35:01 +02:00
timeout.c
timeout.h
type_to_string.c
type_to_string.h wally-tx: add type-to-string for a wally-tx 2020-07-13 11:37:24 +09:30
utils.c common/utils.c: Correctly handle NULL taken pointer in tal_dup_talarr. 2020-06-23 12:48:20 +09:30
utils.h utils: add marker for functions which take ownership of pointers. 2020-04-16 09:40:39 +09:30
utxo.c fundpsbt: new JSON API to gather UTXOs. 2020-07-15 18:49:02 +09:30
utxo.h utxos: add a 'reserved_til' marker for utxos 2020-07-15 18:49:02 +09:30
version.c
version.h
wallet_tx.c wallet: allow to withdraw with unconfirmed utxos 2020-04-01 22:58:18 -05:00
wallet_tx.h
wallet.c
wallet.h wallet: Add transaction annotation type 2019-10-07 20:03:24 -05:00
wire_error.c
wire_error.h
wireaddr.c common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
wireaddr.h common/wireaddr: don't include lightningd/lightningd. 2020-02-27 14:16:16 +10:30
withdraw_tx.c withdraw: refactor change output handling 2020-06-23 14:49:32 +02:00
withdraw_tx.h withdraw: refactor change output handling 2020-06-23 14:49:32 +02:00