Bitcoin Forum
May 10, 2024, 07:36:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [PATCH REQUEST] Sending To Yourself - Cancelled  (Read 8609 times)
mizerydearia (OP)
Hero Member
*****
Offline Offline

Activity: 574
Merit: 507



View Profile
September 05, 2010, 06:56:45 AM
Last edit: September 05, 2010, 08:43:03 AM by mizerydearia
 #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.
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715326569
Hero Member
*
Offline Offline

Posts: 1715326569

View Profile Personal Message (Offline)

Ignore
1715326569
Reply with quote  #2

1715326569
Report to moderator
1715326569
Hero Member
*
Offline Offline

Posts: 1715326569

View Profile Personal Message (Offline)

Ignore
1715326569
Reply with quote  #2

1715326569
Report to moderator
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12982


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!