Bitcoin Forum
November 09, 2024, 04:08:06 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is there any way to add a change address to Electrum Offline Android wallet?  (Read 281 times)
deepcolderwallet (OP)
Full Member
***
Offline Offline

Activity: 294
Merit: 103



View Profile
June 27, 2019, 06:52:51 AM
Last edit: June 27, 2019, 07:06:05 AM by deepcolderwallet
Merited by LoyceV (1)
 #1

Situation: Using latest Electrum android version I have an online smartphone that has the xpub but not the seed. This wallet has received some change on a specific address that I'd like to import to Jaxx. The seed owner, an offline cryptographed smartphone won't show that address in it's address list (because it was generated deterministically).

Question: Is there any way I can fetch that change address to the offline smartphone so I can export it's private key?

Thanks.

If you'd like to help me saving for my babie's future, bitcoin:1QCD4EYjeuEGjVCxkD7PAD2feEVEMYvpGU
LoyceV
Legendary
*
Offline Offline

Activity: 3486
Merit: 17650


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
June 27, 2019, 08:01:19 AM
 #2

I think what you're looking for is to increase the Gap Limit, see How can I pre-generate new addresses?:
Quote
Code:
[wallet.create_new_address(False) for i in range(50)]
(read reference link first!)

I've never used Electrum on Android, so I'm not sure if it has a console to enter this.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
June 27, 2019, 09:57:19 PM
Merited by LoyceV (1)
 #3

I've never used Electrum on Android, so I'm not sure if it has a console to enter this.
As far as I'm aware, there isn't a way to increase the gap limit on the android version as there is no console Undecided


Question: Is there any way I can fetch that change address to the offline smartphone so I can export it's private key?
Another way that I can think of to get your private key would require that you use the seed and something like the Electrum Seed Tester: https://github.com/FarCanary/ElectrumSeedTester

You just need the "standalone" .html file. Using that you could find the required change address and matching private key. The trick is how to do that in an "offline" manner. If you had an OTG cable for your offline smartphone, you could transfer it via a USB stick.

Or, alternatively, you could setup an offline PC and install the desktop version of Electrum, restore from your Electrum seed and then you'll be able to increase the gap limit and/or manually generate change addresses until you find the one you want.

Failing that, another (more expensive) option would be to go into the Electrum address list (receive tab, tap the address shown), then tap the "receive" button to change the filter to show "change" addresses, then select the last one in the list and select "use". Then send some coins to that address. It might force the wallet to generate more addresses. NOTE: I can't test this method as there isn't a TestNet version of the Android wallet available, so I can't guarantee that it will actually work.


█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
June 27, 2019, 10:11:39 PM
Merited by LoyceV (1)
 #4

I think what you're looking for is to increase the Gap Limit, see How can I pre-generate new addresses?:
Quote
Code:
[wallet.create_new_address(False) for i in range(50)]
(read reference link first!)

I've never used Electrum on Android, so I'm not sure if it has a console to enter this.

Actually you have to pass True to that function for change addresses.

@OP I suggest you restore from seed on an offline PC and then do the cold storage dance:

http://docs.electrum.org/en/latest/coldstorage.html

This is the way to spend from cold storage in electrum.

If you insist on exporting the private key then understand that knowledge of the private key + your xpub gives an attacker complete access to your wallet. So it is not safe. But if you want to do it anyway then you will still need to restore from seed on an offline PC, run the command LoyceV gave you (with the small modification I mentioned above) until that address shows up in your wallet (how to check). Then simply right click on it on the addresses tab (view > show addresses) and choose to view the priv key
deepcolderwallet (OP)
Full Member
***
Offline Offline

Activity: 294
Merit: 103



View Profile
June 28, 2019, 04:57:16 AM
 #5

Thank you, guys. Actually none of these solutions meets the requirement of using only the two mentioned smartphones. I think generating randomly adressess at the offline phone might do the trick.

If you insist on exporting the private key then understand that knowledge of the private key + your xpub gives an attacker complete access to your wallet. So it is not safe.

Actually it's not on my plans to disclose the xpub. Also I don't see how an attacker could have complete access to my wallet having knowledge of only one address's priv key. The other addressess's priv keys and the seed will be safe, right?


My first thought was that Electrum Android would have a feature that would solve this situation.

Thank you all once more.
If I had any smerit left, it'd be yours.

EDIT: Grammar and layout.

If you'd like to help me saving for my babie's future, bitcoin:1QCD4EYjeuEGjVCxkD7PAD2feEVEMYvpGU
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
June 28, 2019, 06:34:07 AM
 #6

If you have any one address' private key and the xpub you can recover the private keys of all the addresses in the electrum wallet.

deepcolderwallet (OP)
Full Member
***
Offline Offline

Activity: 294
Merit: 103



View Profile
June 28, 2019, 09:32:50 AM
 #7

If you have any one address' private key and the xpub you can recover the private keys of all the addresses in the electrum wallet.




That's new to me!
Do you have any source where I can dive deeper in this subject?

If you'd like to help me saving for my babie's future, bitcoin:1QCD4EYjeuEGjVCxkD7PAD2feEVEMYvpGU
LoyceV
Legendary
*
Offline Offline

Activity: 3486
Merit: 17650


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
June 28, 2019, 10:27:55 AM
 #8

