clightning-dumpkeys

dump clightning output descriptors
git clone git://jb55.com/clightning-dumpkeys
Log | Files | Refs | README | LICENSE

commit 567d4aa24ac36ef56a94ace034e43eceb2874109
parent 4924b6cc5da0a23b6fbf931d3aa68f48ffdc5e8f
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 24 May 2019 14:36:17 -0700

xpubs

Diffstat:
Mclightning-dumpkeys.c | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/clightning-dumpkeys.c b/clightning-dumpkeys.c @@ -182,6 +182,19 @@ static int dump_xpriv(const char *secretfile) { printf("%s\n", out); wally_free_string(out); + ret = bip32_key_serialize(&secretstuff.bip32, + BIP32_FLAG_KEY_PUBLIC, + buf, + BIP32_SERIALIZED_LEN); + + assert(ret == WALLY_OK); + + wally_base58_from_bytes(buf, BIP32_SERIALIZED_LEN, + BASE58_FLAG_CHECKSUM, &out); + + printf("%s\n", out); + wally_free_string(out); + return 0; }