mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
3e8f575f9e
You can now activate dual-funded channels using the `--experimental-dual-fund` flag Changelog-Changed: Config: `--experimental-dual-fund` runtime flag will enable dual-funded protocol on this node
36 lines
1.0 KiB
C
36 lines
1.0 KiB
C
#ifndef LIGHTNING_COMMON_PSBT_INTERNAL_H
|
|
#define LIGHTNING_COMMON_PSBT_INTERNAL_H
|
|
|
|
#include "config.h"
|
|
#include <ccan/tal/tal.h>
|
|
#include <common/tx_roles.h>
|
|
|
|
struct wally_psbt;
|
|
struct wally_psbt_input;
|
|
struct witness_element;
|
|
|
|
/* psbt_finalize_input - Finalize an input with a given witness stack
|
|
*
|
|
* Sets the given witness elements onto the PSBT. Also finalizes
|
|
* the redeem_script, if any.
|
|
* @ctx - the context to allocate onto
|
|
* @in - input to set final_witness for
|
|
* @witness_element - elements to add to witness stack
|
|
*/
|
|
void psbt_finalize_input(const tal_t *ctx,
|
|
struct wally_psbt_input *in,
|
|
const struct witness_element **elements);
|
|
/* psbt_to_witness_stacks - Take all sigs on a PSBT and copy to a
|
|
* witness_stack
|
|
*
|
|
* @ctx - allocation context
|
|
* @psbt - PSBT to copy sigs from
|
|
* @opener - which side initiated this tx
|
|
*/
|
|
const struct witness_stack **
|
|
psbt_to_witness_stacks(const tal_t *ctx,
|
|
const struct wally_psbt *psbt,
|
|
enum tx_role side_to_stack);
|
|
|
|
#endif /* LIGHTNING_COMMON_PSBT_INTERNAL_H */
|