Bitcoin Forum
October 20, 2018, 10:06:45 AM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Does Ledger Give Different Extended Public Keys for Both Segwit and Legacy Addr  (Read 41 times)
Rickorick
Jr. Member
*
Offline Offline

Activity: 42
Merit: 1


View Profile
March 13, 2018, 12:09:33 AM
 #1

I want to know if Ledger Gives Different Extended Public Keys for Both Segwit and Legacy Addresses, because i tried exporting my extended public key to recover BCH i mistakenly sent to a segwit address using https://bch.btc.com/docs/help/bch_segwit_recovery, but they said they xpub key is not associated with the address, but when i log in to ledger on chrome, i see the address there.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
HCP
Hero Member
*****
Offline Offline

Activity: 756
Merit: 932

<insert witty quote here>


View Profile
March 13, 2018, 04:48:43 AM
Merited by mocacinno (1), Xynerise (1)
 #2

Yes...

SegWit uses m/49'/0'/0' derivation path
Legacy uses m/44'/0'/0' derivation path

if you look at: https://iancoleman.io/bip39/

Generate a random 24 word seed... (DO NOT put your Ledger seed in here!) click the BIP44 Tab and look at the "Account Extended Public Key". Then click the "BIP32" tab... set the "client" to "Custom"... and set the derivation path to: m/44'/0'/0' You'll notice that the "BIP32 Extended Public Key" is the same as the "Account Extended Public Key" form the BIP44 tab... this will be the same as the xpub generated by the "Legacy" wallet in Ledger (using the same seed mnemonic)

If you now change the derivation path to: m/49'/0'/0' you'll note that the "BIP32 Extended Public Key" changes... this should be the same as the xpub for a "SegWit" wallet in Ledger (using the same seed mnemonic)

Rickorick
Jr. Member
*
Offline Offline

Activity: 42
Merit: 1


View Profile
March 13, 2018, 09:42:07 AM
 #3

Thanks man.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!