Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 3BBA268 for ; Sun, 9 Aug 2015 16:02:43 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id AF7861B2 for ; Sun, 9 Aug 2015 16:02:41 +0000 (UTC) Received: by iodd187 with SMTP id d187so149913922iod.2 for ; Sun, 09 Aug 2015 09:02:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=L6I8ffkj6g/d+bYeJqJD0nkOutQLPUx/P7SEd3D9S7Y=; b=ASDYoiXczBTuRb73i3dAVxR88dbPP5SpJdbgpTzgxNf70r04r3381HyTrP0+BpRS+4 1k91Zq3//tyYxs40F4U/+MqlYabt+kGN6EF4s+LpaHQoCBxRtzc3zz7xuxQQ0eOMiDLq +cPkZxhyPiD6gqpL3mXZx/5DlEBIV89ZFmAwl7ZBqysCCCPjEshyoqDTgDKLr+yhopJS FGXiapKYGlpVM50glY2KXEMl16GWjscZYgnH76XCobbwMt5X7K8MpYI2J/3TCrldqWqb JBOuGvM7uCL1j1TgHX8BfcfED1hIEnzOpRrrhFP2enUionGctkNflcf5zIosF2Duzul2 F6QQ== X-Gm-Message-State: ALoCoQkDLgGhiZ1e8C9xvX4B8SF0IobXC24WDLG18Rto+Ndev8KuOLizJATw9tmyLUyBRLC0p4Zb MIME-Version: 1.0 X-Received: by 10.107.130.166 with SMTP id m38mr20425446ioi.77.1439136160868; Sun, 09 Aug 2015 09:02:40 -0700 (PDT) Received: by 10.107.158.140 with HTTP; Sun, 9 Aug 2015 09:02:40 -0700 (PDT) X-Originating-IP: [172.56.17.136] Received: by 10.107.158.140 with HTTP; Sun, 9 Aug 2015 09:02:40 -0700 (PDT) In-Reply-To: <55C75FC8.6070807@jrn.me.uk> References: <55C75FC8.6070807@jrn.me.uk> Date: Sun, 9 Aug 2015 09:02:40 -0700 Message-ID: From: Mark Friedenbach To: Ross Nicoll Content-Type: multipart/alternative; boundary=001a113eb9c8a6fecf051ce2ffd4 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Bitcoin Dev Subject: Re: [bitcoin-dev] Alternative chain support for payment protocol X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Development Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2015 16:02:43 -0000 --001a113eb9c8a6fecf051ce2ffd4 Content-Type: text/plain; charset=UTF-8 A sha256 hash is 32 bytes, but otherwise I agree with this proposal. Genesis block hash is the logical way to identify chains, moving forward. On Aug 9, 2015 7:12 AM, "Ross Nicoll via bitcoin-dev" < bitcoin-dev@lists.linuxfoundation.org> wrote: > BIP 70 currently lists two networks, main and test (inferred as testnet3) > for payment protocol requests. This means that different testnets cannot be > supported trivially, and the protocol cannot be used for alternative coins > (or, lacks context to indicate which coin the request applies to, which is > particularly dangerous in cases where coins share address prefixes). > > I propose adding a new optional "genesis" field as a 16 byte sequence > containing the SHA-256 hash of the genesis block of the network the request > belongs to, uniquely identifying chains without any requirement for a > central registry. For backwards compatibility, the "network" field would > contain "main" for Bitcoin main net, "test" for Bitcoin testnet3, and > "other" for other networks apart from those two. > > I'd appreciate initial feedback on the idea, and if there's no major > objections I'll raise this as a BIP. > > Ross > > _______________________________________________ > bitcoin-dev mailing list > bitcoin-dev@lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev > --001a113eb9c8a6fecf051ce2ffd4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

A sha256 hash is 32 bytes, but otherwise I agree with this p= roposal. Genesis block hash is the logical way to identify chains, moving f= orward.

On Aug 9, 2015 7:12 AM, "Ross Nicoll via bi= tcoin-dev" <bitcoin-dev@lists.linuxfoundation.org> wrote:
BIP 70 currently lists two networks, mai= n and test (inferred as testnet3) for payment protocol requests. This means= that different testnets cannot be supported trivially, and the protocol ca= nnot be used for alternative coins (or, lacks context to indicate which coi= n the request applies to, which is particularly dangerous in cases where co= ins share address prefixes).

I propose adding a new optional "genesis" field as a 16 byte sequ= ence containing the SHA-256 hash of the genesis block of the network the re= quest belongs to, uniquely identifying chains without any requirement for a= central registry. For backwards compatibility, the "network" fie= ld would contain "main" for Bitcoin main net, "test" fo= r Bitcoin testnet3, and "other" for other networks apart from tho= se two.

I'd appreciate initial feedback on the idea, and if there's no majo= r objections I'll raise this as a BIP.

Ross

_______________________________________________
bitcoin-dev mailing list
= bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mail= man/listinfo/bitcoin-dev
--001a113eb9c8a6fecf051ce2ffd4--