Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YudaW-0007Ap-Rc for bitcoin-development@lists.sourceforge.net; Tue, 19 May 2015 09:13:24 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.216.169 as permitted sender) client-ip=209.85.216.169; envelope-from=tier.nolan@gmail.com; helo=mail-qc0-f169.google.com; Received: from mail-qc0-f169.google.com ([209.85.216.169]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YudaV-0001tY-1F for bitcoin-development@lists.sourceforge.net; Tue, 19 May 2015 09:13:24 +0000 Received: by qceb3 with SMTP id b3so2471415qce.2 for ; Tue, 19 May 2015 02:13:17 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.202.130 with SMTP id x124mr772835qha.9.1432026797524; Tue, 19 May 2015 02:13:17 -0700 (PDT) Received: by 10.140.85.241 with HTTP; Tue, 19 May 2015 02:13:17 -0700 (PDT) In-Reply-To: References: <5555C26F.7080706@sky-ip.org> Date: Tue, 19 May 2015 10:13:17 +0100 Message-ID: From: Tier Nolan Cc: Bitcoin Development Content-Type: multipart/alternative; boundary=001a11432f14934b4505166bb898 X-Spam-Score: 3.3 (+++) 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 (tier.nolan[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.2 MISSING_HEADERS Missing To: header 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 2.7 MALFORMED_FREEMAIL Bad headers on message from free email service X-Headers-End: 1YudaV-0001tY-1F 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 09:13:24 -0000 --001a11432f14934b4505166bb898 Content-Type: text/plain; charset=UTF-8 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. 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. 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. --001a11432f14934b4505166bb898 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= ue, May 19, 2015 at 9:28 AM, Christian Decker <decker.christian@g= mail.com> wrote:
Thanks Stephen, I hadn't thought about BIP 34 and we need to = address this in both proposals.=C2=A0If we can avoid it I'd lik= e not to have one transaction hashed one way and other transactions in anot= her way.

The normalized TXID c= annot depend on height for other transactions.=C2=A0 Otherwise, it gets mut= ated when been added to the chain, depending on height.

A= n option would be that the height is included in the scriptSig for all tran= sactions, but for non-coinbase transctions, the height used is zero.
I think if height has to be an input into the normalized txid f= unction, the specifics of inclusion don't matter.

The previous txid for coinbases are required to be all zeros, so th= e normalized txid could be to add the height to the txids of all inputs.=C2= =A0 Again, non-coinbase transactions would have heights of zero.
<= div>=C2=A0
Is th= ere a specific reason why that was not chosen at the time?
=

I assumed that since the scriptSig i= n the coinbase is specifically intended to be "random" bytes/extr= a nonce, so putting a restriction on it was guaranteed to be backward compa= tible.
=C2=A0
--001a11432f14934b4505166bb898--