Repository navigation
Conversation
d4f609f to
3f86caa
Compare
|
Can you extend it to also dump a mnemonic phrase? |
|
That's not possible. The mnemonic phrase/seed is hashed to create the extended root key. The process cannot be reversed and only the BIP32 extended root key is stored in the |
|
@guggero Please add possibility to export also extended root key (xpriv). It is major piece of information for many tools for handling with wallets. |
|
@slush0 That's what you do with It just says |
Kukks
left a comment
There was a problem hiding this comment.
You need to add COPY --from=builder /go/bin/lnwallet /bin/ to the Dockerfile
cherrypick on lightningnetwork#2373
26d9e9a to
2bd1017
Compare
|
@Kukks you're right, thanks. At the time I probably thought that it wasn't really needed in the docker image but for consistency it's probably best to add it anyway. |
13ea0e3 to
63cd6af
Compare
|
Closing this in favor of https://github.com/guggero/chantools which now contains both functionalities of this PR (and more). |
In this PR we add a new command line utility program that allows us to inspect/dump a
wallet.dbfile.Without this tool, there is currently no way to dump the private keys generated by
lndor even find out how many on-chain addresses have been generated (which is important to know when restoring a wallet from a seed).There are two sub-commands available:
dumpwalletprints abitcoindcompatible dump wallet file to standard out (including all used addresses and their private keys).lnwallet --testnet dumpwallet --wallet_file example.dbwalletinfoprints the node's identity pubkey, the number of addresses used and, if requested, the BIP32 extended root key to standard out.lnwallet --testnet walletinfo --wallet_file example.db --with_root_key