Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1QwgKN-00064v-Hj for bitcoin-development@lists.sourceforge.net; Thu, 25 Aug 2011 20:15:03 +0000 X-ACL-Warn: Received: from rhcavuit01.kulnet.kuleuven.be ([134.58.240.129] helo=cavuit01.kulnet.kuleuven.be) by sog-mx-2.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1QwgKM-0006VY-TB for bitcoin-development@lists.sourceforge.net; Thu, 25 Aug 2011 20:15:03 +0000 X-KULeuven-Envelope-From: sipa@ulyssis.org X-Spam-Status: not spam, SpamAssassin (not cached, score=-48.797, required 5, autolearn=disabled, DKIM_ADSP_CUSTOM_MED 0.00, FAKE_REPLY_C 0.00, FREEMAIL_FROM 0.00, KUL_SMTPS -50.00, NML_ADSP_CUSTOM_MED 1.20) X-KULeuven-Scanned: Found to be clean X-KULeuven-ID: 767731382E1.A67B1 X-KULeuven-Information: Katholieke Universiteit Leuven Received: from smtps01.kuleuven.be (smtpshost01.kulnet.kuleuven.be [134.58.240.74]) by cavuit01.kulnet.kuleuven.be (Postfix) with ESMTP id 767731382E1 for ; Thu, 25 Aug 2011 22:14:54 +0200 (CEST) Received: from smtp.ulyssis.org (mail.ulyssis.student.kuleuven.be [193.190.253.235]) by smtps01.kuleuven.be (Postfix) with ESMTP id 6305431E702 for ; Thu, 25 Aug 2011 22:14:54 +0200 (CEST) Received: from wop.ulyssis.org (wop.intern.ulyssis.org [192.168.0.182]) by smtp.ulyssis.org (Postfix) with ESMTP id 0E684F8004 for ; Thu, 25 Aug 2011 22:18:32 +0200 (CEST) Received: by wop.ulyssis.org (Postfix, from userid 615) id 5628B87C1B1; Thu, 25 Aug 2011 22:14:54 +0200 (CEST) Date: Thu, 25 Aug 2011 22:14:54 +0200 X-Kuleuven: This mail passed the K.U.Leuven mailcluster From: Pieter Wuille To: Bitcoin Dev Message-ID: <20110825201453.GA28296@ulyssis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: 1.2 (+) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (pieter.wuille[at]gmail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED 0.0 FAKE_REPLY_C FAKE_REPLY_C 1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list 0.0 AWL AWL: From: address is in the auto white-list X-Headers-End: 1QwgKM-0006VY-TB Subject: Re: [Bitcoin-development] New standard transaction types: time to schedule a blockchain split? 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, 25 Aug 2011 20:15:03 -0000 On Thu, Aug 25, 2011 at 02:31:49PM -0400, Gregory Maxwell wrote: > Perhaps just an address type that can encode any payment script? User > provides the inputs, sets the outputs plus and additional outputs, and > signs. Client refuses to pay to an address if the resulting > transaction fails IsStandard. On the github pull request I posted a general scheme that can convert arbitrary expressions over signature-checks (given in RPL notation) to bitcoin scripts. Maybe we can define an address type that encodes an expression in RPL form (which should be more compact and more easily parseable)? That basically just means the usual bitcoin scripts, with two extra pseudo- instructions: one that represents an address check, one that represents an pubkey check. For example (same example as on the pull req), the expression a1 OR (a2 AND a3) OR COUNT(a4,a5,a6)>1 (with a1-a6 given addresses) can be given in RPL form as ADDR ADDR ADDR BOOLAND BOOLOR ADDR ADDR ADD ADDR ADD 1 GREATERTHAN BOOLOR Which is 13 bytes + 6*20 bytes, instead of the 54 bytes + 6*20 bytes for the real bitcoin output script. -- Pieter