Bitcoin Forum
May 06, 2024, 06:38:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What paths does electrum use for it's receiving addresses?  (Read 466 times)
spiralus (OP)
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
October 22, 2016, 06:43:40 PM
 #1

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
1715020707
Hero Member
*
Offline Offline

Posts: 1715020707

View Profile Personal Message (Offline)

Ignore
1715020707
Reply with quote  #2

1715020707
Report to moderator
1715020707
Hero Member
*
Offline Offline

Posts: 1715020707

View Profile Personal Message (Offline)

Ignore
1715020707
Reply with quote  #2

1715020707
Report to moderator
You can see the statistics of your reports to moderators on the "Report to moderator" pages.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715020707
Hero Member
*
Offline Offline

Posts: 1715020707

View Profile Personal Message (Offline)

Ignore
1715020707
Reply with quote  #2

1715020707
Report to moderator
1715020707
Hero Member
*
Offline Offline

Posts: 1715020707

View Profile Personal Message (Offline)

Ignore
1715020707
Reply with quote  #2

1715020707
Report to moderator
1715020707
Hero Member
*
Offline Offline

Posts: 1715020707

View Profile Personal Message (Offline)

Ignore
1715020707
Reply with quote  #2

1715020707
Report to moderator
btchris
Hero Member
*****
Offline Offline

Activity: 672
Merit: 504

a.k.a. gurnec on GitHub


View Profile WWW
October 22, 2016, 06:54:43 PM
 #2

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.
spiralus (OP)
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
October 22, 2016, 07:15:32 PM
 #3

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.

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
btchris
Hero Member
*****
Offline Offline

Activity: 672
Merit: 504

a.k.a. gurnec on GitHub


View Profile WWW
October 22, 2016, 07:26:01 PM
 #4

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.
spiralus (OP)
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
October 22, 2016, 07:34:17 PM
 #5

Ah Ok. Thanks. Didn't realize there were these various options before
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
October 23, 2016, 02:49:23 PM
 #6

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

Electrum: the convenience of a web wallet, without the risks
btchris
Hero Member
*****
Offline Offline

Activity: 672
Merit: 504

a.k.a. gurnec on GitHub


View Profile WWW
October 23, 2016, 03:05:45 PM
 #7

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....
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!