Bitcoin Forum

Bitcoin => Hardware wallets => Topic started by: colemanjr on April 16, 2020, 09:04:58 AM



Title: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: colemanjr on April 16, 2020, 09:04:58 AM
Hi Everyone,

I have used my Xpub which i derived from a native segwitt wallet on Ledger to receive payments.
However, The funds are not showing up on ledger. I have imported the xpub to Electrum, and I have a watch-only wallet where I see the funds.
I am willing to give  €100 reward in btc for the person that can help me with this.

What I have done until now:
Widened the search gap on both electrum and ledger.
activated the Extended account search on ledger

Can anyone help me with this problem?

Thanks in advance


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Rath_ on April 16, 2020, 12:29:59 PM
I have used my Xpub which i derived from a native segwitt wallet on Ledger to receive payments.

From where did you exactly copy the public key in the Ledger Live? Did you select 'Edit Account' and then copy the key from the 'Advanced logs'?


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: bitmover on April 16, 2020, 06:18:14 PM
Have you received many payments?
It is possible that some of your funds are in addresses which Ledger Live app is not scanning.

I would try to use Electrum with your hardware wallet (don't make a watch-only wallet).
Download Electrum from Electrum.org

Then go here to learn how to connect electrum to your ledger wallet:
https://support.ledger.com/hc/en-us/articles/115005161925-Set-up-and-use-Electrum



In Electrum, you should scan for more addresses:

Go show menu > view console, switch to console tab and type:

Code:
wallet.change_gap_limit( 150 )

This will make your wallet scan for the next 150 addresses. Your funds might be there. You can try a bigger number if you wish. It is possible that your funds are in another derivation path as well.

What was your payment processor? Maybe we can get more info from their website?


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Csmiami on April 16, 2020, 06:19:52 PM
If you are not using a passphrase on the Ledger, you could simply import the seed into electrum and sweep it into a new Ledger account (new seed and all, because you've exposed the previous one when importing).

If you can see the funds in electrum, note the address with the funds, and this is rather a wild guess, but maybe there's some sort of code/command that will let your Ledger show those addresses


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: bitmover on April 16, 2020, 06:26:48 PM
If you are not using a passphrase on the Ledger, you could simply import the seed into electrum and sweep it into a new Ledger account (new seed and all, because you've exposed the previous one when importing).

Don't do that. This is against all security procedures recommended by the manufacturer of the hardware wallet.. It will expose your funds, your seed and defeats the whole purpose of using a hardware wallet.

Ledger company made a guide on how to properly use your ledger nano with electrum wallet, without exposing your seed.
https://support.ledger.com/hc/en-us/articles/115005161925-Set-up-and-use-Electrum


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Rickorick on April 16, 2020, 11:36:02 PM
Connect and unlock your Ledger device.
Open the Bitcoin app.
Launch Electrum from your applications folder.
Create a new wallet
Select Standard wallet and click Next.
At the keystore screen, select Use a hardware device and click Next.
Select your Ledger device and click next.
Choose the right derivation path for your account and click Next (in your case, Native segwit for an account with addresses starting with a bc1)

If you don’t see the coins, go to the console tab in electrum.

Type this; wallet.change_gap_limit ( 600 )

You should see the coins.

Alternatively, you can go back to your ledger device, locate the derivation path of the xpub and substitute above.

If it works, here’s my address for the tip 33TjZg3UUcWT7YjLwMgacoMq9VE7GyA8uX


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: HCP on April 17, 2020, 12:11:52 AM
I have used my Xpub which i derived from a native segwitt wallet on Ledger to receive payments.
From where did you exactly copy the public key in the Ledger Live? Did you select 'Edit Account' and then copy the key from the 'Advanced logs'?

I suspect this is exactly where the issue has arisen from. For some reason, Ledger still shows legacy xpubs... for native segwit accounts!!! :o :o  This *should* of course be a zpub. :-\

The end result, being that Electrum will likely be generating Legacy addresses... This can be confirmed by going to "Wallet -> info" menu in Electrum and checking the "script type". It will say "P2PKH" and your addresses in Electrum will start with a "1".

Electrum will only generate "bc1" (aka bech32 aka native segwit) addresses from a "master key" if that master key entered is "zpub". Unfortunately, you can't just do that now, because you funds are on legacy addresses


The "Good News"™, is that your funds are able to be recovered.
The "Better News"™, is that you can recover them, without needing to "expose" your Ledger seed!  ;) 8)


The process would be:

Setup
- Ensure that your Ledger Live is NOT running (just helps prevent USB connection issues with Electrum
- Ensure that your Ledger device is connected, unlocked with PIN, and you have opened the "Bitcoin" app on the device (should say 'Application is Ready')
https://talkimg.com/images/2023/11/15/zrEzH.png?1

1. In Electrum, select: "File -> New/Restore" from the menu:
https://talkimg.com/images/2023/11/15/zrIcg.png


2. Give the wallet a name... something unique like "Ledger_XPubRecovery" and then click "Next":
https://talkimg.com/images/2023/11/15/zrs0I.png


3. Select "Standard Wallet" and then click "Next":
https://talkimg.com/images/2023/11/15/zrkmd.png


4. Select "Use a hardware device" and then click "Next":
https://talkimg.com/images/2023/11/15/zrvJ5.png


5. Electrum should identify your Ledger device... click "Next":
https://talkimg.com/images/2023/11/15/zrYpz.png


6. Select "legacy (p2pkh)" option... and then change the derivation path to: m/84'/0'/0':
https://talkimg.com/images/2023/11/15/zryZ2.png

This is the important. So, make sure you set the options exactly as shown! - be careful that you select legacy first, then change the derivation path, as every time you click one of the options at the top, the derivation path will reset to default!


7. Choose whether or not your want the wallet file encrypted, I'd recommend to "uncheck" the box, otherwise your device MUST be plugged in to open/view the wallet, then click "Next":
https://talkimg.com/images/2023/11/15/zrJ3c.png

NOTE: NO PRIVATE KEYS will be stored in the wallet file. So it is "safe" to have it unencrypted. Having it not encrypted simply allows you to open the wallet and treat it like a watching-only wallet without the device attached. At worst, if someone steals the wallet file, it'll compromise your privacy, but not the security of your funds.


8. Enjoy access to your funds! ;)



Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: colemanjr on April 17, 2020, 08:47:49 AM
I have used my Xpub which i derived from a native segwitt wallet on Ledger to receive payments.

From where did you exactly copy the public key in the Ledger Live? Did you select 'Edit Account' and then copy the key from the 'Advanced logs'?

Yes thats exactly what i did


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Rath_ on April 17, 2020, 08:52:18 AM
Yes thats exactly what i did

Great, so you should also have exactly "freshAddressPath": "84'/0'/0'/0/x" there if it was the first account. This means that HCP's instructions are applicable. Follow them.


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: colemanjr on April 17, 2020, 09:09:40 AM
I have used my Xpub which i derived from a native segwitt wallet on Ledger to receive payments.
From where did you exactly copy the public key in the Ledger Live? Did you select 'Edit Account' and then copy the key from the 'Advanced logs'?

I suspect this is exactly where the issue has arisen from. For some reason, Ledger still shows legacy xpubs... for native segwit accounts!!! :o :o  This *should* of course be a zpub. :-\

The end result, being that Electrum will likely be generating Legacy addresses... This can be confirmed by going to "Wallet -> info" menu in Electrum and checking the "script type". It will say "P2PKH" and your addresses in Electrum will start with a "1".

Electrum will only generate "bc1" (aka bech32 aka native segwit) addresses from a "master key" if that master key entered is "zpub". Unfortunately, you can't just do that now, because you funds are on legacy addresses


The "Good News"™, is that your funds are able to be recovered.
The "Better News"™, is that you can recover them, without needing to "expose" your Ledger seed!  ;) 8)


The process would be:

Setup
- Ensure that your Ledger Live is NOT running (just helps prevent USB connection issues with Electrum
- Ensure that your Ledger device is connected, unlocked with PIN, and you have opened the "Bitcoin" app on the device (should say 'Application is Ready')
https://i.imgur.com/PLGAplc.png?1

1. In Electrum, select: "File -> New/Restore" from the menu:
https://i.imgur.com/zJsJrZ9.png


2. Give the wallet a name... something unique like "Ledger_XPubRecovery" and then click "Next":
https://i.imgur.com/1AMhldT.png


3. Select "Standard Wallet" and then click "Next":
https://i.imgur.com/xORatrg.png


4. Select "Use a hardware device" and then click "Next":
https://i.imgur.com/iOv3NOx.png


5. Electrum should identify your Ledger device... click "Next":
https://i.imgur.com/oWTilTv.png


6. Select "legacy (p2pkh)" option... and then change the derivation path to: m/84'/0'/0':
https://i.imgur.com/zg9mtVS.png

This is the important. So, make sure you set the options exactly as shown! - be careful that you select legacy first, then change the derivation path, as every time you click one of the options at the top, the derivation path will reset to default!


7. Choose whether or not your want the wallet file encrypted, I'd recommend to "uncheck" the box, otherwise your device MUST be plugged in to open/view the wallet, then click "Next":
https://i.imgur.com/t7CsMIv.png

NOTE: NO PRIVATE KEYS will be stored in the wallet file. So it is "safe" to have it unencrypted. Having it not encrypted simply allows you to open the wallet and treat it like a watching-only wallet without the device attached. At worst, if someone steals the wallet file, it'll compromise your privacy, but not the security of your funds.


8. Enjoy access to your funds! ;)


I was so hopeful haha I Followed all your instructions, however,  balance still 0. tried to change the gap limit 150 300 600 900 1000 1500 nothing..Balance: 0.00000000 BTC (0.00 EUR)  1 BTC~6,529.50 EU


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Rath_ on April 17, 2020, 09:12:40 AM
I was so hopeful haha I Followed all your instructions, however,  balance still 0. tried to change the gap limit 150 300 600 900 1000 1500 nothing..Balance: 0.00000000 BTC (0.00 EUR)  1 BTC~6,529.50 EU

Can you check and post your freshAddressPath of that SegWit account from the 'Advanced logs'? The derivation path might be different for some reason (i.e. not being the first account).


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: colemanjr on April 17, 2020, 09:17:54 AM
I was so hopeful haha I Followed all your instructions, however,  balance still 0. tried to change the gap limit 150 300 600 900 1000 1500 nothing..Balance: 0.00000000 BTC (0.00 EUR)  1 BTC~6,529.50 EU

Can you check and post your freshAddressPath of that SegWit account from the 'Advanced logs'? The derivation path might be different for some reason (i.e. not being the first account).

It is different indeed, it says freshAddressPath": "84'/0'/3'/0/2", could this make a difference?


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Rath_ on April 17, 2020, 09:20:10 AM
It is different indeed, it says freshAddressPath": "84'/0'/3'/0/2", could this make a difference?

Yes, it makes a huge difference. '3' is the number of your SegWit account. Re-follow the instructions and in the sixth step use m/84'/0'/3' instead of m/84'/0'/0'.


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Rickorick on April 17, 2020, 09:20:22 AM
Yes indeed, just do same process, but change the path to m/84'/0'/3'instead of m/84’/0’/0’


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: colemanjr on April 17, 2020, 09:28:42 AM
Yes indeed, just do same process, but change the path to m/84'/0'/3'instead of m/84’/0’/0’

Pls provide your btc addres :)  ;D


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Csmiami on April 17, 2020, 09:33:43 AM
Yes indeed, just do same process, but change the path to m/84'/0'/3'instead of m/84’/0’/0’

Pls provide your btc addres :)  ;D

I must be high or something, but the users helping you were HCP (with the steps you had to follow) and Bitcryptex (solving the issues you had with the derivation path); and you are going to give a reward to a newbie account that came out of the blue just to copy paste with has been said in the post above it?

That'd most definately look like you are really an alt account of said user, created with the sole porpuse of getting help but not giving the reward you promised in the OP (and I'm 100% sure you'd have gotten the same help even with no bounty).




Thread archived  (https://web.archive.org/web/20200417093422/https://bitcointalk.org/index.php?topic=5240946)in case my intuition is right here and someone feels like creating a flag for that shady behaviour

Lol, sorry, I'm a bit too on the edge this days and I must've skipped your post.


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Rickorick on April 17, 2020, 09:39:07 AM
Yes indeed, just do same process, but change the path to m/84'/0'/3'instead of m/84’/0’/0’

Pls provide your btc addres :)  ;D

I must be high or something, but the users helping you were HCP (with the steps you had to follow) and Bitcryptex (solving the issues you had with the derivation path); and you are going to give a reward to a newbie account that came out of the blue just to copy paste with has been said in the post above it?

That'd most definately look like you are really an alt account of said user, created with the sole porpuse of getting help but not giving the reward you promised in the OP (and I'm 100% sure you'd have gotten the same help even with no bounty).



Thread archived  (https://web.archive.org/web/20200417093422/https://bitcointalk.org/index.php?topic=5240946)in case my intuition is right here and someone feels like creating a flag for that shady behaviour

I’m not a newbie, look at my detailed explanation earlier. I made the exact same guide as HCP even before he made it.


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: colemanjr on April 17, 2020, 09:39:44 AM
Yes indeed, just do same process, but change the path to m/84'/0'/3'instead of m/84’/0’/0’

Pls provide your btc addres :)  ;D

I must be high or something, but the users helping you were HCP (with the steps you had to follow) and Bitcryptex (solving the issues you had with the derivation path); and you are going to give a reward to a newbie account that came out of the blue just to copy paste with has been said in the post above it?

That'd most definately look like you are really an alt account of said user, created with the sole porpuse of getting help but not giving the reward you promised in the OP (and I'm 100% sure you'd have gotten the same help even with no bounty).



Thread archived  (https://web.archive.org/web/20200417093422/https://bitcointalk.org/index.php?topic=5240946)in case my intuition is right here and someone feels like creating a flag for that shady behaviour

Who says im not gonna give HCP his reward haha, ive jsut sent him a msg asking him for his btc addres :)


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: colemanjr on April 17, 2020, 09:45:52 AM
HCP and Bitcryptex pls post your btc addres below.
I have a new account and am only allowed to post/send msg every 6 minutes driving me crazy.
Thanks a lot for your help! highly appreciate it


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: colemanjr on April 17, 2020, 09:55:09 AM
Yes indeed, just do same process, but change the path to m/84'/0'/3'instead of m/84’/0’/0’

Pls provide your btc addres :)  ;D

I must be high or something, but the users helping you were HCP (with the steps you had to follow) and Bitcryptex (solving the issues you had with the derivation path); and you are going to give a reward to a newbie account that came out of the blue just to copy paste with has been said in the post above it?

That'd most definately look like you are really an alt account of said user, created with the sole porpuse of getting help but not giving the reward you promised in the OP (and I'm 100% sure you'd have gotten the same help even with no bounty).




Thread archived  (https://web.archive.org/web/20200417093422/https://bitcointalk.org/index.php?topic=5240946)in case my intuition is right here and someone feels like creating a flag for that shady behaviour

Lol, sorry, I'm a bit too on the edge this days and I must've skipped your post.


Thanks but he’s not sending my reward because of your post.

Its coming just a minute


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Csmiami on April 17, 2020, 09:56:42 AM
Thanks but he’s not sending my reward because of your post.

Or he is waiting to have the 2/3 BTC addresses to send the coins in a single transaction and pay tx fees only once, or maybe he went to the fridge to have some lunch. Take it easy, people have lifes out of the forum and don't reply immediately most of the times.

Besides, my post said you were the same person in different accounts, so if it isn't the case, I don't see how it'd affect


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Rickorick on April 17, 2020, 10:00:57 AM
Thanks but he’s not sending my reward because of your post.

Or he is waiting to have the 2/3 BTC addresses to send the coins in a single transaction and pay tx fees only once, or maybe he went to the fridge to have some lunch. Take it easy, people have lifes out of the forum and don't reply immediately most of the times.

Besides, my post said you were the same person in different accounts, so if it isn't the case, I don't see how it'd affect

Sorry.


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: Rath_ on April 17, 2020, 10:37:41 AM
HCP and Bitcryptex pls post your btc addres below.

One of my BTC addresses is available at all times on my profile. However, you would have got the same help even if you didn't mention the reward so I don't really think I should accept it. I leave it to you.


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: colemanjr on April 18, 2020, 08:40:15 AM
HCP and Bitcryptex pls post your btc addres below.

One of my BTC addresses is available at all times on my profile. However, you would have got the same help even if you didn't mention the reward so I don't really think I should accept it. I leave it to you.

Trust me, I am truly happy because I have been struggling with this issue for weeks and only got silly replies like, have you tried turning it off and on  :) It is just a small token of appreciation. thanks a lot!


Title: Re: REWARD €100: Funds not visible after using XPub native segwitt Ledger
Post by: HCP on April 19, 2020, 10:19:33 PM
Trust me, I am truly happy because I have been struggling with this issue for weeks and only got silly replies like, have you tried turning it off and on  :) It is just a small token of appreciation. thanks a lot!
Like BitCryptex said, most of the users around here are happy to help without any financial consideration. So, if you have any other issues with your Ledger device and/or the Ledger Live software, feel free to ask. ;)


In any case, Thanks for the very generous "tip"... I appreciate your token of appreciation (I know my missus and her amazon account do!)  ;D :D