Bitcoin Forum
November 13, 2024, 05:44:35 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Addresses for BTC change  (Read 1248 times)
bitlotto (OP)
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


BitLotto - best odds + best payouts + cheat-proof


View Profile WWW
May 04, 2012, 08:06:08 PM
 #1

Is the change address always one bitcoin address per tx? I'm interested in the satoshi client as well as any others out there. Do any clients return change to multiple similar addresses?

What I'm specifically looking for is say someone spent:
1 BTC to address A.
.1 BTC to address B.
.1 BTC to address B.
In one tx

When I look at the tx output can I safely assume that address B is NOT an address used for change but part of a payment somewhere?

*Next Draw Feb 1*  BitLotto: monthly raffle (0.25 BTC per ticket) Completely transparent and impossible to manipulate who wins. TOR
TOR2WEB
Donations to: 1JQdiQsjhV2uJ4Y8HFtdqteJsZhv835a8J are appreciated.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
May 04, 2012, 09:37:27 PM
Last edit: May 04, 2012, 11:14:37 PM by Stephen Gornick
 #2

Is the change address always one bitcoin address per tx? I'm interested in the satoshi client as well as any others out there. Do any clients return change to multiple similar addresses?

What I'm specifically looking for is say someone spent:
1 BTC to address A.
.1 BTC to address B.
.1 BTC to address B.
In one tx

When I look at the tx output can I safely assume that address B is NOT an address used for change but part of a payment somewhere?

The Bitcoin.org (Satoshi) client would pull an unused address for the change.  If you were to explicitly add as an output the next address so that it would match the same one the change would go to, I suppose the client isn't set up to detect that as a used address and you technically could end up with the transaction looking like above, where B is both a payment address and one used for change in the same transaction.  But that would require you to explicitly choose that address.

Other clients let you choose what addresses the change goes to, so yes -- the above can occur if you explicitly choose for it to happen that way.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


bitlotto (OP)
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


BitLotto - best odds + best payouts + cheat-proof


View Profile WWW
May 04, 2012, 09:43:42 PM
 #3

Oh, thanks...

Imagine this tx:

input:
Address A 0.4 BTC
Address B 0.9 BTC

output:
Address C 0.1 BTC
Address C 0.1 BTC
Address D 1 BTC
Address E 0.1 BTC

Say we know for sure one of the payments for purchasing was D.

Would C ever be a change address (or would the software have to be modified to do that)? Or would C have to be done manually as 0.1 payments to somewhere?

*Next Draw Feb 1*  BitLotto: monthly raffle (0.25 BTC per ticket) Completely transparent and impossible to manipulate who wins. TOR
TOR2WEB
Donations to: 1JQdiQsjhV2uJ4Y8HFtdqteJsZhv835a8J are appreciated.
bitlotto (OP)
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


BitLotto - best odds + best payouts + cheat-proof


View Profile WWW
May 04, 2012, 10:10:32 PM
 #4

The Satoshi would pull an unused address for the change.  If you were to explicitly add as an output the next address so that it would match the same one the change would go to, I suppose the client isn't set up to detect that as a used address and you technically could end up with the transaction looking like above, where B is both a payment address and one used for change in the same transaction.  But that would require you to explicitly choose that address.

Other clients let you choose what addresses the change goes to, so yes -- the above can occur if you explicitly choose for it to happen that way.
Could we assume that EITHER the person made those two payments in one tx to the same address OR they for sure own that address?

*Next Draw Feb 1*  BitLotto: monthly raffle (0.25 BTC per ticket) Completely transparent and impossible to manipulate who wins. TOR
TOR2WEB
Donations to: 1JQdiQsjhV2uJ4Y8HFtdqteJsZhv835a8J are appreciated.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
May 04, 2012, 11:17:48 PM
 #5

Could we assume that EITHER the person made those two payments in one tx to the same address OR they for sure own that address?

I believe so.  I can't think of any way else that such a transaction would occur.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


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!