mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
7fd16dc493
The command called “splice” can take a json payload or a ‘splice script’, process it into a list of ‘actions’ and then execute those actions. These actions include or will include everything you would want to do with a splice: * Splice into a channel * Splice out of a channel * Fund from wallet * Deposit to wallet * Send funds to bitcoin address Changelog-Added: A new magic “splice” command is added that can take a ‘splice script’ or json payload and perform any complex splice across multiple channels merging the result into a single transaction. Some features are disabled and will be added in time.
17 lines
520 B
C
17 lines
520 B
C
#ifndef LIGHTNING_COMMON_ADDR_H
|
|
#define LIGHTNING_COMMON_ADDR_H
|
|
#include "config.h"
|
|
#include <bitcoin/chainparams.h>
|
|
|
|
/* Given a scriptPubkey, return an encoded address for p2pkh/p2w{pkh,sh}/p2tr */
|
|
char *encode_scriptpubkey_to_addr(const tal_t *ctx,
|
|
const struct chainparams *chainparams,
|
|
const u8 *scriptpubkey);
|
|
|
|
bool decode_scriptpubkey_from_addr(const tal_t *ctx,
|
|
const struct chainparams *chainparams,
|
|
const char *address,
|
|
u8 **scriptpubkey);
|
|
|
|
#endif /* LIGHTNING_COMMON_ADDR_H */
|