lightninglabs / chantools

A loose collection of tools all somehow related to lnd and Lightning Network channels.
MIT License
222 stars 32 forks source link

showroot returns error #57

Closed feelancer21 closed 1 year ago

feelancer21 commented 1 year ago

I wanted to use showroot and entered my azeed. For one node it returned

error reading root key: failed to decrypt seed with passphrase: invalid passphrase

I entered no passphrase and pressed only enter. The seed was 148 characters long.

guggero commented 1 year ago

Well, it appears you used a passphrase when creating the seed. Did you create it on a RaspiBlitz?

feelancer21 commented 1 year ago

It was a lnd instance I create on my own with lncli create. I am pretty sure that I don't have entered a passphrase. And If I enter some random passphrase I get the same error. I had expected that I see different rootkeys in this case. And the seed I entered seems to be correct. If I delete a character or one word I get different errors.

guggero commented 1 year ago

Sorry, I don't know what to tell you. I just tried the latest version of chantools with a bunch of seeds, both with and without passphrases, and it always works for me. Maybe try a bunch of your default passwords, perhaps you did set one when creating it?

feelancer21 commented 1 year ago

Oups, my standard passphrase worked. Was a good idea to test a potential recover process with chantools ;).

I have not known that the passphrase 'changed' the azeed seed. I have thought it's the same like with BIP39 where you have one seed and can choose different passphrases which leads to different rootkeys.

guggero commented 1 year ago

Okay, cool.

That's one of the good features of aezeed. You can actually tell if the passphrase is incorrect or not. On the other hand BIP39 gives you plausible deniability that the seed still gives you a valid root key even if the password is wrong.

Going to close as the seed phrase was needed.