This scheme is independent of the number of accounts. It works with BIP44 as well as BIP43 purpose 0, or any other BIP43 purpose/layout. Instead of overloading the account index to indicate the type of address, you use the chain index, which is already being used to indicate what the specific address chain is to be used for, i.e. receive vs change addresses.


Aaron Voisine
co-founder and CEO
breadwallet

On Fri, May 13, 2016 at 9:11 AM, Pavol Rusnak <stick@satoshilabs.com> wrote:
On 13/05/16 18:03, Aaron Voisine wrote:
> I like the idea of specifying the type of address as a bit field flag.
> 0x80000000 is already used to specify hardened derivation, so 0x40000000
> would be the next available to specify witness addresses. This is
> compatible with existing accounts and wallet layouts.

I think this is over-optimization. What is the advantage of

m/0'/0x40000000 instead of m/whatever'/0 ?

But this is off-topic anyway, as we are discussing multiple-accounts per
wallet layout here, not one-account-per-wallet design.

--
Best Regards / S pozdravom,

Pavol "stick" Rusnak
SatoshiLabs.com