Bitcoin Forum
September 26, 2016, 01:53:20 PM *
News: Due to DDoS attacks, there may be periodic downtime.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [PATCH REQUEST] Sending To Yourself - Cancelled  (Read 2305 times)
mizerydearia
Hero Member
*****
Offline Offline

Activity: 574



View Profile
September 05, 2010, 06:56:45 AM
 #1

I would like to request for a patch to be developed that treats sending bitcoins to an address that matches one on the same computer like sending to  any other address.

http://bitcointalk.org/index.php?topic=241.msg9333#msg9333

Don't send coins from one address to a different one on the same computer. This actually reduces your anonymity because it combines several different coins (some of which, such as generations, might be pretty anonymous). It's also obvious what you're doing because Bitcoin makes a special transaction when you send coins to yourself: it includes the full public key for the destination instead of the hashed public key used in normal transactions.
1474898000
Hero Member
*
Offline Offline

Posts: 1474898000

View Profile Personal Message (Offline)

Ignore
1474898000
Reply with quote  #2

1474898000
Report to moderator
1474898000
Hero Member
*
Offline Offline

Posts: 1474898000

View Profile Personal Message (Offline)

Ignore
1474898000
Reply with quote  #2

1474898000
Report to moderator
1474898000
Hero Member
*
Offline Offline

Posts: 1474898000

View Profile Personal Message (Offline)

Ignore
1474898000
Reply with quote  #2

1474898000
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1474898000
Hero Member
*
Offline Offline

Posts: 1474898000

View Profile Personal Message (Offline)

Ignore
1474898000
Reply with quote  #2

1474898000
Report to moderator
1474898000
Hero Member
*
Offline Offline

Posts: 1474898000

View Profile Personal Message (Offline)

Ignore
1474898000
Reply with quote  #2

1474898000
Report to moderator
1474898000
Hero Member
*
Offline Offline

Posts: 1474898000

View Profile Personal Message (Offline)

Ignore
1474898000
Reply with quote  #2

1474898000
Report to moderator
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2422


View Profile
September 05, 2010, 08:33:31 AM
 #2

I was wrong about this. Even though transactions to yourself are displayed differently, it appears like a normal transaction in the block.

Code:
            "out" : [
                {
                    "value" : "0.24000000",
                    "scriptPubKey" : "OP_DUP OP_HASH160 0x4434DD10F5392C1F080B83
92D3135D0D13670400 OP_EQUALVERIFY OP_CHECKSIG"
                },
                {
                    "value" : "51.13000000",
                    "scriptPubKey" : "OP_DUP OP_HASH160 0x98352ACB25A13F646AB75D
825B1B8911341BAE14 OP_EQUALVERIFY OP_CHECKSIG"
                }
            ]



To determine that the payment is from yourself, Bitcoin just checks to see if all of the receiving addresses and all of sending addresses are in your wallet.

Code:
if (fAllFromMe && fAllToMe)
        {
            // Payment to self
            int64 nValue = wtx.vout[0].nValue;
            InsertLine(fNew, nIndex, hash, strSort,
                       strStatus,
                       nTime ? DateTimeStr(nTime) : "",
                       _("Payment to yourself"),
                       "",
                       "");
            /// issue: can't tell which is the payment and which is the change anymore
            //           FormatMoney(nNet - nValue, true),
            //           FormatMoney(nValue, true));
        }

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!