<div dir="ltr"><div><div><div><div><div>This has been frequently explored on IRC.<br><br></div>My general conclusion is &quot;dollar bills&quot; - pick highly common denominations of bitcoins.  Aggregate to obtain these denominations, but do not aggregate further.<br><br></div>This permits merge avoidance (privacy++), easy coinjoin where many hide in the noise (privacy++), wallet dust de-fragmentation, while avoiding the over-aggregation problem where you have consolidated down to one output.<br><br></div>Thus a wallet would have several consolidation targets.<br><br></div>Another strategy is simply doubling outputs.  Say you pay 0.1 BTC to Starbucks.  Add another 0.1 BTC output to yourself, and a final change output.  Who can say which output goes to Starbucks?<br><br></div>There are many iterations and trade-offs between fragmentation and privacy.<br><br><br><div><br><div><br><br><div><br><br><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 10, 2015 at 9:35 AM, Bob McElrath <span dir="ltr">&lt;<a href="mailto:bob_bitcoin@mcelrath.org" target="_blank">bob_bitcoin@mcelrath.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is my biggest headache with practical bitcoin usage. I&#39;d love to hear it if<br>
anyone has any clever solutions to the wallet/utxo locked problem. Spending<br>
unconfirmed outputs really requires a different security model on the part of<br>
the receiver than #confirmations, but isn&#39;t inherently bad if the receiver has a<br>
better security model and knows how to compute the probability that an<br>
unconfirmed-spend will get confirmed. Of course the bigger problem is wallet<br>
software that refuses to spend unconfirmed outputs.<br>
<br>
I&#39;ve thought a bit about a fork/merge design: if the change were computed by the<br>
network instead of the submitter, two transactions having the same change<br>
address and a common input could be straightforwardly merged or split (in a<br>
reorg), where with bitcoin currently it would be considered a double-spend.  Of<br>
course that has big privacy implications since it directly exposes the change<br>
address, and is a hard fork, but is much closer to what people expect of a<br>
debit-based &quot;account&quot; in traditional banking.<br>
<br>
The fact of the matter is that having numerous sequential debits on an account<br>
is an extremely common use case, and bitcoin is obtuse in this respect.<br>
<div><div class="h5"><br>
On May 9, 2015 1:09:32 PM EDT, Jim Phillips &lt;<a href="mailto:jim@ergophobia.org">jim@ergophobia.org</a>&gt; wrote:<br>
&gt;Forgive me if this idea has been suggested before, but I made this<br>
&gt;suggestion on reddit and I got some feedback recommending I also bring<br>
&gt;it<br>
&gt;to this list -- so here goes.<br>
&gt;<br>
&gt;I wonder if there isn&#39;t perhaps a simpler way of dealing with UTXO<br>
&gt;growth.<br>
&gt;What if, rather than deal with the issue at the protocol level, we deal<br>
&gt;with it at the source of the problem -- the wallets. Right now, the<br>
&gt;typical<br>
&gt;wallet selects only the minimum number of unspent outputs when building<br>
&gt;a<br>
&gt;transaction. The goal is to keep the transaction size to a minimum so<br>
&gt;that<br>
&gt;the fee stays low. Consequently, lots of unspent outputs just don&#39;t get<br>
&gt;used, and are left lying around until some point in the future.<br>
&gt;<br>
&gt;What if we started designing wallets to consolidate unspent outputs?<br>
&gt;When<br>
&gt;selecting unspent outputs for a transaction, rather than choosing just<br>
&gt;the<br>
&gt;minimum number from a particular address, why not select them ALL? Take<br>
&gt;all<br>
&gt;of the UTXOs from a particular address or wallet, send however much<br>
&gt;needs<br>
&gt;to be spent to the payee, and send the rest back to the same address or<br>
&gt;a<br>
&gt;change address as a single output? Through this method, we should wind<br>
&gt;up<br>
&gt;shrinking the UTXO database over time rather than growing it with each<br>
&gt;transaction. Obviously, as Bitcoin gains wider adoption, the UTXO<br>
&gt;database<br>
&gt;will grow, simply because there are 7 billion people in the world, and<br>
&gt;eventually a good percentage of them will have one or more wallets with<br>
&gt;spendable bitcoin. But this idea could limit the growth at least.<br>
&gt;<br>
&gt;The vast majority of users are running one of a handful of different<br>
&gt;wallet<br>
&gt;apps: Core, Electrum; Armory; Mycelium; Breadwallet; Coinbase; Circle;<br>
&gt;Blockchain.info; and maybe a few others. The developers of all these<br>
&gt;wallets have a vested interest in the continued usefulness of Bitcoin,<br>
&gt;and<br>
&gt;so should not be opposed to changing their UTXO selection algorithms to<br>
&gt;one<br>
&gt;that reduces the UTXO database instead of growing it.<br>
&gt;<br>
&gt;&gt;From the miners perspective, even though these types of transactions<br>
&gt;would<br>
&gt;be larger, the fee could stay low. Miners actually benefit from them in<br>
&gt;that it reduces the amount of storage they need to dedicate to holding<br>
&gt;the<br>
&gt;UTXO. So miners are incentivized to mine these types of transactions<br>
&gt;with a<br>
&gt;higher priority despite a low fee.<br>
&gt;<br>
&gt;Relays could also get in on the action and enforce this type of<br>
&gt;behavior by<br>
&gt;refusing to relay or deprioritizing the relay of transactions that<br>
&gt;don&#39;t<br>
&gt;use all of the available UTXOs from the addresses used as inputs.<br>
&gt;Relays<br>
&gt;are not only the ones who benefit the most from a reduction of the UTXO<br>
&gt;database, they&#39;re also in the best position to promote good behavior.<br>
&gt;<br>
&gt;--<br>
</div></div><span class="">&gt;*James G. Phillips IV*<br>
&gt;&lt;<a href="https://plus.google.com/u/0/113107039501292625391/posts" target="_blank">https://plus.google.com/u/0/113107039501292625391/posts</a>&gt;<br>
&gt;<br>
</span>&gt;*&quot;Don&#39;t bunt. Aim out of the ball park. Aim for the company of<br>
&gt;immortals.&quot;<br>
&gt;-- David Ogilvy*<br>
&gt;<br>
&gt;*This message was created with 100% recycled electrons. Please think<br>
&gt;twice<br>
&gt;before printing.*<br>
&gt;<br>
&gt;<br>
&gt;!DSPAM:554e4e5450787476022393!<br>
&gt;<br>
&gt;<br>
&gt;------------------------------------------------------------------------<br>
<span class="">&gt;<br>
&gt;------------------------------------------------------------------------------<br>
&gt;One dashboard for servers and applications across<br>
&gt;Physical-Virtual-Cloud<br>
&gt;Widest out-of-the-box monitoring support with 50+ applications<br>
&gt;Performance metrics, stats and reports that give you Actionable<br>
&gt;Insights<br>
&gt;Deep dive visibility with transaction tracing using APM Insight.<br>
&gt;<a href="http://ad.doubleclick.net/ddm/clk/290420510;117567292;y" target="_blank">http://ad.doubleclick.net/ddm/clk/290420510;117567292;y</a><br>
&gt;<br>
</span>&gt;!DSPAM:554e4e5450787476022393!<br>
&gt;<br>
&gt;<br>
&gt;------------------------------------------------------------------------<br>
<span class="">&gt;<br>
&gt;_______________________________________________<br>
&gt;Bitcoin-development mailing list<br>
&gt;<a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
&gt;<a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
&gt;<br>
&gt;<br>
</span>&gt;!DSPAM:554e4e5450787476022393!<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.<br>
</font></span><br><div>This is my biggest headache with practical bitcoin usage. I&#39;d love to hear it if anyone has any clever solutions to the wallet/utxo locked problem. Spending unconfirmed outputs really requires a different security model on the part of the receiver than #confirmations, but isn&#39;t inherently bad if the receiver has a better security model and knows how to compute the probability that an unconfirmed-spend will get confirmed. Of course the bigger problem is wallet software that refuses to spend unconfirmed outputs.<br>
<br>
I&#39;ve thought a bit about a fork/merge design: if the change were computed by the network instead of the submitter, two transactions having the same change address could be straightforwardly merged or split (in a reorg). Of course that has big privacy implications and is pretty far from bitcoin&#39;s design, but is much closer to what people expect of a debit-based &quot;account&quot; in traditional banking.<br>
<br>
The fact of the matter is that having numerous sequential debits on an account is an extremely common use case, and bitcoin is obtuse in this respect.<br><br><div class="gmail_quote">On May 9, 2015 1:09:32 PM EDT, Jim Phillips &lt;<a href="mailto:jim@ergophobia.org" target="_blank">jim@ergophobia.org</a>&gt; wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div>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.</div><div><br></div><div>I wonder if there isn&#39;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&#39;t get used, and are left lying around until some point in the future.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>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&#39;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&#39;re also in the best position to promote good behavior.</div><div><div><div><br></div><div>--<div><b>James G. Phillips IV</b> <a href="https://plus.google.com/u/0/113107039501292625391/posts" style="font-size:x-small" target="_blank"><img src="https://ssl.gstatic.com/images/icons/gplus-16.png"></a> </div></div><div><font size="1"><i>&quot;Don&#39;t bunt. Aim out of the ball park. Aim for the company of immortals.&quot; -- David Ogilvy<br></i></font><div><font size="1"><br></font></div></div><div><font size="1"><img src="http://findicons.com/files/icons/1156/fugue/16/leaf.png"> <em style="font-family:verdana,geneva,sans-serif;line-height:16px;color:green;background-color:rgb(255,255,255)">This message was created with 100% recycled electrons. Please think twice before printing.</em></font></div></div></div>
</div>


