From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 3D9FD899 for ; Tue, 5 Sep 2017 16:33:04 +0000 (UTC) X-Greylist: delayed 06:07:43 by SQLgrey-1.7.6 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 95DC51F0 for ; Tue, 5 Sep 2017 16:33:03 +0000 (UTC) X-Originating-IP: 178.19.221.38 Received: from [10.10.42.98] (unknown [178.19.221.38]) (Authenticated sender: thomasv@electrum.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id EDBB3C5A6A for ; Tue, 5 Sep 2017 18:33:01 +0200 (CEST) To: bitcoin-dev@lists.linuxfoundation.org References: From: Thomas Voegtlin Message-ID: <28d57503-c2b3-7736-bfea-46506636d999@electrum.org> Date: Tue, 5 Sep 2017 18:33:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: Re: [bitcoin-dev] BIP49 Derivation scheme changes X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2017 16:33:04 -0000 On 05.09.2017 09:10, shiva sitamraju via bitcoin-dev wrote: > Hi, > > Thanks Thomas. The procedure described in > http://docs.electrum.org/en/latest/seedphrase.html is really what I was > looking for ! I really don't see any point of following BIP49, If possible > it would be great if you can propose an alternative to BIP49 that follows > similar structure to what is used in electrum. > > I have proposed following changes to BIP32 serialization format > https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#serialization-format > to differentiate segwit xpub/xprv. Below the list of new version bytes, > resulting base58 prefix and network type: > > 0x042393df , sxpr , segwit mainnet private key > 0x04239377 , sxpb , segwit mainnet public key > 0x04222463 , stpb , segwit testnet public key > 0x042224cc , stpr , segwit testnet private key > I have proposed a similar idea, with letters z,y,z combined with pub/prv (see the electrum documentation page) The point is that we need 3 types of keys, not 2, because there are two types of segwit output scripts: native and nested in p2sh. We could use t,u,v for testnet.