Re: [bitcoin-dev] Proposal: bip32 version bytes for segwit scripts

2017-09-07 Thread Luke Dashjr via bitcoin-dev
On Tuesday 05 September 2017 15:00:04 Kabuto Samourai via bitcoin-dev wrote: > I think Luke and Thomas may be talking past one another. When exporting a > root master HD seed, encoding the {x,y,z}{pub,prv} distinctions makes no > sense, as the root seed should derive all paths for all coins. Wallet

Re: [bitcoin-dev] Proposal: bip32 version bytes for segwit scripts

2017-09-06 Thread Pavol Rusnak via bitcoin-dev
On 05/09/17 19:03, Luke Dashjr via bitcoin-dev wrote: > I think it makes more sense to use a child number field for this purpose. > It seems desirable to use the same seed for all different script formats... If I were designing the serialization format today, I would drop the fingerprint and expan

Re: [bitcoin-dev] Proposal: bip32 version bytes for segwit scripts

2017-09-06 Thread Kabuto Samourai via bitcoin-dev
> In addition, consensus might be more difficult to reach on that Let's move forward with the simplest solution that solves the problem and achieves consensus! Version bytes {x,y,z} fits the bill. On Wed, Sep 6, 2017 at 4:26 AM, Thomas Voegtlin via bitcoin-dev < bitcoin-dev@lists.linuxfoundation.

Re: [bitcoin-dev] Proposal: bip32 version bytes for segwit scripts

2017-09-06 Thread Thomas Voegtlin via bitcoin-dev
On 05.09.2017 21:00, Kabuto Samourai wrote: > > The Electrum approach is nice but may not go far enough, as xpub and zpub > both list "P2PKH or P2SH." Why not expand the number of version prefixes to > eliminate the ambiguity? > I agree that this would make sense if we had done it from the sta

Re: [bitcoin-dev] Proposal: bip32 version bytes for segwit scripts

2017-09-05 Thread Kabuto Samourai via bitcoin-dev
We support a change to the version bits of the HD serialization that will inform the receiving utility of the exact derivation method used for the pubkeys. Third-parties handling xpubs must not require additional information from the user about the derivation path or serialization format of the add

Re: [bitcoin-dev] Proposal: bip32 version bytes for segwit scripts

2017-09-05 Thread Andreas Schildbach via bitcoin-dev
Generally I like the idea, but maybe we should come up with a (Bech32-based?) new standard that also includes the key birthdate (aka "wallet birthdate"). Also I heard Core will mix addresses of all types on the same HD chain. What prefix would it pick? "*pub"? On 09/05/2017 12:25 PM, Thomas Voeg

Re: [bitcoin-dev] Proposal: bip32 version bytes for segwit scripts

2017-09-05 Thread Thomas Voegtlin via bitcoin-dev
On 05.09.2017 19:03, Luke Dashjr wrote: > It seems desirable to use the same seed for all different script formats... That does not seem desirable to everybody. If you want to guarantee that users will be able to recover all their funds from their mnemonic seed (and that is what they expect),

Re: [bitcoin-dev] Proposal: bip32 version bytes for segwit scripts

2017-09-05 Thread Luke Dashjr via bitcoin-dev
On Tuesday 05 September 2017 06:25:16 Thomas Voegtlin via bitcoin-dev wrote: > I have heard the argument that xpub/xprv serialization is a format for > keys, and that it should not be used to encode how these keys are used. > However, the very existence of version bytes, and the fact that they are

Re: [bitcoin-dev] Proposal: bip32 version bytes for segwit scripts

2017-09-05 Thread Pavol Rusnak via bitcoin-dev
On 05/09/17 12:25, Thomas Voegtlin via bitcoin-dev wrote: > == === === > VersionPrefix Description > == === === > 0x0488ade4 xprvP2PKH or P2SH > 0x0488b21e xpubP2PKH or P2SH > 0x

[bitcoin-dev] Proposal: bip32 version bytes for segwit scripts

2017-09-05 Thread Thomas Voegtlin via bitcoin-dev
BIP32 extended public/private keys have version bytes that result in the user visible xpub/xprv prefix. The BIP's recommendation is to use different version bytes for other networks (such as tpub/tprv for testnet) I would like to use additional version bytes to indicate the type of output script u