2019-05-22 14:20:14 -07:00
|
|
|
#ifndef LIGHTNING_COMMON_ADDR_H
|
|
|
|
#define LIGHTNING_COMMON_ADDR_H
|
|
|
|
#include "config.h"
|
2019-10-29 12:00:18 -05:00
|
|
|
#include <bitcoin/chainparams.h>
|
2019-05-22 14:20:14 -07:00
|
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
#include <ccan/tal/tal.h>
|
|
|
|
|
2019-10-29 12:00:18 -05:00
|
|
|
/* Given a scriptPubkey, return an encoded address */
|
2019-05-22 14:20:14 -07:00
|
|
|
char *encode_scriptpubkey_to_addr(const tal_t *ctx,
|
2019-10-29 12:00:18 -05:00
|
|
|
const struct chainparams *chainparams,
|
2020-02-04 10:33:22 +10:30
|
|
|
const u8 *scriptPubkey);
|
2019-05-22 14:20:14 -07:00
|
|
|
|
|
|
|
#endif /* LIGHTNING_COMMON_ADDR_H */
|