Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 2777F1032 for ; Tue, 1 Sep 2015 21:39:20 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 4AB6315C for ; Tue, 1 Sep 2015 21:39:19 +0000 (UTC) Received: by lamp12 with SMTP id p12so8919373lam.0 for ; Tue, 01 Sep 2015 14:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=rpo4cLznIcaFJyJtDH2KvA0hCffwsZxfBmcDszC1eso=; b=N7OAVz1isgs/xCmzo2mR6IHsawVZk55Y6tC/4fk/qRDw2januLv9Kg/1SSIkT6kN83 LkdTylyBDXKbb1jWuiw6JM7l0hCt/YqdZsauine+6DgJm311cKZk2jNc37676NN8O0Xe IoFI1IHE7V+tue5gXaeanwpRyUmNPy4vZ+7Y76m61EQ9UxSDq+Q/WvsoTD+SQBES2Ux5 1x1qR+tJk2lZsWSKUunM4mYwtF221oP/hS/WVLNKGy4hfuhElaQRM1JOy7H62iGR5c35 TYuyYT2UTmjk1T3ggh3T5Fg4/xW+YSdhPeA/bK618OPxB6VBbtM03R89E345c9ZCKrE1 rCoA== X-Received: by 10.112.142.105 with SMTP id rv9mr14107526lbb.11.1441143557620; Tue, 01 Sep 2015 14:39:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.186.168 with HTTP; Tue, 1 Sep 2015 14:38:58 -0700 (PDT) In-Reply-To: <5546682.RnG4VcateO@crushinator> References: <5546682.RnG4VcateO@crushinator> From: Marco Pontello Date: Tue, 1 Sep 2015 23:38:58 +0200 Message-ID: To: Matt Whitlock Content-Type: multipart/alternative; boundary=001a11c3775cd28986051eb66167 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,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] RFC - BIP: URI scheme for Blockchain exploration 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: Tue, 01 Sep 2015 21:39:20 -0000 --001a11c3775cd28986051eb66167 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I see your point. But I personally like that the chain part could be optional, given that the vast majority of the references in the end will be to Bitcoin main net. On Tue, Sep 1, 2015 at 11:16 PM, Matt Whitlock wrote: > Isn't this all backward? The "authority" component of the URL should > identify the chain, and the "path" component should identify the particul= ar > block, tx, or address in that chain. > > So instead of: > > > blockchain://tx/ca26cedeb9cbc94e030891578e0d2b688a28902114f6ad2f24ecd3918= f76c17f?chain=3D000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8= ce26f > > It should be: > > > blockchain://000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8c= e26f/tx/ca26cedeb9cbc94e030891578e0d2b688a28902114f6ad2f24ecd3918f76c17f > > And I would agree with allowing well-known chains to register a name, to > be used as an alternative to the literal, hash syntax: > > > blockchain://bitcoin/tx/ca26cedeb9cbc94e030891578e0d2b688a28902114f6ad2f2= 4ecd3918f76c17f > > > On Tuesday, 1 September 2015, at 4:49 pm, Marco Pontello wrote: > > On Sat, Aug 29, 2015 at 10:10 PM, Jorge Tim=C3=B3n < > > bitcoin-dev@lists.linuxfoundation.org> wrote: > > > > > > > > I would really prefer chain=3D over network=3D > > > By chainID I mean the hash of the genesis block, see > > > > > > > https://github.com/jtimon/bitcoin/commit/3191d5e8e75687a27cf466b7a4c70bdc= 04809d39 > > > I'm completely fine with doing that using an optional parameter (for > > > backwards compatibility). > > > > > > > I see that using the genesis block hash would be the perfectly rigorous > way > > to do it, but what do you think about the possibility of letting also u= se > > the name constants, as a simple / more relaxed alternative? That would > > spare a source lookup just to write a correct reference to a tx, maybe > in a > > forum or a post. > > > > So a reference to a certain tx could be either: > > > > > blockchain://tx/ca26cedeb9cbc94e030891578e0d2b688a28902114f6ad2f24ecd3918= f76c17f > > > > > blockchain://tx/ca26cedeb9cbc94e030891578e0d2b688a28902114f6ad2f24ecd3918= f76c17f?chain=3D000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8= ce26f > > > > > blockchain://ca26cedeb9cbc94e030891578e0d2b688a28902114f6ad2f24ecd3918f76= c17f?chain=3Dmain > > > > (or a different element name maybe) > > > > -- > > Try the Online TrID File Identifier > > http://mark0.net/onlinetrid.aspx > --=20 Try the Online TrID File Identifier http://mark0.net/onlinetrid.aspx --001a11c3775cd28986051eb66167 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I see your point. But I personally like that the chain par= t could be optional, given that the vast majority of the references in the = end will be to Bitcoin main net.



--
=
Try the Online TrID File Identifier
http://mark0.net/= onlinetrid.aspx
--001a11c3775cd28986051eb66167--