Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lnwallet commands to extract root priv key #3

Merged
merged 2 commits into from
May 15, 2019

Conversation

Kukks
Copy link
Member

@Kukks Kukks commented May 14, 2019

No description provided.

@Kukks
Copy link
Member Author

Kukks commented May 14, 2019

usage on btcpay:
make sure lnd is not running in image (i modified my docker-entrypoint to test )
docker exec -ti btcpayserver_lnd_bitcoin lnwallet walletinfo --with_root_key --wallet_file /root/.lnd/data/chain/bitcoin/mainnet/wallet.db

@NicolasDorier
Copy link
Member

What does it extract exatcly?

@Kukks
Copy link
Member Author

Kukks commented May 15, 2019

It is this: lightningnetwork#2373

There are those 2 files I sent you in DM
Essentially, it lets you export:

  • a bitcoind compatible wallet file with all the private keys & addresses
  • the BIP32 extended root key

With these commands users can recover their funds without needing to do all the crazy genesis rescans on lnd. Maybe we can even figure out a way to transition users from noseedbackup with this

@NicolasDorier NicolasDorier merged this pull request into btcpayserver:dockerfile2 May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants