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 1Z17XK-0005KP-Gq for bitcoin-development@lists.sourceforge.net; Sat, 06 Jun 2015 06:24:54 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; envelope-from=kristovatlas.lists@gmail.com; helo=mail-la0-f43.google.com; Received: from mail-la0-f43.google.com ([209.85.215.43]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Z17XJ-0005Kr-LF for bitcoin-development@lists.sourceforge.net; Sat, 06 Jun 2015 06:24:54 +0000 Received: by labpy14 with SMTP id py14so67077369lab.0 for ; Fri, 05 Jun 2015 23:24:47 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.54.225 with SMTP id m1mr6849381lbp.34.1433571887271; Fri, 05 Jun 2015 23:24:47 -0700 (PDT) Received: by 10.152.163.98 with HTTP; Fri, 5 Jun 2015 23:24:47 -0700 (PDT) In-Reply-To: <44BE16F9-AB24-4A8E-BC7F-03A6C590FCE7@gmail.com> References: <44BE16F9-AB24-4A8E-BC7F-03A6C590FCE7@gmail.com> Date: Sat, 6 Jun 2015 02:24:47 -0400 Message-ID: From: Kristov Atlas To: Stephen Content-Type: multipart/alternative; boundary=001a11c3ecfe19d3340517d377ae 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 (kristovatlas.lists[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: 1Z17XJ-0005Kr-LF Cc: Bitcoin development mailing list Subject: Re: [Bitcoin-development] Lexicographical Indexing of Transaction Inputs and Outputs 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: Sat, 06 Jun 2015 06:24:54 -0000 --001a11c3ecfe19d3340517d377ae Content-Type: text/plain; charset=UTF-8 Hey Stephen, Thanks for your feedback On Fri, Jun 5, 2015 at 11:20 PM, Stephen wrote: > - I think your explanation of sorting could be significantly shortened > and clarified by simply saying that the TXIDs of inputs should be compared > as uint256 integers. > I considered defining the comparison of txids in terms of integers; however, I am concerned that this definition may be ambiguous when applied to a variety of languages and platforms without a similar amount of explanation as currently exists. For example, if a web wallet uses an API to receive transaction information, this is traditionally expressed in terms tx id strings rather than 256-bit integers. My intent is that wallets can implement the algorithm however they wish, but should ensure that their output is compliant with the BIP definition. IMHO the algorithm stated in the BIP should target test cases rather than implementation, and should leave as little room for ambiguity as possible. --001a11c3ecfe19d3340517d377ae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey Stephen,

Thanks for your feedback
On Fri, Jun 5, 2015 = at 11:20 PM, Stephen <stephencalebmorse@gmail.com>= wrote:
=C2=A0- I = think your explanation of sorting could be significantly shortened and clar= ified by simply saying that the TXIDs of inputs should be compared as uint2= 56 integers.=C2=A0

I considered= defining the comparison of txids in terms of integers; however, I am conce= rned that this definition may be ambiguous when applied to a variety of lan= guages and platforms without a similar amount of explanation as currently e= xists. For example, if a web wallet uses an API to receive transaction info= rmation, this is traditionally expressed in terms tx id strings rather than= 256-bit integers. My intent is that wallets can implement the algorithm ho= wever they wish, but should ensure that their output is compliant with the = BIP definition. IMHO the algorithm stated in the BIP should target test cas= es rather than implementation, and should leave as little room for ambiguit= y as possible.
--001a11c3ecfe19d3340517d377ae--