summaryrefslogtreecommitdiff
path: root/f7/cf35bef7d4a3a7adb65da9ed003c8837d80d9c
blob: d5398e7b1e71e7f8acceb44e862027ea59b8bf66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193]
	helo=mx.sourceforge.net)
	by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <flavien.charlon@pixodegames.com>) id 1XZiQ9-0003UT-J1
	for bitcoin-development@lists.sourceforge.net;
	Thu, 02 Oct 2014 15:35:57 +0000
Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of
	pixodegames.com designates 209.85.217.171 as permitted sender)
	client-ip=209.85.217.171;
	envelope-from=flavien.charlon@pixodegames.com;
	helo=mail-lb0-f171.google.com; 
Received: from mail-lb0-f171.google.com ([209.85.217.171])
	by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128)
	(Exim 4.76) id 1XZiQ7-0004Ln-QL
	for bitcoin-development@lists.sourceforge.net;
	Thu, 02 Oct 2014 15:35:57 +0000
Received: by mail-lb0-f171.google.com with SMTP id z12so2499869lbi.30
	for <bitcoin-development@lists.sourceforge.net>;
	Thu, 02 Oct 2014 08:35:49 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc:content-type;
	bh=NO7Edxx53GDj4qrFK3coCrOytdKc6wHPYGeictPnIGc=;
	b=jAQ6E6mbwvJWKCXRs/1GgGpjwjEq7XYYGZ8CR/0FubrpKMi3RzwPbWfuYTg8WTiqn9
	wKM4ORMV0mlBKVmqGs6JjwDORO26u+ZbTbQ6IUILqwvTxfUtI1xRNhP7WAOPSmBJ67ps
	ymrLWW/hGzrg8vwJiQY08AXVE1OjilBcR9B4VRzCzkdeHC4gsLs8Z7GaeMMsvAdTp5Am
	MY/llOi012Bq0bArqEAhRL1/zDt9RPlkH5OY/Y+DrfQ+YlL02KN0wtOuLNYxkw3gWQPa
	XhVih2pYw/qBi0J/Dvntu2hPnTIgUFEPd7i7qDnU1moKCBEH7S6SX09TpxyJwF//9vrG
	ejRw==
X-Gm-Message-State: ALoCoQltHCU5PAGUZuHy8XY4181Tnp/R+zF4TVy4ryeSL6mcGiXaTx6LZ5osEgcLLYThWjWTAA8g
X-Received: by 10.153.6.36 with SMTP id cr4mr29490290lad.40.1412262342215;
	Thu, 02 Oct 2014 08:05:42 -0700 (PDT)
Received: from mail-la0-f44.google.com (mail-la0-f44.google.com
	[209.85.215.44])
	by mx.google.com with ESMTPSA id pr7sm1677743lbc.18.2014.10.02.08.05.41
	for <bitcoin-development@lists.sourceforge.net>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Thu, 02 Oct 2014 08:05:41 -0700 (PDT)
Received: by mail-la0-f44.google.com with SMTP id gb8so2572882lab.17
	for <bitcoin-development@lists.sourceforge.net>;
	Thu, 02 Oct 2014 08:05:41 -0700 (PDT)
X-Received: by 10.112.16.129 with SMTP id g1mr59704807lbd.19.1412262341671;
	Thu, 02 Oct 2014 08:05:41 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.114.64.146 with HTTP; Thu, 2 Oct 2014 08:05:01 -0700 (PDT)
X-Originating-IP: [89.100.161.202]
In-Reply-To: <B3CB4356-7F37-44D3-916B-7A591A1DBBEF@petertodd.org>
References: <20141001130826.GM28710@savin.petertodd.org>
	<201410011823.56441.luke@dashjr.org>
	<CE356B97-E5AC-4A04-B67C-A542D070F1C5@petertodd.org>
	<201410020055.37347.luke@dashjr.org>
	<B3CB4356-7F37-44D3-916B-7A591A1DBBEF@petertodd.org>
From: Flavien Charlon <flavien.charlon@coinprism.com>
Date: Thu, 2 Oct 2014 16:05:01 +0100
Message-ID: <CABbpET8_FMCcnh0dELnHsYmF+YP05Gz=nZ3SPkLZuqXYV3JUpQ@mail.gmail.com>
To: Peter Todd <pete@petertodd.org>
Content-Type: multipart/alternative; boundary=001a11c3c0523491e6050471f372
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 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: 1XZiQ7-0004Ln-QL
Cc: Bitcoin Dev <bitcoin-development@lists.sourceforge.net>
Subject: Re: [Bitcoin-development] [BIP draft] CHECKLOCKTIMEVERIFY - Prevent
 a txout from being spent until an expiration time
