Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YrA4s-0001F5-HK for bitcoin-development@lists.sourceforge.net; Sat, 09 May 2015 19:06:22 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; envelope-from=pieter.wuille@gmail.com; helo=mail-lb0-f177.google.com; Received: from mail-lb0-f177.google.com ([209.85.217.177]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YrA4q-0006Ge-Gh for bitcoin-development@lists.sourceforge.net; Sat, 09 May 2015 19:06:22 +0000 Received: by lbbuc2 with SMTP id uc2so71846306lbb.2 for ; Sat, 09 May 2015 12:06:14 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.203.162 with SMTP id kr2mr2689749lac.68.1431198374027; Sat, 09 May 2015 12:06:14 -0700 (PDT) Received: by 10.112.19.7 with HTTP; Sat, 9 May 2015 12:06:13 -0700 (PDT) Received: by 10.112.19.7 with HTTP; Sat, 9 May 2015 12:06:13 -0700 (PDT) In-Reply-To: References: Date: Sat, 9 May 2015 12:06:13 -0700 Message-ID: From: Pieter Wuille To: Andreas Schildbach Content-Type: multipart/alternative; boundary=001a11346326afe90b0515aad653 X-Spam-Score: -0.6 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (pieter.wuille[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1YrA4q-0006Ge-Gh Cc: Bitcoin Dev Subject: Re: [Bitcoin-development] A suggestion for reducing the size of the UTXO database X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2015 19:06:22 -0000 --001a11346326afe90b0515aad653 Content-Type: text/plain; charset=ISO-8859-1 It's a very complex trade-off, which is hard to optimize for all use cases. Using more UTXOs requires larger transactions, and thus more fees in general. In addition, it results in more linkage between coins/addresses used, so lower privacy. The only way you can guarantee an economical reason to keep the UTXO set small is by actually having a consensus rule that punishes increasing its size. On May 9, 2015 12:02 PM, "Andreas Schildbach" wrote: > Actually your assumption is wrong. Bitcoin Wallet (and I think most, if > not all, other bitcoinj based wallets) picks UTXO by age, in order to > maximize priority. So it keeps the number of UTXOs low, though not as > low as if it would always pick *all* UTXOs. > > > On 05/09/2015 07:09 PM, Jim Phillips wrote: > > Forgive me if this idea has been suggested before, but I made this > > suggestion on reddit and I got some feedback recommending I also bring > > it to this list -- so here goes. > > > > I wonder if there isn't perhaps a simpler way of dealing with UTXO > > growth. What if, rather than deal with the issue at the protocol level, > > we deal with it at the source of the problem -- the wallets. Right now, > > the typical wallet selects only the minimum number of unspent outputs > > when building a transaction. The goal is to keep the transaction size to > > a minimum so that the fee stays low. Consequently, lots of unspent > > outputs just don't get used, and are left lying around until some point > > in the future. > > > > What if we started designing wallets to consolidate unspent outputs? > > When selecting unspent outputs for a transaction, rather than choosing > > just the minimum number from a particular address, why not select them > > ALL? Take all of the UTXOs from a particular address or wallet, send > > however much needs to be spent to the payee, and send the rest back to > > the same address or a change address as a single output? Through this > > method, we should wind up shrinking the UTXO database over time rather > > than growing it with each transaction. Obviously, as Bitcoin gains wider > > adoption, the UTXO database will grow, simply because there are 7 > > billion people in the world, and eventually a good percentage of them > > will have one or more wallets with spendable bitcoin. But this idea > > could limit the growth at least. > > > > The vast majority of users are running one of a handful of different > > wallet apps: Core, Electrum; Armory; Mycelium; Breadwallet; Coinbase; > > Circle; Blockchain.info; and maybe a few others. The developers of all > > these wallets have a vested interest in the continued usefulness of > > Bitcoin, and so should not be opposed to changing their UTXO selection > > algorithms to one that reduces the UTXO database instead of growing it. > > > > From the miners perspective, even though these types of transactions > > would be larger, the fee could stay low. Miners actually benefit from > > them in that it reduces the amount of storage they need to dedicate to > > holding the UTXO. So miners are incentivized to mine these types of > > transactions with a higher priority despite a low fee. > > > > Relays could also get in on the action and enforce this type of behavior > > by refusing to relay or deprioritizing the relay of transactions that > > don't use all of the available UTXOs from the addresses used as inputs. > > Relays are not only the ones who benefit the most from a reduction of > > the UTXO database, they're also in the best position to promote good > > behavior. > > > > -- > > *James G. Phillips > > IV* > > /"Don't bunt. Aim out of the ball park. Aim for the company of > > immortals." -- David Ogilvy > > / > > > > /This message was created with 100% recycled electrons. Please think > > twice before printing./ > > > > > > > ------------------------------------------------------------------------------ > > One dashboard for servers and applications across Physical-Virtual-Cloud > > Widest out-of-the-box monitoring support with 50+ applications > > Performance metrics, stats and reports that give you Actionable Insights > > Deep dive visibility with transaction tracing using APM Insight. > > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > > > > > > > _______________________________________________ > > Bitcoin-development mailing list > > Bitcoin-development@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/bitcoin-development > > > > > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Bitcoin-development mailing list > Bitcoin-development@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bitcoin-development > --001a11346326afe90b0515aad653 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

It's a very complex trade-off, which is hard to optimize= for all use cases. Using more UTXOs requires larger transactions, and thus= more fees in general. In addition, it results in more linkage between coin= s/addresses used, so lower privacy.

The only way you can guarantee an economical reason to keep = the UTXO set small is by actually having a consensus rule that punishes inc= reasing its size.

On May 9, 2015 12:02 PM, "Andreas Schildbac= h" <andreas@schildbach.de<= /a>> wrote:
Actua= lly your assumption is wrong. Bitcoin Wallet (and I think most, if
not all, other bitcoinj based wallets) picks UTXO by age, in order to
maximize priority. So it keeps the number of UTXOs low, though not as
low as if it would always pick *all* UTXOs.


On 05/09/2015 07:09 PM, Jim Phillips wrote:
> Forgive me if this idea has been suggested before, but I made this
> suggestion on reddit and I got some feedback recommending I also bring=
> it to this list -- so here goes.
>
> I wonder if there isn't perhaps a simpler way of dealing with UTXO=
> growth. What if, rather than deal with the issue at the protocol level= ,
> we deal with it at the source of the problem -- the wallets. Right now= ,
> the typical wallet selects only the minimum number of unspent outputs<= br> > when building a transaction. The goal is to keep the transaction size = to
> a minimum so that the fee stays low. Consequently, lots of unspent
> outputs just don't get used, and are left lying around until some = point
> in the future.
>
> What if we started designing wallets to consolidate unspent outputs? > When selecting unspent outputs for a transaction, rather than choosing=
> just the minimum number from a particular address, why not select them=
> ALL? Take all of the UTXOs from a particular address or wallet, send > however much needs to be spent to the payee, and send the rest back to=
> the same address or a change address as a single output? Through this<= br> > method, we should wind up shrinking the UTXO database over time rather=
> than growing it with each transaction. Obviously, as Bitcoin gains wid= er
> adoption, the UTXO database will grow, simply because there are 7
> billion people in the world, and eventually a good percentage of them<= br> > will have one or more wallets with spendable bitcoin. But this idea > could limit the growth at least.
>
> The vast majority of users are running one of a handful of different > wallet apps: Core, Electrum; Armory; Mycelium; Breadwallet; Coinbase;<= br> > Circle; Blockchain.info; and maybe a few others. The developers of all=
> these wallets have a vested interest in the continued usefulness of > Bitcoin, and so should not be opposed to changing their UTXO selection=
> algorithms to one that reduces the UTXO database instead of growing it= .
>
> From the miners perspective, even though these types of transactions > would be larger, the fee could stay low. Miners actually benefit from<= br> > them in that it reduces the amount of storage they need to dedicate to=
> holding the UTXO. So miners are incentivized to mine these types of > transactions with a higher priority despite a low fee.
>
> Relays could also get in on the action and enforce this type of behavi= or
> by refusing to relay or deprioritizing the relay of transactions that<= br> > don't use all of the available UTXOs from the addresses used as in= puts.
> Relays are not only the ones who benefit the most from a reduction of<= br> > the UTXO database, they're also in the best position to promote go= od
> behavior.
>
> --
> *James G. Phillips
> IV* <
https://plus.google.com/u/0/113107039501292625391/p= osts>
> /"Don't bunt. Aim out of the ball park. Aim for the company o= f
> immortals." -- David Ogilvy
> /
>
>=A0 /This message was created with 100% recycled electrons. Please thin= k
> twice before printing./
>
>
> ----------------------------------------------------------------------= --------
> One dashboard for servers and applications across Physical-Virtual-Clo= ud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insigh= ts
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y=
>
>
>
> _______________________________________________
> Bitcoin-development mailing list
> Bitcoin-d= evelopment@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bitco= in-development
>



---------------------------------------------------------------------------= ---
One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Bitcoin-development mailing list
Bitcoin-develo= pment@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitcoin-de= velopment
--001a11346326afe90b0515aad653--