From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Yuf00-0008IE-Pt for bitcoin-development@lists.sourceforge.net; Tue, 19 May 2015 10:43:48 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; envelope-from=decker.christian@gmail.com; helo=mail-la0-f42.google.com; Received: from mail-la0-f42.google.com ([209.85.215.42]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Yuezz-0004oy-Be for bitcoin-development@lists.sourceforge.net; Tue, 19 May 2015 10:43:48 +0000 Received: by laat2 with SMTP id t2so16845353laa.1 for ; Tue, 19 May 2015 03:43:41 -0700 (PDT) X-Received: by 10.112.147.73 with SMTP id ti9mr21127143lbb.108.1432032220915; Tue, 19 May 2015 03:43:40 -0700 (PDT) MIME-Version: 1.0 References: <5555C26F.7080706@sky-ip.org> In-Reply-To: From: Christian Decker Date: Tue, 19 May 2015 10:43:39 +0000 Message-ID: To: Tier Nolan Content-Type: multipart/alternative; boundary=047d7b3a88acd5ad3805166cfbab X-Spam-Score: -0.6 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (decker.christian[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1Yuezz-0004oy-Be Cc: Bitcoin Development Subject: Re: [Bitcoin-development] [BIP] Normalized Transaction IDs X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2015 10:43:48 -0000 --047d7b3a88acd5ad3805166cfbab Content-Type: text/plain; charset=UTF-8 On Tue, May 19, 2015 at 11:16 AM Tier Nolan wrote: > On Tue, May 19, 2015 at 9:28 AM, Christian Decker < > decker.christian@gmail.com> wrote: > >> Thanks Stephen, I hadn't thought about BIP 34 and we need to address this >> in both proposals. If we can avoid it I'd like not to have one >> transaction hashed one way and other transactions in another way. >> > > The normalized TXID cannot depend on height for other transactions. > Otherwise, it gets mutated when been added to the chain, depending on > height. > Well in the case of coinbase transactions we want them to be dependent on the height they are included in, which is not a problem since they are only valid in conjunction with the block that mined them. > > An option would be that the height is included in the scriptSig for all > transactions, but for non-coinbase transctions, the height used is zero. > No need to add an extra field to the transaction just to include the height. We can just add a rule that the height specified in the scriptSig in coinbase transactions (and only coinbase transactions) is copied into the locktime of the transaction before computing the normalized transaction ID and leave the locktime untouched for all normal transactions > > I think if height has to be an input into the normalized txid function, > the specifics of inclusion don't matter. > > The previous txid for coinbases are required to be all zeros, so the > normalized txid could be to add the height to the txids of all inputs. > Again, non-coinbase transactions would have heights of zero. > > >> Is there a specific reason why that was not chosen at the time? >> > > I assumed that since the scriptSig in the coinbase is specifically > intended to be "random" bytes/extra nonce, so putting a restriction on it > was guaranteed to be backward compatible. > Sounds reasonable :-) > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Bitcoin-development mailing list > Bitcoin-development@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bitcoin-development > --047d7b3a88acd5ad3805166cfbab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Tue, May 19, 2015 at 11:16 A= M Tier Nolan <tier.nolan@gmail.c= om> wrote:
On Tue, May 19, 2015 at 9:2= 8 AM, Christian Decker <decker.christian@gmail.com>= wrote:
Thanks Stephen,= I hadn't thought about BIP 34 and we need to address this in both prop= osals.=C2=A0If we can avoid it I'd like not to have one transac= tion hashed one way and other transactions in another way.

The normalized TXID cannot depen= d on height for other transactions.=C2=A0 Otherwise, it gets mutated when b= een added to the chain, depending on height.
Well in the case of coinbase transactions we want them to be= dependent on the height they are included in, which is not a problem since= they are only valid in conjunction with the block that mined them.=C2=A0

An option would be that = the height is included in the scriptSig for all transactions, but for non-c= oinbase transctions, the height used is zero.
No need to add an extra field to the transaction just to in= clude the height. We can just add a rule that the height specified in the s= criptSig in coinbase transactions (and only coinbase transactions) is copie= d into the locktime of the transaction before computing the normalized tran= saction ID and leave the locktime untouched for all normal transactions

I think if height has to b= e an input into the normalized txid function, the specifics of inclusion do= n't matter.

The previous txid for coinbase= s are required to be all zeros, so the normalized txid could be to add the = height to the txids of all inputs.=C2=A0 Again, non-coinbase transactions w= ould have heights of zero.
=C2=A0
Is there a specific reason wh= y that was not chosen at the time?
=
I assumed that since the scriptSig in the coin= base is specifically intended to be "random" bytes/extra nonce, s= o putting a restriction on it was guaranteed to be backward compatible.
=
Sounds reasonable :-)=C2=A0
=
=
=C2=A0
---------------------------------------------------------------------------= ---
One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y____= ___________________________________________
Bitcoin-development mailing list
Bitcoin-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitcoin-de= velopment
--047d7b3a88acd5ad3805166cfbab--