Title: What paths does electrum use for it's receiving addresses? Post by: spiralus on October 22, 2016, 06:43:40 PM Hi,
I can see how Electrum generates xprv,xpub from it's input seed, but I can't tell the paths to the Generated Addresses. I've been trying to debug this for a while but it's difficult with some many paths through the code. I would think the path would be "m/44'/0'/0'/0/0" for the 1st address but it doesn't match. Any help is appreciated. Thanks Title: Re: What paths does electrum use for it's receiving addresses? Post by: btchris on October 22, 2016, 06:54:43 PM Electrum uses m/c/i, where c is 0 for external, 1 for internal (change), and i is the incrementing index.
For a summary of various wallets, see this spreadsheet (https://1drv.ms/x/s!Au4WcaErEk9Ygjmhf3-AhBQDqemM). Title: Re: What paths does electrum use for it's receiving addresses? Post by: spiralus on October 22, 2016, 07:15:32 PM Electrum uses m/c/i, where c is 0 for external, 1 for internal (change), and i is the incrementing index. For a summary of various wallets, see this spreadsheet (https://1drv.ms/x/s!Au4WcaErEk9Ygjmhf3-AhBQDqemM). Thanks for spreadsheet. I see BIP44 for Electrum 2.6 m/44'/0'/a'/c/i , for a = account index c = 0 for external, 1 for internal (change) i = key/address index Which is what I'd expect. So I'd expect 1st address at m/44'/0'/0'/0/0, do you disagree? Thanks Title: Re: What paths does electrum use for it's receiving addresses? Post by: btchris on October 22, 2016, 07:26:01 PM That's only for wallets which are restored from a BIP39-compliant mnemonic sentence created by some other not-Electrum software (Electrum currently supports this, but it may not always).
Wallets created by Electrum use Electrum's proprietary mnemonic-to-xprv algorithm, and use a path of m/c/i. Title: Re: What paths does electrum use for it's receiving addresses? Post by: spiralus on October 22, 2016, 07:34:17 PM Ah Ok. Thanks. Didn't realize there were these various options before
Title: Re: What paths does electrum use for it's receiving addresses? Post by: ThomasV on October 23, 2016, 02:49:23 PM Wallets created by Electrum use Electrum's proprietary mnemonic-to-xprv algorithm, and use a path of m/c/i. our algorithm is not proprietary, any other wallet can use it. some documentation here: http://docs.electrum.org/en/latest/seedphrase.html Title: Re: What paths does electrum use for it's receiving addresses? Post by: btchris on October 23, 2016, 03:05:45 PM our algorithm is not proprietary, any other wallet can use it. some documentation here: http://docs.electrum.org/en/latest/seedphrase.html My apologies, that was a very poor choice of words on my part (I should know better). I should have written "different (and in some ways better) than BIP-39" or similar.... |