If you have any one address' private key and the xpub you can recover the private keys of all the addresses in the electrum wallet.
That's new to me!
Do you have any source where I can dive deeper in this subject?
See for example: Keep in mind: XPUB and one private key will expose all private keys in the same HD wallet!!!:
Quote
This should be shown in RED CAPITAL LETTERS every time anyone creates a new HD wallet!!! I have been storing my bitcoins for years thinking they would be secure in my cold storage and never cared about compromized private keys of old addresses with zero balance. I've been lately throwing the priv keys of used addresses left and right to claim all airdrops/forks thinking that if the address does not have any BTC anymore, leaking its private key cannot cause any harm. I have also stored my xpub key on all my devices unencrypted to create watch-only wallets (any malware/hacker could have captured BOTH)
On the same page user largely_useless adds this:
Quote
Keep in mind that this only goes for unhardened derivation. BIP44/49 uses hardened derivation on the account level, so the risk is limited to only the funds in the compromised account.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
June 28, 2019, 09:00:03 PM
 #9

Is it a specific requirement to "import" the private key into Jaxx? As mentioned with an xpub and a private key, the entire chain in that "account" could be compromised.

Would you not be better off simply sending those funds to Jaxx using the standard protocol?

Also, have you tried simply creating an unsigned transaction on the Electrum watching only wallet that includes the funds from the change address and then tried importing that unsigned transaction into the offline Electrum? This might trigger the offline wallet into "generating" the change address that you require.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
deepcolderwallet (OP)
Full Member
***
Offline Offline

Activity: 294
Merit: 103



View Profile
June 29, 2019, 05:44:43 AM
 #10

Is it a specific requirement to "import" the private key into Jaxx? As mentioned with an xpub and a private key, the entire chain in that "account" could be compromised.

Would you not be better off simply sending those funds to Jaxx using the standard protocol?

Also, have you tried simply creating an unsigned transaction on the Electrum watching only wallet that includes the funds from the change address and then tried importing that unsigned transaction into the offline Electrum? This might trigger the offline wallet into "generating" the change address that you require.

Would be a solution IF Electrum Android allowed me to create a transaction using an specific address, which it doesn't. The ANDROID watch-only wallet has no option to spend from that specific address, or does it?

If you'd like to help me saving for my babie's future, bitcoin:1QCD4EYjeuEGjVCxkD7PAD2feEVEMYvpGU
deepcolderwallet (OP)
Full Member
***
Offline Offline

Activity: 294
Merit: 103



View Profile
June 29, 2019, 05:45:42 AM
 #11

If you have any one address' private key and the xpub you can recover the private keys of all the addresses in the electrum wallet.
That's new to me!
Do you have any source where I can dive deeper in this subject?
See for example: Keep in mind: XPUB and one private key will expose all private keys in the same HD wallet!!!:
Quote
This should be shown in RED CAPITAL LETTERS every time anyone creates a new HD wallet!!! I have been storing my bitcoins for years thinking they would be secure in my cold storage and never cared about compromized private keys of old addresses with zero balance. I've been lately throwing the priv keys of used addresses left and right to claim all airdrops/forks thinking that if the address does not have any BTC anymore, leaking its private key cannot cause any harm. I have also stored my xpub key on all my devices unencrypted to create watch-only wallets (any malware/hacker could have captured BOTH)
On the same page user largely_useless adds this:
Quote
Keep in mind that this only goes for unhardened derivation. BIP44/49 uses hardened derivation on the account level, so the risk is limited to only the funds in the compromised account.

Thank you very much. I wish I had smerit to reward you.

If you'd like to help me saving for my babie's future, bitcoin:1QCD4EYjeuEGjVCxkD7PAD2feEVEMYvpGU
nc50lc
Legendary
*
Online Online

Activity: 2590
Merit: 6356


Self-proclaimed Genius


View Profile
June 29, 2019, 06:34:19 AM
Merited by LoyceV (2)
 #12

Would be a solution IF Electrum Android allowed me to create a transaction using an specific address, which it doesn't. The ANDROID watch-only wallet has no option to spend from that specific address, or does it?
So, it's for verification then? Android version can't do that.

You can just create a "watch-only single address wallet" in your PC and create the unsigned raw transaction,
then import it to your cold storage Android Phone for signing.
If you don't have a PC, you can ask someone to create the raw Tx for you as they will only need that change address and the recipient's address.

Or is this an implicit feature request for Android version?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
June 29, 2019, 08:04:42 AM
 #13

Would be a solution IF Electrum Android allowed me to create a transaction using an specific address, which it doesn't. The ANDROID watch-only wallet has no option to spend from that specific address, or does it?
If you can't (and I'm fairly you can't) specify a specific UTXO to spend or choose a specific address to spend from, you could just create a "dummy" transaction that spends your entire balance. That way it is guaranteed that the change address will be included.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
deepcolderwallet (OP)
Full Member
***
Offline Offline

Activity: 294
Merit: 103



View Profile
July 01, 2019, 05:23:30 AM
Merited by LoyceV (1)
 #14

Would be a solution IF Electrum Android allowed me to create a transaction using an specific address, which it doesn't. The ANDROID watch-only wallet has no option to spend from that specific address, or does it?
So, it's for verification then? Android version can't do that.

You can just create a "watch-only single address wallet" in your PC and create the unsigned raw transaction,
then import it to your cold storage Android Phone for signing.
If you don't have a PC, you can ask someone to create the raw Tx for you as they will only need that change address and the recipient's address.

Or is this an implicit feature request for Android version?


Perfect!

Gotta try this.

Thank you!


EDIT: I created a new watch-only wallet on the Android version itself, and could create the unsigned transaction from there. Simple and easy. Thanks once more, bro.

If you'd like to help me saving for my babie's future, bitcoin:1QCD4EYjeuEGjVCxkD7PAD2feEVEMYvpGU
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!