From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UzqmT-0000BI-8N for bitcoin-development@lists.sourceforge.net; Thu, 18 Jul 2013 16:10:13 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of petertodd.org designates 62.13.149.115 as permitted sender) client-ip=62.13.149.115; envelope-from=pete@petertodd.org; helo=outmail149115.authsmtp.co.uk; Received: from outmail149115.authsmtp.co.uk ([62.13.149.115]) by sog-mx-2.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1UzqmP-0001rd-Hb for bitcoin-development@lists.sourceforge.net; Thu, 18 Jul 2013 16:10:13 +0000 Received: from mail-c232.authsmtp.com (mail-c232.authsmtp.com [62.13.128.232]) by punt12.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id r6IGA10M072438; Thu, 18 Jul 2013 17:10:01 +0100 (BST) Received: from petertodd.org (petertodd.org [174.129.28.249]) (authenticated bits=128) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id r6IG9sO5016504 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 18 Jul 2013 17:09:57 +0100 (BST) Date: Thu, 18 Jul 2013 12:09:54 -0400 From: Peter Todd To: Jeremy Spilman Message-ID: <20130718160954.GA29323@petertodd.org> References: <20130718111353.GA11385@savin> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline In-Reply-To: <20130718111353.GA11385@savin> User-Agent: Mutt/1.5.21 (2010-09-15) X-Server-Quench: 7d8b512a-efc4-11e2-b10b-0025903375e2 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCd2Yg0TA1ZNQRgX IjsJECJaVQIpKltL GxAVKBZePFsRUQkR aAdMdwoUEkAYAgsB AmUbWlNeUFR7XGQ7 ag1VcwRfa1RMVxto VEFWR1pVCwQmQxp4 cRddLRxydgNDeHo+ Y05lWD5cCEwocEd/ E1MBQz4CeGZhPWIC AkFYJR5UcAFPdx9G aVd6AXFDAzANdhES HhM4ODE3eDlSNilR RRkIIFQOdA4iGCI9 DzwFJn0hGldNWzV7 NRE+LlcXEUMcNFla X-Authentic-SMTP: 61633532353630.1019:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 174.129.28.249/587 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Spam-Score: -1.5 (-) 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 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1UzqmP-0001rd-Hb Cc: bitcoin-development@lists.sourceforge.net Subject: Re: [Bitcoin-development] Anti DoS for tx replacement 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, 18 Jul 2013 16:10:13 -0000 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 18, 2013 at 07:13:53AM -0400, Peter Todd wrote: > Note that with OP_DEPTH we can remove the small chance of the payee > vanishing and putting the funds in limbo: >=20 > OP_DEPTH OP_LESSTHAN > IF 2 PK1 PK2 CHECKMULTISIG > ELSE PK1 CHECKSIG > ENDIF >=20 > Though that shows how to implement OP_DEPTH as a true soft-fork we're > probably best off doing it as part of a script v2 using the soft-fork > mechanism I outlined before when talking about fidelity-bonded ledgers. > (best to do MAST (merklized abstract syntax tree) support at the same > time) jl2012 pointed out we already have an OP_DEPTH instruction that returns the number of items on the stack. In the future we should use the terms OP_BLOCKHEIGHT, OP_TXOUTHEIGHT, OP_TXOUTDEPTH to talk about hypothetical instructions that put the block height, confirmed txout height, and confirmed txout depth on the stack. Thus the above example would now be: BLOCKDEPTH LESSTHAN IF 2 CHECKMULTISIG ELSE CHECKSIG ENDIF --=20 'peter'[:-1]@petertodd.org 0000000000000013030f49fe3eed5e7f9388c4ecc237b7a847ca93255836bc3b --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAlHoE1IACgkQpEFN739thozDJwCePhy1lkEJGd7cbx5rbUtv2WhR AdgAn2r7Ari6rJRwBNcxpmeJho78hMDL =vlxW -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--