!DSPAM:554e4e5450787476022393!
<p style="margin-top:2.5em;margin-bottom:1em;border-bottom:1px solid #000"></p><pre><hr><br>One dashboard for servers and applications across Physical-Virtual-Cloud <br>Widest out-of-the-box monitoring support with 50+ applications<br>Performance metrics, stats and reports that give you Actionable Insights<br>Deep dive visibility with transaction tracing using APM Insight.<br><a href="http://ad.doubleclick.net/ddm/clk/290420510;117567292;y" target="_blank">http://ad.doubleclick.net/ddm/clk/290420510;117567292;y</a><br><br>!DSPAM:554e4e5450787476022393!<br></pre><p style="margin-top:2.5em;margin-bottom:1em;border-bottom:1px solid #000"></p><pre><hr><br>Bitcoin-development mailing list<br><a href="mailto:Bitcoin-development@lists.sourceforge.net" target="_blank">Bitcoin-development@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br><br><br>!DSPAM:554e4e5450787476022393!<br></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</div><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAlVPXp0ACgkQjwioWRGe9K1+2ACfViY0D2ksVFe29SwhxbtmNSC3<br>
TQAAnRoJLI9wW3DQRPqQ7PorKxelC2S2<br>
=Er51<br>
-----END PGP SIGNATURE-----<br>
<br>------------------------------------------------------------------------------<br>
One dashboard for servers and applications across Physical-Virtual-Cloud<br>
Widest out-of-the-box monitoring support with 50+ applications<br>
Performance metrics, stats and reports that give you Actionable Insights<br>
Deep dive visibility with transaction tracing using APM Insight.<br>
<a href="http://ad.doubleclick.net/ddm/clk/290420510;117567292;y" target="_blank">http://ad.doubleclick.net/ddm/clk/290420510;117567292;y</a><br>_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Jeff Garzik<br>Bitcoin core developer and open source evangelist<br>BitPay, Inc.      <a href="https://bitpay.com/" target="_blank">https://bitpay.com/</a></div>
</div>