Re: [Bitcoin-development] Alternate HD path structure: BIP, blog, or wat?

2015-06-20 Thread Jonas Schnelli
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > m / purpose' / network' / asset_type' / account' / change / index > > ... > > I was also wondering if anyone had previously suggested something > similar that I missed when cruising the mailing list archives on > the subject. Hi Matt a) In my

Re: [Bitcoin-development] Alternate HD path structure: BIP, blog, or wat?

2015-06-19 Thread Matt Smith
> to avoid having an internal mapping from 9'-> 0' to find out what > blockchain to query, this sounds like it should be trivial for any wallet. Trivial to implement, a headache to *maintain* But if a new platform is released on an existing blockchain, my wallet doesn't need to know about the new

Re: [Bitcoin-development] Alternate HD path structure: BIP, blog, or wat?

2015-06-19 Thread Matt @ Envrin Group
Say you generate a child key using the path m/6'/4'/7'/99'/0/196, which is what your proposed path structure would be, and it results in the address 1DpY7PtPVURvjrGsdAjbZAZ7cL9GD8tc5w. When the wallet notices a transaction in the blockchain that has 1DpY7PtPVURvjrGsdAjbZAZ7cL9GD8tc5w as an out

Re: [Bitcoin-development] Alternate HD path structure: BIP, blog, or wat?

2015-06-19 Thread Andreas Petersson
>m/##'/0'/99'/0' > >where 99 is the identifier for, say, counterparty What is stopping you from using m/44'/9'/a'/c/i as descibed here: http://doc.satoshilabs.com/slips/slip-0044.html to avoid having an internal mapping from 9'-> 0' to find out what blockchain to query, this sounds like it shoul

Re: [Bitcoin-development] Alternate HD path structure: BIP, blog, or wat?

2015-06-19 Thread Matt Smith
I'm not sure I understand your question about the need to store paths in the wallet database -- there's no way to infer the path of an address inside an HD wallet from the address alone (short of an exhaustive search), and HD wallets need to store either the paths, addresses, or both that have been

Re: [Bitcoin-development] Alternate HD path structure: BIP, blog, or wat?

2015-06-19 Thread Matt @ Envrin Group
Hi Matt, I think your best bet is probably just push it out privately via blog post / Github, and see if it gains any traction with other developers. I'm a little uncertain as to the relevance though. All those variables (purpose, network, asset_type, account, change, index) need to be stor

[Bitcoin-development] Alternate HD path structure: BIP, blog, or wat?

2015-06-19 Thread Matt Smith
Hey guys, The crew at Gem is considering a new HD wallet path structure for our wallets, which are coin-agnostic, that separates the coin_type field into two fields as such: m / purpose' / network' / asset_type' / account' / change / index where network refers to the blockchain (0 - bitcoin, 1 -