2019-05-22 23:20:14 +02:00
|
|
|
#ifndef LIGHTNING_COMMON_ADDR_H
|
|
|
|
#define LIGHTNING_COMMON_ADDR_H
|
|
|
|
#include "config.h"
|
2019-10-29 18:00:18 +01:00
|
|
|
#include <bitcoin/chainparams.h>
|
2019-05-22 23:20:14 +02:00
|
|
|
|
2023-07-10 18:25:43 +02:00
|
|
|
/* Given a scriptPubkey, return an encoded address for p2pkh/p2w{pkh,sh}/p2tr */
|
2019-05-22 23:20:14 +02:00
|
|
|
char *encode_scriptpubkey_to_addr(const tal_t *ctx,
|
2019-10-29 18:00:18 +01:00
|
|
|
const struct chainparams *chainparams,
|
2020-02-04 01:03:22 +01:00
|
|
|
const u8 *scriptPubkey);
|
2019-05-22 23:20:14 +02:00
|
|
|
|
|
|
|
#endif /* LIGHTNING_COMMON_ADDR_H */
|