We use the default BIP32 wallet layout, mentioned in BIP43 as purpose "0". We were thinking of of having 4 chains below the "account" level, the original 0 and 1 for receive and change addresses, and then 0x40000000 and 0x40000001 for P2WPKH-in-P2SH versions of receive and change addresses.

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.

As Daniel mentioned, the downside is that trying to recover on non-segwit software will miss segwit receives, however it does avoid the problem of having to check multiple address types for each key.

Aaron Voisine
co-founder and CEO
breadwallet

On Fri, May 13, 2016 at 8:00 AM, Pavol Rusnak via bitcoin-dev <bitcoin-dev@lists.linuxfoundation.org> wrote:
On 13/05/16 15:16, Daniel Weigl via bitcoin-dev wrote:
> 2) Define a new derivation path, parallel to Bip44, but a different  'purpose' (eg. <BipNumber-of-this-BIP>' instead of 44'). Let the user choose which account he want to add ("Normal account", "Witness account").

We had quite a long discussion in our team some time ago and we agreed
on that option #2 is much better and we'd like to implement this way in
myTREZOR.

>       +) Wallet needs only to take care of 1 address per public key

True, if this BIP only supports P2WPKH.

P2WSH should probably be handled by another account type and another
BIP, anyway.

> Has any Bip44 compliant wallet already done any integration at this point?

We have something in the pipeline, but no visible results yet.

--
Best Regards / S pozdravom,

Pavol "stick" Rusnak
SatoshiLabs.com
_______________________________________________
bitcoin-dev mailing list
bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev