<div dir="ltr">Right. So part of this is my fault, I&#39;m afraid, because I do not intend to implement any kind of subwallet/account support in bitcoinj. My reasons are:<div><ol><li>The bitcoinj API already lets you create and use multiple wallets. What&#39;s more, because of the desire to do key rotation (think rotating a previously unencrypted wallet to an encrypted one that is stored on SSD&#39;s that cannot reliably erase data), a bitcoinj wallet can actually contain multiple BIP32 seeds and hierarchies at once, although only the last one will be used for vending addresses. So adding subwallet support onto this makes it even more complicated.<br>
<br></li><li>If there was a much better user experience to be enabled by this, it may be worth it, but I believe many people will find subwallets rather confusing. They don&#39;t match the analogy of bank accounts in several ways. For instance, transferring money across them leaks private data and costs miners fees, neither of which are true with banks. <br>
<br>Also it differs in a more important way. People have different bank accounts because those accounts implement different policies. Current accounts may pay a lower interest rate than savings accounts, but have different features, and accounts can be used as security boundaries i.e. no card withdrawals from savings. But &quot;subwallets&quot; are not like this. The only justification for their existence is to avoid outputs being merged together to make payments - a subtle technical detail of the protocol that users are ill equipped to understand. If someone asked me &quot;why should I create a second account&quot; I would be unable to give them a satisfying answer without first teaching them about how the Bitcoin protocol works and the privacy implications of that, which is practically a lecture sized topic.<br>
<br></li><li>MultiBit did support multiple wallets for a long time (just by creating multiple wallet files and using the support in bitcoinj for running them in parallel), but they decided to remove this feature in MultiBit HD because it caused support headaches. People would stash money in one wallet or the other, close the wallet and then forget and think they had lost it, etc. It may be that TREZOR type subwallets don&#39;t suffer this confusion because they can&#39;t be moved around or &quot;closed&quot; in the same way a file can be, but still, this is a data point against multiple simultaneous wallets. At least for products targeting entry level consumers.</li>
</ol><div>Whilst I can well believe there are TREZOR users who are asking for this feature today, currently the costs feel a bit higher than the benefits.</div></div><div><br></div><div>It would be rather nice to be able to type in a mnemonic code that myTREZOR was initialised with and duplicate that wallet into a bitcoinj based wallet app. But if I have to implement subwallets and expose this in the API, and if all wallet authors that want to be able to share a wallet with myTREZOR have to expose subwallets in their GUIs too, even though the concept may prove confusing and hard to explain, then it might be more tempting to just tell users that want to switch wallet apps to send the money via the block chain instead.</div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 24, 2014 at 9:10 AM, Pieter Wuille <span dir="ltr">&lt;<a href="mailto:pieter.wuille@gmail.com" target="_blank">pieter.wuille@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Thu, Apr 24, 2014 at 8:54 AM, Thomas Voegtlin &lt;<a href="mailto:thomasv1@gmx.de">thomasv1@gmx.de</a>&gt; wrote:<br>

&gt;&gt; Why do clients need to use the features in BIP 64? If Electrum doesn&#39;t want to<br>
&gt;&gt; use accounts, [...]<br>
&gt;<br>
&gt; To clarify:<br>
&gt; Electrum plans to have bip32 accounts; Multibit will not, afaik.<br>
<br>
</div>To clarify:<br>
BIP64 has a much stricter definition for accounts than BIP32.<br>
<br>
In BIP32, it is not well specified what accounts are used for. They<br>
can be used for &quot;subwallets&quot;, &quot;receive accounts&quot; (as in bitcoind&#39;s<br>
account feature), &quot;recurring payments&quot;, part of a chain used as<br>
multisig addresses, ... determined individually for each index.<br>
<br>
In BIP64, they are strictly used for subwallets, and can&#39;t be used by<br>
anything else.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Pieter<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
------------------------------------------------------------------------------<br>
Start Your Social Network Today - Download eXo Platform<br>
Build your Enterprise Intranet with eXo Platform Software<br>
Java Based Open Source Intranet - Social, Extensible, Cloud Ready<br>
Get Started Now And Turn Your Intranet Into A Collaboration Platform<br>
<a href="http://p.sf.net/sfu/ExoPlatform" target="_blank">http://p.sf.net/sfu/ExoPlatform</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>
</div></div></blockquote></div><br></div>