Lightning: Where is the private key located after created by 'newaddr'

Created on 22 Jan 2018  路  4Comments  路  Source: ElementsProject/lightning

Thanks

question

Most helpful comment

The generatior random bytes are in hsm_secret depending on main or testnet choice at first start the first key ist created by using the seed bitcoin seed and incremented salt until it fits wally.
This yield to the master_extkey

Then ext_priv and ext_pub. derive from that
So basicly one can say it is stored in hsm_secret but this is no key ist only a sort of generator but it will allways init your master_ext key note depending on main or testnet the random gerator byte yield to different master keys .
So allways backup this file.

All 4 comments

The generatior random bytes are in hsm_secret depending on main or testnet choice at first start the first key ist created by using the seed bitcoin seed and incremented salt until it fits wally.
This yield to the master_extkey

Then ext_priv and ext_pub. derive from that
So basicly one can say it is stored in hsm_secret but this is no key ist only a sort of generator but it will allways init your master_ext key note depending on main or testnet the random gerator byte yield to different master keys .
So allways backup this file.

Any chance to get a 'dumpprivkey' method? The funds disappeared from lnd despite still being unspent on the chain. Withdraw says not enough funds (the first time it hung, the second time it said not enough funds, but no transactions were created or broadcasted).

The funds disappeared from lnd despite still being unspent on the chain.

Are you using c-lightning or lnd?

For the general desire to have dumpprivkey we have #746. I think the funds that disappeared I'm unclear on where they disappeared from. We have added funds allocated to channels in #964, which should address the confusion that funds disappearing from listfunds and being allocated to channels was causing.

I'm closing this since I think both issues are addressed, or tracked somewhere else.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ldn2017 picture ldn2017  路  4Comments

rustyrussell picture rustyrussell  路  4Comments

AndiMacTen picture AndiMacTen  路  3Comments

brunoaduarte picture brunoaduarte  路  5Comments

ZsZolee picture ZsZolee  路  5Comments