Bitcoin Forum
June 22, 2024, 04:13:19 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum change addresses when importing private keys  (Read 277 times)
deepskydiver (OP)
Jr. Member
*
Offline Offline

Activity: 56
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: 2870
Merit: 7117


Crypto Swap Exchange


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?

█▀▀▀











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











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

Activity: 2800
Merit: 907


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: 3486
Merit: 10666



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

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<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!