2020-05-21 03:57:00 +02:00
|
|
|
#ifndef LIGHTNING_BITCOIN_PSBT_H
|
|
|
|
#define LIGHTNING_BITCOIN_PSBT_H
|
|
|
|
#include "config.h"
|
2020-05-21 03:57:01 +02:00
|
|
|
#include <ccan/tal/tal.h>
|
2020-05-21 03:57:00 +02:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
struct wally_tx_input;
|
|
|
|
struct wally_tx_output;
|
|
|
|
struct wally_psbt;
|
|
|
|
struct wally_psbt_input;
|
2020-05-21 03:57:01 +02:00
|
|
|
struct wally_tx;
|
|
|
|
|
|
|
|
void psbt_destroy(struct wally_psbt *psbt);
|
|
|
|
|
|
|
|
struct wally_psbt *new_psbt(const tal_t *ctx,
|
|
|
|
const struct wally_tx *wtx);
|
2020-05-21 03:57:00 +02:00
|
|
|
|
|
|
|
struct wally_psbt_input *psbt_add_input(struct wally_psbt *psbt,
|
|
|
|
struct wally_tx_input *input,
|
|
|
|
size_t insert_at);
|
|
|
|
|
|
|
|
void psbt_rm_input(struct wally_psbt *psbt,
|
|
|
|
size_t remove_at);
|
|
|
|
|
|
|
|
struct wally_psbt_output *psbt_add_output(struct wally_psbt *psbt,
|
|
|
|
struct wally_tx_output *output,
|
|
|
|
size_t insert_at);
|
|
|
|
|
|
|
|
void psbt_rm_output(struct wally_psbt *psbt,
|
|
|
|
size_t remove_at);
|
|
|
|
|
|
|
|
#endif /* LIGHTNING_BITCOIN_PSBT_H */
|