X-BeenThere: bitcoin-development@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Thu, 02 Oct 2014 15:35:57 -0000

--001a11c3c0523491e6050471f372
Content-Type: text/plain; charset=UTF-8

Very good, I like the proposal.

A question I have: can it be used to do the opposite, i.e. build a script
that can only be spent up until block X?

On Thu, Oct 2, 2014 at 2:09 AM, Peter Todd <pete@petertodd.org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
>
>
> On 1 October 2014 17:55:36 GMT-07:00, Luke Dashjr <luke@dashjr.org> wrote:
> >On Thursday, October 02, 2014 12:05:15 AM Peter Todd wrote:
> >> On 1 October 2014 11:23:55 GMT-07:00, Luke Dashjr <luke@dashjr.org>
> >wrote:
> >> >Thoughts on some way to have the stack item be incremented by the
> >> >height at
> >> >which the scriptPubKey was in a block?
> >>
> >> Better to create a GET-TXIN-BLOCK-(TIME/HEIGHT)-EQUALVERIFY operator.
> >> scriptPubKey would be:
> >>     GET-TXIN-BLOCKHEIGHT-EQUALVERIFY
> >> (fails unless top stack item is equal to the txin block height)
> >>     <delta height> ADD
> >> (top stack item is now txin height + delta height)
> >>     CHECKLOCKTIMEVERIFY
> >
> >This sounds do-able, although it doesn't address using timestamps.
>
> For timestamps replace "height" with "time" in the above example; the
> minimum block time rule will prevent gaming it.
>
>
> >> You'd want these sacrifices to unlock years into the future to
> >thoroughly
> >> exceed any reasonable business cycle; that's so far into the future
> >that
> >> miners are almost certain to just mine them and collect the fees.
> >
> >For many use cases, short maturity periods are just as appropriate IMO.
>
> Very easy to incentivise mining centralisation with short maturities. I
> personally think just destroying coins is better, but it doesn't sit well
> with people so this is the next best thing.
> -----BEGIN PGP SIGNATURE-----
> Version: APG v1.1.1
>
> iQFQBAEBCAA6BQJULKWsMxxQZXRlciBUb2RkIChsb3cgc2VjdXJpdHkga2V5KSA8
> cGV0ZUBwZXRlcnRvZGQub3JnPgAKCRAZnIM7qOfwhcg8CACueZNGfWaZR+xyG9/o
> JwDBCnqOtwr6Bnosg3vNcRIDUnmsh+Qkk5dk2JpqYNYw7C3duhlwHshgsGOFkHEV
> f5RHDwkzGLJDLXrBwxxcIDdm3cJL8UVpQzJ7dD7aSnfj7MU/0aru3HaIU2ZfymUb
> 63jhul6FGbXH3K6p3bOoNrfIrCCGOv8jOIzeAgxNPydk8MVPgRhlYLAKBJxu8nMr
> 1oJGeaKVSGSPSrRdgS8tI4uOs0F4Q49APrLPGxGTERlATmWrr+asHGJTIxsB2IEm
> vrNgVRpkaN4Of9k96qzD9ReKfBfqm0WQKLolcXCVqGpdoHcvXh2AeWdjB/EFTyOq
> SOgO
> =WybM
> -----END PGP SIGNATURE-----
>
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Bitcoin-development mailing list
> Bitcoin-development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bitcoin-development
>

--001a11c3c0523491e6050471f372
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Very good, I like the proposal.</div><div><br></div><=
div>A question I have: can it be used to do the opposite, i.e. build a scri=
pt that can only be spent up until block X?</div></div><div class=3D"gmail_=
extra"><br><div class=3D"gmail_quote">On Thu, Oct 2, 2014 at 2:09 AM, Peter=
 Todd <span dir=3D"ltr">&lt;<a href=3D"mailto:pete@petertodd.org" target=3D=
