mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
9f8e2e0502
This adds a command which outputs the two output descriptors corresponding to our onchain wallet. This can be useful for an external service to monitor / send fund to our wallet. Further, an "xpriv" version of such descriptors could be used to import onchain funds on a new wallet. Changelog-Added: lightning-hsmtool: a new command was added to hsmtool for dumping descriptors of the onchain wallet Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
32 lines
1.1 KiB
Makefile
32 lines
1.1 KiB
Makefile
#! /usr/bin/make
|
|
TOOLS := tools/hsmtool tools/check-bolt
|
|
TOOLS_SRC := $(TOOLS:=.c)
|
|
TOOLS_OBJ := $(TOOLS_SRC:.c=.o)
|
|
|
|
# Make sure these depend on everything.
|
|
ALL_C_SOURCES += $(TOOLS_SRC)
|
|
ALL_C_HEADERS +=
|
|
ALL_PROGRAMS += $(TOOLS)
|
|
|
|
TOOLS_COMMON_OBJS = common/utils.o
|
|
|
|
# We force make to relink this every time, to detect version changes.
|
|
# Do it atomically, otherwise parallel builds can get upset!
|
|
tools/headerversions: FORCE tools/headerversions.o $(CCAN_OBJS)
|
|
@trap "rm -f $@.tmp.$$$$" EXIT; $(LINK.o) tools/headerversions.o $(CCAN_OBJS) $(LOADLIBES) $(LDLIBS) -o $@.tmp.$$$$ && mv $@.tmp.$$$$ $@
|
|
|
|
tools/check-bolt: tools/check-bolt.o $(CCAN_OBJS) $(TOOLS_COMMON_OBJS)
|
|
|
|
tools/hsmtool: tools/hsmtool.o $(CCAN_OBJS) $(TOOLS_COMMON_OBJS) $(BITCOIN_OBJS) common/amount.o common/bech32.o common/bigsize.o common/derive_basepoints.o common/descriptor_checksum.o common/node_id.o common/type_to_string.o wire/fromwire.o wire/towire.o
|
|
|
|
tools/lightning-hsmtool: tools/hsmtool
|
|
cp $< $@
|
|
|
|
clean: tools-clean
|
|
|
|
tools-clean:
|
|
$(RM) tools/headerversions
|
|
$(RM) tools/headerversions.o
|
|
|
|
include tools/test/Makefile
|