Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Jodmapht on December 14, 2022, 03:51:37 AM



Title: LND: "wrong seed version" from lncli when trying to create a wallet..
Post by: Jodmapht on December 14, 2022, 03:51:37 AM
Hi,

I am trying LND and following Raspibolt's instructions (https://raspibolt.org/guide/lightning/lightning-client.html). I tried created the LND wallet with lncli, by entering an existing 24-word mnemonic (option 'y').
After I entered the seed words, chose to use no passphrase, and the default look-ahead option, I got the error: "[/lnrpc.WalletUnlocker/InitWallet]: wrong seed version"
What is this about exactly?

Thanks!


Title: Re: LND: "wrong seed version" from lncli when trying to create a wallet..
Post by: nc50lc on December 14, 2022, 09:41:31 AM
For that error message, refer to the commented part of the code here: github.com/lightningnetwork/lnd/blob/master/aezeed/errors.go#L6-L8 (https://github.com/lightningnetwork/lnd/blob/83f1c2c9b68026118bf5ba8aa3cfc7975c2358b7/aezeed/errors.go#L6-L8)

I'm not using lnd but the comment suggests that it has to be an "aezeed cipher seed", if you've used a BIP39 seed, the it must be the issue.
Of course, as the disclaimer stated, I could be wrong.


Title: Re: LND: "wrong seed version" from lncli when trying to create a wallet..
Post by: Jodmapht on December 14, 2022, 01:38:30 PM
For that error message, refer to the commented part of the code here: github.com/lightningnetwork/lnd/blob/master/aezeed/errors.go#L6-L8 (https://github.com/lightningnetwork/lnd/blob/83f1c2c9b68026118bf5ba8aa3cfc7975c2358b7/aezeed/errors.go#L6-L8)

I'm not using lnd but the comment suggests that it has to be an "aezeed cipher seed", if you've used a BIP39 seed, the it must be the issue.
Of course, as the disclaimer stated, I could be wrong.

Hi, yes it is, I used BIP39. I did not know about aezeed. So it uses only 16 bytes max of entropy vs 32 bytes for BIP39?


Title: Re: LND: "wrong seed version" from lncli when trying to create a wallet..
Post by: nc50lc on December 14, 2022, 01:47:29 PM
Hi, yes it is, I used BIP39. I did not know about aezeed. So it uses only 16 bits max of entropy vs 32 bits for BIP39?
Based from this: github.com/lightningnetwork/lnd/blob/master/aezeed/README.md (http://github.com/lightningnetwork/lnd/blob/master/aezeed/README.md), it's more than just the difference in entropy size.
But I think you meant "bytes" since 16/32 bits of entropy is too low.


Title: Re: LND: "wrong seed version" from lncli when trying to create a wallet..
Post by: Jodmapht on December 14, 2022, 02:16:27 PM
Hi, yes it is, I used BIP39. I did not know about aezeed. So it uses only 16 bits max of entropy vs 32 bits for BIP39?
Based from this: github.com/lightningnetwork/lnd/blob/master/aezeed/README.md (http://github.com/lightningnetwork/lnd/blob/master/aezeed/README.md), it's more than just the difference in entropy size.
But I think you meant "bytes" since 16/32 bits of entropy is too low.

Yes of course sorry for the typo, I fixed it. Yes I understand that aezeed has advantages. It would be great if it supported 32 bytes of entropy with extra bytes/words to add the extra features.