"_blank">pete@petertodd.org</a>&gt;</span> wrote:<br><blockquote class=3D"g=
mail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-l=
eft:1ex"><span>-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
<br>
<br>
</span><span>On 1 October 2014 17:55:36 GMT-07:00, Luke Dashjr &lt;<a href=
=3D"mailto:luke@dashjr.org">luke@dashjr.org</a>&gt; wrote:<br>
&gt;On Thursday, October 02, 2014 12:05:15 AM Peter Todd wrote:<br>
&gt;&gt; On 1 October 2014 11:23:55 GMT-07:00, Luke Dashjr &lt;<a href=3D"m=
ailto:luke@dashjr.org">luke@dashjr.org</a>&gt;<br>
&gt;wrote:<br>
&gt;&gt; &gt;Thoughts on some way to have the stack item be incremented by =
the<br>
&gt;&gt; &gt;height at<br>
&gt;&gt; &gt;which the scriptPubKey was in a block?<br>
&gt;&gt;<br>
&gt;&gt; Better to create a GET-TXIN-BLOCK-(TIME/HEIGHT)-EQUALVERIFY operat=
or.<br>
&gt;&gt; scriptPubKey would be:<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0GET-TXIN-BLOCKHEIGHT-EQUALVERIFY<br>
&gt;&gt; (fails unless top stack item is equal to the txin block height)<br=
>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0&lt;delta height&gt; ADD<br>
&gt;&gt; (top stack item is now txin height + delta height)<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0CHECKLOCKTIMEVERIFY<br>
&gt;<br>
&gt;This sounds do-able, although it doesn&#39;t address using timestamps.<=
br>
<br>
</span>For timestamps replace &quot;height&quot; with &quot;time&quot; in t=
he above example; the minimum block time rule will prevent gaming it.<br>
<span><br>
<br>
&gt;&gt; You&#39;d want these sacrifices to unlock years into the future to=
<br>
&gt;thoroughly<br>
&gt;&gt; exceed any reasonable business cycle; that&#39;s so far into the f=
uture<br>
&gt;that<br>
&gt;&gt; miners are almost certain to just mine them and collect the fees.<=
br>
&gt;<br>
&gt;For many use cases, short maturity periods are just as appropriate IMO.=
<br>
<br>
</span>Very easy to incentivise mining centralisation with short maturities=
. I personally think just destroying coins is better, but it doesn&#39;t si=
t well with people so this is the next best thing.<br>
<span>-----BEGIN PGP SIGNATURE-----<br>
Version: APG v1.1.1<br>
<br>
</span>iQFQBAEBCAA6BQJULKWsMxxQZXRlciBUb2RkIChsb3cgc2VjdXJpdHkga2V5KSA8<br>
cGV0ZUBwZXRlcnRvZGQub3JnPgAKCRAZnIM7qOfwhcg8CACueZNGfWaZR+xyG9/o<br>
JwDBCnqOtwr6Bnosg3vNcRIDUnmsh+Qkk5dk2JpqYNYw7C3duhlwHshgsGOFkHEV<br>
f5RHDwkzGLJDLXrBwxxcIDdm3cJL8UVpQzJ7dD7aSnfj7MU/0aru3HaIU2ZfymUb<br>
63jhul6FGbXH3K6p3bOoNrfIrCCGOv8jOIzeAgxNPydk8MVPgRhlYLAKBJxu8nMr<br>
1oJGeaKVSGSPSrRdgS8tI4uOs0F4Q49APrLPGxGTERlATmWrr+asHGJTIxsB2IEm<br>
vrNgVRpkaN4Of9k96qzD9ReKfBfqm0WQKLolcXCVqGpdoHcvXh2AeWdjB/EFTyOq<br>
SOgO<br>
=3DWybM<br>
-----END PGP SIGNATURE-----<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
---------------------------------------------------------------------------=
---<br>
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer<br>
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports<br=
>
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper<br>
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer<br>
<a href=3D"http://pubads.g.doubleclick.net/gampad/clk?id=3D154622311&amp;iu=
=3D/4140/ostg.clktrk" target=3D"_blank">http://pubads.g.doubleclick.net/gam=
pad/clk?id=3D154622311&amp;iu=3D/4140/ostg.clktrk</a><br>
_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href=3D"mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-develo=
pment@lists.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/bitcoin-development=
" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-de=
velopment</a><br>
</div></div></blockquote></div><br></div>

--001a11c3c0523491e6050471f372--