ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.81k stars 889 forks source link

exposesecret: a way to back up the hsm_secret via rpc (if enabled!) #7647

Open rustyrussell opened 2 weeks ago

rustyrussell commented 2 weeks ago

As co-programmed with @ShahanaFarooqui .

If you set exposesecret-passphrase you can use that to retrieve the hsm_secret using the exposesecret command. It doesn't handle encrypted hsm secrets (if you're prepared type in the secret on every start, you don't want this).