Bitcoin Forum
November 15, 2024, 06:52:21 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum change addresses when importing private keys  (Read 291 times)
deepskydiver (OP)
Member
**
Offline Offline

Activity: 74
Merit: 42


View Profile
November 06, 2017, 09:28:48 AM
 #1

I want to move a small amount of bitcoin from an address I keep in cold storage by storing a literal private key, because I consider that the most secure and portable.

If I create a wallet for the purpose of importing that private key, where will the change go? To the only address in the wallet? If I import two or more how does it decide which? I figure it's better to ask rather than experiment.. Smiley

Thanks - and is the official documentation the best reference for Electrum?
aplistir
Full Member
***
Offline Offline

Activity: 378
Merit: 197



View Profile
November 06, 2017, 11:54:13 AM
 #2

If you import keys, the change address will be one of the keys you imported.
Can't say which one Sad

In the old version of Electrum a new change address was created, which created problems to some users and bitcoins were lost because of that.

Most famous case is the lost 8999BTC in address: 167ZWTT8n6s4ya8cGjqNNQjDwDGY31vmHg
a change address created after moving 1BTC from an address containing 9000BTC

In any case your coins should be safe, if you do your transaction and then check where the BTC went. Even if they would go to a new change address (for some strange reason), you will have a private key to that address unless you delete your wallet.dat file Smiley

My Address: 121f7zb2U4g9iM4MiJTDhEzqeZGHzq5wLh
TryNinja
Legendary
*
Offline Offline

Activity: 3024
Merit: 7442


Top Crypto Casino


View Profile WWW
November 06, 2017, 05:36:35 PM
 #3

Can someone tell me why there is a need for change addresses? Can't we just send the "change" of the transaction back to ourselves?

I use only one address to receive my signature campaign payments and if I have something like 0.05BTC and want to send 0.03BTC to my local exchange, the remaining 0.02BTC is always sent back to my address. Is there is any issue on doing this?

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Potato Chips
Hero Member
*****
Offline Offline

Activity: 2954
Merit: 935


yesssir! 🫡


View Profile
November 06, 2017, 07:26:20 PM
Last edit: November 06, 2017, 08:06:52 PM by Potato Chips
 #4

Can someone tell me why there is a need for change addresses? Can't we just send the "change" of the transaction back to ourselves?

Correct me If I'm wrong but I think its for the anomity which bitcoin promised, although its not completely anonymous even with the help of change addresses, I would call it pseudonymous instead.

Anyways, If there's no change addresses, It'll be easier to track your transactions particularly if you know who's behind a certain address because "change" allows your transactions to be ambigous as it makes the amount sent and the change indistinguishable.

I use only one address to receive my signature campaign payments and if I have something like 0.05BTC and want to send 0.03BTC to my local exchange, the remaining 0.02BTC is always sent back to my address. Is there is any issue on doing this?
In this case, It completely reveals the exact amount you sent as well as where did you sent them [which address]. Now if there is a change address, There will be a number of interpretations. From a strangers POV, you might have sent either .02BTC or .03BTC and at the same time there will be a two addresses (outputs): A). Local exchange B). Change address making him wonder which is which
_______________________________________________________________________________ ___________________________________________________

If I create a wallet for the purpose of importing that private key, where will the change go? To the only address in the wallet? If I import two or more how does it decide which? I figure it's better to ask rather than experiment.. Smiley

Importing doesn't create a transaction so there will be no change because you will just be adding private keys to your bitcoin client.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
pooya87
Legendary
*
Offline Offline

Activity: 3640
Merit: 11038


Crypto Swap Exchange


View Profile
November 07, 2017, 05:05:50 AM
 #5

Can someone tell me why there is a need for change addresses? Can't we just send the "change" of the transaction back to ourselves?

I use only one address to receive my signature campaign payments and if I have something like 0.05BTC and want to send 0.03BTC to my local exchange, the remaining 0.02BTC is always sent back to my address. Is there is any issue on doing this?

i don't know where the notion of "change" address came from since these addresses have no difference with the rest! they are just categorized under another category! but Electrum is designed this way possibly to create a feeling of normal ways like fiat and "change".
and also it is designed this way to prevent address reuse [1]. when you send the change back to the same address you are reusing that address which is not that bad but is not recommended.

[1] https://en.bitcoin.it/wiki/Address_reuse

█▀▀▀











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











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

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
November 07, 2017, 11:27:04 AM
 #6

i don't know where the notion of "change" address came from since these addresses have no difference with the rest! they are just categorized under another category! but Electrum is designed this way possibly to create a feeling of normal ways like fiat and "change".
Under BIP32/44... the addresses actually belong to a slightly different chain on the derivation path... as they have the concept of "External" addresses (ie. receive) and "Internal" addresses (ie. change).

m / purpose' / coin_type' / account' / change / address_index

So for instance... your external addresses are on: m/44'/0'/0'/0 and your internal addresses are on m/44'/0'/0'/1

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!