Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1SfBAk-00058b-LJ for bitcoin-development@lists.sourceforge.net; Thu, 14 Jun 2012 14:37:18 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.212.169 as permitted sender) client-ip=209.85.212.169; envelope-from=etotheipi@gmail.com; helo=mail-wi0-f169.google.com; Received: from mail-wi0-f169.google.com ([209.85.212.169]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1SfBAf-0003QX-2v for bitcoin-development@lists.sourceforge.net; Thu, 14 Jun 2012 14:37:18 +0000 Received: by wibhn14 with SMTP id hn14so6379870wib.4 for ; Thu, 14 Jun 2012 07:37:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.80.97 with SMTP id q1mr4853519wix.13.1339683907507; Thu, 14 Jun 2012 07:25:07 -0700 (PDT) Received: by 10.194.29.131 with HTTP; Thu, 14 Jun 2012 07:25:07 -0700 (PDT) Date: Thu, 14 Jun 2012 10:25:07 -0400 Message-ID: From: Alan Reiner To: Gavin Andresen Content-Type: multipart/alternative; boundary=f46d0442835c6b152e04c26f77ab 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 (etotheipi[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: 1SfBAf-0003QX-2v Cc: Bitcoin Dev Subject: [Bitcoin-development] A tangent about BIP 10 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: Thu, 14 Jun 2012 14:37:18 -0000 --f46d0442835c6b152e04c26f77ab Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jun 14, 2012 at 9:22 AM, Gavin Andresen wrote: > > I've been asked a couple of times: why doesn't signrawtx handle the > BIP 0010 (https://en.bitcoin.it/wiki/BIP_0010) transaction format? > > I considered parsing/writing BIP 10 format for raw transactions, but > decided that reading/writing BIP 10 format should happen at a higher > level and not in the low-level RPC calls. So 'raw transactions' are > simply hex-encoded into JSON strings, and encoding/decoding them is > just a couple of lines of already-written-and-debugged code. > > BIP 10 could use some improvement. I created it for offline and multi-sig tx but there was no reception to it because no one was using offline or multi-sig tx at the time except for Armory (which only currently implements offline tx). So I made something that fit my needs, and it has served its purpose well for me. But I also think it could be expanded and improved before there is wider adoption of it. It's a little clunky and not very rigorous. Elements of it that I'd really like to keep: (1) Some aspects of human-readability -- even if regular users will never look at it, it should be possible for advanced users to manually copy&paste the data around and see what's going on in the transaction and what signatures are present. I'm thinking of super-high-security situations where manual handling of such data may even be the norm. (2) Should be compact -- I took the concept of ASCII-armoring from PGP/GPG, because, for the reason above, it's much easier and cleaner to view/select when copied inline. If a random user accidentally runs across it, it will partially self-identify itself (3) Includes all previous transactions so the device can verify transaction inputs without the blockchain. Things that could be added: -- It needs a BIP16 script entry (this was created for vanilla multi-sig before BIP 16 was created) -- Comment lines -- Version number -- Use base58/64 encoding -- Rigorous formatting spec -- Binary representation -- A better name than "Tx Distribution Proposal" I'll be releasing the Beta version of Armory soon, and after that, I'll probably be thinking about a multi-signature support interface. That would be a good time for me to tie in a better version of BIP 10 -- one that is compatible with other clients implementing the same thing. --f46d0442835c6b152e04c26f77ab Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Thu, Jun 14, 2012 at 9:22 AM, Gavin Andresen = <gavinandresen@gmail.com> wrote:

I've been asked a couple of times: why doesn't signrawtx handle the=
BIP 0010 (https://en.bitcoin.it/wiki/BIP_0010) transaction format?

I considered parsing/writing BIP 10 format for raw transactions, but
decided that reading/writing BIP 10 format should happen at a higher
level and not in the low-level RPC calls. So 'raw transactions' are=
simply hex-encoded into JSON strings, and encoding/decoding them is
just a couple of lines of already-written-and-debugged code.


BIP 10 could use some improvement. =A0I created it for offlin= e and multi-sig tx but there was no reception to it because no one was usin= g offline or multi-sig tx at the time except for Armory (which only current= ly implements offline tx). =A0So I made something that fit my needs, and it= has served its purpose well for me. But I also think it could be expanded = and improved before there is wider adoption of it. =A0It's a little clu= nky and not very rigorous.

Elements of it that I'd really like to keep:
<= div>
(1) Some aspects of human-readability -- even if regular= users will never look at it, it should be possible for advanced users to m= anually copy&paste the data around and see what's going on in the t= ransaction and what signatures are present. =A0I'm thinking of super-hi= gh-security situations where manual handling of such data may even be the n= orm.
(2) Should be compact -- I took the concept of ASCII-armoring from PGP= /GPG, because, for the reason above, it's much easier and cleaner to vi= ew/select when copied inline. =A0If a random user accidentally runs across = it, it will partially self-identify itself
(3) Includes all previous transactions so the device can verify transa= ction inputs without the blockchain.


Things that could be added:

-- It needs a BIP16 = script entry (this was created for vanilla multi-sig before BIP 16 was crea= ted)
-- Comment lines
-- Version number
-- Use base58/6= 4 encoding
-- Rigorous formatting spec
-- Binary repres= entation
-- A better name than "Tx Distribution Proposal&quo= t;

I'll be releasing the Beta version of Armory soon, = and after that, I'll probably be thinking about a multi-signature suppo= rt interface. =A0That would be a good time for me to tie in a better versio= n of BIP 10 -- one that is compatible with other clients implementing the s= ame thing.
--f46d0442835c6b152e04c26f77ab--