Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 47B7EAE7 for ; Wed, 6 Sep 2017 09:26:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id D3F628A for ; Wed, 6 Sep 2017 09:26:50 +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 relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 4EB421720A3 for ; Wed, 6 Sep 2017 11:26:49 +0200 (CEST) To: Bitcoin Protocol Discussion References: From: Thomas Voegtlin Message-ID: <56a0c721-4bae-7b99-0ca3-d0834756fc31@electrum.org> Date: Wed, 6 Sep 2017 11:26:48 +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: 8bit 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] Proposal: bip32 version bytes for segwit scripts 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: Wed, 06 Sep 2017 09:26:51 -0000 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 start. However, fixing that now might be difficult. My "xyz" proposal extends the current format in a way that is very easy to deploy, because existing software will require minimal changes. However, if we eliminate the p2sh ambiguity now, wallets will need to add extra safeguards, in order to prevent scenarios that are currently allowed, and they will need to handle legacy xpub/xprv differently than ypub and zpub. This would take much more time to deploy. In addition, consensus might be more difficult to reach on that; I guess not all developers will not agree that removing that ambiguity is useful. Since there is an infinity of possible P2SH scripts, it will never be possible to remove ambiguity from a master key associated to a P2SH script. Thus, the benefit of separating P2SH from P2PKH is not as strong.