Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id E05EE258 for ; Thu, 22 Oct 2015 08:27:10 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 11D0C79 for ; Thu, 22 Oct 2015 08:27:10 +0000 (UTC) Received: by wicfx6 with SMTP id fx6so124582272wic.1 for ; Thu, 22 Oct 2015 01:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=f5nqT754LPjNna2mxjEQP5sIGqg9aQJB9Xg+m95TU+k=; b=wYkvOeC1hmJpGr2IUhRwV9LofFQYNMWIgEKfCVsfGHvDBwkd197WNk9aKM0pfuA0CV 6D/GHAYfjnOWIzIiv9BQbYIk7B+bol2E1CqmRKBH5kGOK1b6Vqa2+jOKTQaljP0VmNDD aBPqPflxsFxFJTmMmVSGoMaB6eL33vjpIo2UKGIQ38Vtl/NqXKxsaIpIxHJM+uuo7meD BROStozkaXQBnTYZxy9plzhuWOLbw8CV9/3YP51dFY+1IvrH+/EJkxJMOajJSnI9UGn1 La3IpdDGV0oXIqEtv62EN7ldAiirIiZE4P5jWqBeTfBhIpE2RVj0XTTqao3CeFCwfftT SXCg== X-Received: by 10.194.239.230 with SMTP id vv6mr15918593wjc.21.1445502428444; Thu, 22 Oct 2015 01:27:08 -0700 (PDT) MIME-Version: 1.0 References: <201510210846.43988.luke@dashjr.org> <201510212320.31052.luke@dashjr.org> In-Reply-To: <201510212320.31052.luke@dashjr.org> From: Christian Decker Date: Thu, 22 Oct 2015 08:26:58 +0000 Message-ID: To: Luke Dashjr , Danny Thorpe Content-Type: multipart/alternative; boundary=089e0141a3d6c4fd900522ad4294 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 X-Mailman-Approved-At: Thu, 22 Oct 2015 08:43:51 +0000 Cc: Bitcoin Dev Subject: Re: [bitcoin-dev] [BIP] Normalized transaction IDs 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: Thu, 22 Oct 2015 08:27:11 -0000 --089e0141a3d6c4fd900522ad4294 Content-Type: text/plain; charset=UTF-8 I think the scenario of the single signer re-ordering the outputs and inputs and then re-signing the transaction is in the same category of simple double-spends. The signer could just as well sign a completely different transaction spending the same coins to somewhere else, so I don't think there is a lot we can do about it even if we instate a canonical ordering. Even if we order the inputs and outputs the signer can just add a new input and output and we would have a different transaction. Normalized transaction IDs do help in the case that the single signer wants to immediately follow up its transaction with another transaction spending the first one's change output, and it prevents any modification in the multi-signer scenario. On Thu, Oct 22, 2015 at 1:21 AM Luke Dashjr wrote: > On Wednesday, October 21, 2015 6:22:25 PM Danny Thorpe wrote: > > Let's keep canonical ordering separate from the normalized transaction ID > > proposal. Baby steps. Normalized transaction IDs provide an immediate > > benefit against the hazard of third party manipulation of transactions in > > the mempool, even without canonical ordering. > > My point is that third-party manipulation is not much more of a problem > than > signing-party manipulation. Solving the former (at a high cost), without > solving the latter, seems not worth it IMO. > > Luke > --089e0141a3d6c4fd900522ad4294 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I think the scenario of the single signer re-ordering the = outputs and inputs and then re-signing the transaction is in the same categ= ory of simple double-spends. The signer could just as well sign a completel= y different transaction spending the same coins to somewhere else, so I don= 't think there is a lot we can do about it even if we instate a canonic= al ordering. Even if we order the inputs and outputs the signer can just ad= d a new input and output and we would have a different transaction.
Normalized transaction IDs do help in the case that the single = signer wants to immediately follow up its transaction with another transact= ion spending the first one's change output, and it prevents any modific= ation in the multi-signer scenario.

On Thu, Oct 22, 2015 at 1:21 AM Luke Dashjr <luke@dashjr.org> wrote:
On Wednesday, October 21, 2015 6:22:25 PM Danny Tho= rpe wrote:
> Let's keep canonical ordering separate from the normalized transac= tion ID
> proposal. Baby steps. Normalized transaction IDs provide an immediate<= br> > benefit against the hazard of third party manipulation of transactions= in
> the mempool, even without canonical ordering.

My point is that third-party manipulation is not much more of a problem tha= n
signing-party manipulation. Solving the former (at a high cost), without solving the latter, seems not worth it IMO.

Luke
--089e0141a3d6c4fd900522ad4294--