summaryrefslogtreecommitdiff
path: root/7f/ad0a1ce14c004edf7c802e828172f378d7903b
blob: 212de109dbbb36762d196516066ce7d667315d71 (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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
Return-Path: <matthew@roberts.pm>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id C8C3E92
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Mon,  8 Aug 2016 00:48:56 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-it0-f44.google.com (mail-it0-f44.google.com
	[209.85.214.44])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 608461B9
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Mon,  8 Aug 2016 00:48:53 +0000 (UTC)
Received: by mail-it0-f44.google.com with SMTP id x130so62632599ite.1
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sun, 07 Aug 2016 17:48:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=roberts-pm.20150623.gappssmtp.com; s=20150623;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=BKsIeRYens47BRP7K6sGYHn9lJ6OShP7O4MKMoh+OMo=;
	b=LMYM1vehJzdR70Dc40kOwzb3UVDVumjS6nD6dkidbsCUUNs9LsvPMm1+VHFyC6C/Nt
	5xXeMkecKe7XBm37mnpIoIQgiqZNt/P+gWGv3YjmxndiVfV2+taorkQTo0xQvPFqwMq6
	X/e7Ma3PnlKtQ77+0f3tjQnRBDZbfY3pHJEgrflSjDoCpPVtDTAr2NzLN0Yme7rK3UFn
	zxBgK38sU6hbmYnZkPyJxiI859hEu8rFJulP8az3HIFRJCCq9PgK33JnQ/qlTD6rEhHl
	c7hhVfUOwbqS7vt8FUKawGdu6T8hORyraiOEaP3kJGIwW5YvAo89yAS6s0xS2ZPV9Wfo
	5zXw==
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;
	bh=BKsIeRYens47BRP7K6sGYHn9lJ6OShP7O4MKMoh+OMo=;
	b=ZwzOz+YKl8wal3G3CbFHqKk44+Oy15YtiO0Jw1qthzjsynfDAgngi96zA6ubG7EuU1
	EOhuO+RA5hoNbV4ujS0TUv+ximsJJhjEuMioAaZN37TztuWNwyPTK/0QvTo2BZJlTtdO
	qXBiJNtLbwIhL8T3X9W9IFXtcJ5K9ILCdFGPkoMjkE/409e2AgHEcNpTawhsgJzkaalo
	b+kxOVHjCB7Ex4a4rNTjsC34ALnkW4+b5diKF26wmNzZkBNwgTBglX2S48uOsv22nIZB
	+JoMjcJ3zxa+wzeZR80ry0YRzmmpmU1O3u1+FP7vEXSHkkTZWV89Tny537F4SuhKUoNr
	JhVQ==
X-Gm-Message-State: AEkoouvshP4UPg+hTcvcSYQkl7ANP8amaS13hMK+3TNVm55+RAjNubAbLndeSZ+E14Fg8LfJO7BLEzEmEEeHTQ==
X-Received: by 10.36.212.6 with SMTP id x6mr14282978itg.71.1470617333207; Sun,
	07 Aug 2016 17:48:53 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.57.69 with HTTP; Sun, 7 Aug 2016 17:48:52 -0700 (PDT)
X-Originating-IP: [115.70.56.56]
In-Reply-To: <CAJowKgK4EckX86M6Gt-XYCuwOdSwcVtHZW8oYZn-AC55gYqUZQ@mail.gmail.com>
References: <CAAEDBiGMGWLeC81vkojGwEqQTT1HQaE=a3z114u6=FXXM2DRtQ@mail.gmail.com>
	<0b314ab7-b5ec-3468-15d7-37e07a6b592c@sky-ip.org>
	<CAE-z3OUJBVn8Ogc8gCZbJ0V_JV1UQjk0FSBjguzwgZ5kTjBTtA@mail.gmail.com>
	<CAAEDBiGWuV+6cXzbs0eAUNFZJ4KWFGUF7oeCTEKkGGjmrTB-cw@mail.gmail.com>
	<CAJowKgK4EckX86M6Gt-XYCuwOdSwcVtHZW8oYZn-AC55gYqUZQ@mail.gmail.com>
From: Matthew Roberts <matthew@roberts.pm>
Date: Mon, 8 Aug 2016 10:48:52 +1000
Message-ID: <CAAEDBiF1F1FkBXWQn_JgE0cr-aeVRAi29ETow0Sg95DO2MBGWQ@mail.gmail.com>
To: Erik Aronesty <erik@q32.com>
Content-Type: multipart/alternative; boundary=94eb2c0b046abf5f96053984c7c3
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
X-Mailman-Approved-At: Mon, 08 Aug 2016 13:26:35 +0000
Cc: Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Subject: Re: [bitcoin-dev] BIP clearing house addresses
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Aug 2016 00:48:56 -0000

--94eb2c0b046abf5f96053984c7c3
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Not everyone who uses centralized exchanges are there to obtain the
currency though. A large portion are speculators who need to be able to
enter and exit complex positions in milliseconds and don't care about
decentralization, security, and often even the asset that they're buying.

Try telling everyone who currently uses Btc-e to go do their margin trading
over lightning channels, for example. They're not going to want to do that
because these exchanges are already meeting their needs perfectly well, and
like I argued before -- it would be very hard to do that as efficiently
with any other design (there are major drawbacks for traders with a
decentralized exchange.)

Like it or not, these exchanges play an integral role in the current
Bitcoin eco-system since they allow us to most efficiently discover price
and help improve liquidity. A decentralized exchange isn't going to stop
any more centralized exchanges from being hacked even if they are more
secure simply because traders don't want to use them.

(Sorry for the duplicate message Erik, I haven't used many mailing lists
before. I think I have the hang of it now though :) )

On Mon, Aug 8, 2016 at 8:59 AM, Erik Aronesty <erik@q32.com> wrote:

> I still feel like you're better off getting rid of "hot wallets" and use
> lightning-esqe networks to route orders.  I don't think either speed or
> flexibility is an issue there.
>
> IMO, the point of Bitcoin is to avoid the centralization that seems to be
> happening on the network now.   By making "hot wallets" more "secure", we
> encourage things to keep heading downhill with massive centralized
> crappy-security exchanges.
>
> Because, ultimately, there's no security that will prevent an inside
> job.   And all of these thefts have, in my opinion, been at least partly
> inside jobs.
>
> And centralization is the actually demon that needs slaying here.
>
> A client-side library with P2P order routing, tether.to + bitcoin ....
> and you've got a decentralized exchange... with orders matched to users
> directly, and channel-trades executed instantly.   And "market makers"
> running nodes to facilitate routing, etc.
>
> No center... nothing to shut down or sue... and no one holds your funds.
> That's a real Bitcoin exchange.
>
>
>
> On Sun, Aug 7, 2016 at 1:35 AM, Matthew Roberts via bitcoin-dev <
> bitcoin-dev@lists.linuxfoundation.org> wrote:
>
>> I'm wondering if we're fully on the same page here. What I was thinking
>> was that this protection mechanism would be applied to the coins in the =
hot
>> wallet (I wasn't talking about moving coins from the cold wallet to the =
hot
>> wallet -- though such a mechanism is also needed.)
>>
>> With the hot wallet you would have an output script that only allowed
>> coins to be sent to a new transaction whose output script was then only
>> redeemable after N confirmations (the output is relative time-locked) bu=
t
>> which can also be recovered to a fixed fail-safe address before the
>> time-lock is reached (exactly like TierNolan already listed only the
>> time-locked destination shouldn't be completely fixed.) So the private k=
ey
>> for this hot wallet can still sign valid transactions to withdraw coins =
to
>> any known destination and these transactions still reach the blockchain.
>>
>> The key difference from a regular transaction is that the destination
>> only has access to the coins -after- the relative time-lock is reached (=
N
>> blocks after first confirm) so everyone knows where withdrawals are supp=
ose
>> to be going and how many coins are being withdrawn at any given time.
>> Deposits to the hot wallet would therefore need to be encumbered by the
>> same protection so that from then on this time-lock to redeem coins can =
be
>> applied to every new transaction trying to move coins (withdrawn by a us=
er
>> of the exchange or sent to the cold wallet.)
>>
>> Notice we don't care about the destination in the TX script for the hot
>> wallet because to process user's withdrawals we can't know ahead of time
>> where they need to be sent (so it isn't possible to use a fixed address
>> here =E2=80=93 though you might want to remove the clearing phase and se=
t a fixed
>> address for coins sent from the hot wallet to the cold wallet.) The bene=
fit
>> here comes from being able to see what withdrawals are being cleared,
>> matching those up to our expectations, and being able to "cancel"
>> withdrawals if they look suspicious, and you get the benefits for transf=
ers
>> made from the hot wallet to the cold wallet and visa-versa.
>>
>>
>> This approach is good for a number of crucial services:
>>
>> 1. Wallets could be built that grouped coins into different "accounts"
>> with different time-frames required for clearing / unlocking coins. Your
>> savings or investment account would say -- take up to a week to clear --
>> whereas your everyday account used for smaller purchases (with less mone=
y)
>> would only take a few hours. This could all be linked up to services tha=
t
>> notified you of your money being moved + made any phone calls needed to
>> verify any larger transfers.
>>
>> The service could also be entrusted with the =E2=80=9Ccancellation=E2=80=
=9D key which can
>> only be used to move money to your offline fail-safe address. This would=
 be
>> quite an interesting way to mitigate fraud without the user having to be
>> trusted to do anything (except I suppose =E2=80=93 not storing their rec=
overy keys
>> online =E2=80=A6 but this could be partially solved with BIP 32-style =
=E2=80=9Cmaster=E2=80=9D
>> public keys + hardware wallets + multi-sig, N factor auth, etc ...)
>>
>> 2. Gambling websites that process a lot of Bitcoins also have a hot
>> wallet which could be better protected by this.
>>
>> 3. Various other e-commerce websites also accept Bitcoins directly. (Dee=
p
>> web markets come to mind -- hey, people breaking the law need good secur=
ity
>> too.)
>>
>> 4. Provable dead man's switches on the protocol level is another idea --
>> no need to keep special time-locked transactions around and rely on them=
 to
>> be broadcast =3D more reliable escrow services.
>>
>> 5. And obviously exchange hot (and cold) wallets - enemy number 1.
>>
>> I hope that makes sense. I think I initially managed to confuse a lot of
>> people by talking about revoking transactions / =E2=80=9Csettlement laye=
rs=E2=80=9D, etc.
>> But IMO: all of this needs to take place on the blockchain with a new se=
t
>> of OP_CODES and other than the fixed address issue with OP_SPENDTO, I th=
ink
>> the general idea would still work.
>>
>>
>> tl; dr, A pseudo-reversal mechanism for transactions would mean that
>> stolen private keys were no longer such an issue. This is desperately
>> needed for exchanges, wallets, and other services that are forced to man=
age
>> private keys, and whose users (I argue) already expect for this to be
>> possible (or at least will when they're hacked.)
>>
>>
>>
>>
>> On Sat, Aug 6, 2016 at 9:13 PM, Tier Nolan via bitcoin-dev <
>> bitcoin-dev@lists.linuxfoundation.org> wrote:
>>
>>> On Sat, Aug 6, 2016 at 11:39 AM, s7r via bitcoin-dev <
>>> bitcoin-dev@lists.linuxfoundation.org> wrote:
>>>
>>>> * reversal of transactions is impossible
>>>>
>>>
>>> I think it would be more accurate to say that the requirement is that
>>> reversal doesn't happen unexpectedly.
>>>
>>> If it is clear in the script that reversal is possible, then obviously
>>> the recipient can take that into consideration.
>>>
>>>
>>>> * keep private keys private and safe. Lose them, it's like losing cash=
,
>>>> you can just forget about it.
>>>>
>>>
>>> Key management is a thing.  Managing risk by keeping some keys offline
>>> is an important part of that.
>>>
>>>
>>>> * while we try hard to make 0-conf as safe as possible (if there's no
>>>> RBF flag on the transaction), we make it almost impossible or very ver=
y
>>>> expensive to reverse a confirmed transaction.
>>>>
>>>
>>> BitGo has an "instant" system where they promise to only sign one
>>> transaction for a given output.  If you trust BitGo, then this is safe =
from
>>> double spending, since a double spender can't sign two transactions.
>>>
>>> If BitGo had actually implemented a daily withdrawal limit, then their
>>> system ends up similar to cold storage.  Only 10% of the funds at Bitfi=
nex
>>> could have been withdrawn before manual intervention was required (with
>>> offline keys).
>>>
>>> Who will accept
>>>> such an input and treat it as a payment if it can be reversed during t=
he
>>>> settlement layer?
>>>
>>>
>>> Obviously, if a payment is reversible, then you treat it as a reversibl=
e
>>> payment.  The protection here relates to moving coins from the equivale=
nt
>>> of cold storage to hot storage.
>>>
>>> It is OK if it takes longer, since security is more important than
>>> convenience for coins in cold storage.
>>>
>>>
>>>> The linked page describes that merchants will never accept payments fr=
om
>>>> 'vaults', and it will take 24 hours for coins to be irreversible moved
>>>> outside the 'vault'.
>>>
>>>
>>> This relates to the reserves held by the exchange.  A portion of the
>>> funds are in hot storage with live keys.  These funds can be stolen by
>>> anyone who gets access to the servers.  The remaining funds are held in
>>> cold storage and they cannot be accessed unless you have the offline ke=
ys.
>>> These funds are supposed to be hard to reach and require manual
>>> intervention.
>>>
>>> I think this is a wrong approach. hacks and big losses are sad, but all
>>>> the time users / exchanges are to blame for wrong implementations or
>>>> terrible security practices.
>>>>
>>>
>>> Setting up offline keys to act as firebreaks is part of good security
>>> practices.
>>>
>>> _______________________________________________
>>> bitcoin-dev mailing list
>>> bitcoin-dev@lists.linuxfoundation.org
>>> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>>>
>>>
>>
>> _______________________________________________
>> bitcoin-dev mailing list
>> bitcoin-dev@lists.linuxfoundation.org
>> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>>
>>
>

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

<div dir=3D"ltr"><p style=3D"margin-bottom:0in">Not everyone who uses centr=
alized
exchanges are there to obtain the currency though. A large portion
are speculators who need to be able to enter and exit complex
positions in milliseconds and don&#39;t care about decentralization, securi=
ty, and often even the asset that they&#39;re buying.<br></p>

<p style=3D"margin-bottom:0in">Try telling everyone who currently uses
Btc-e to go do their margin trading over lightning channels, for
example. They&#39;re not going to want to do that because these exchanges
are already meeting their needs perfectly well, and like I argued before --=
 it would be very hard to do
that as efficiently with any other design (there are major drawbacks
for traders with a decentralized exchange.)</p>

<p style=3D"margin-bottom:0in">Like it or not, these exchanges play an
integral role in the current Bitcoin eco-system since they allow us
to most efficiently discover price and help improve liquidity. A
decentralized exchange isn&#39;t going to stop any more centralized
exchanges from being hacked even if they are more secure simply
because traders don&#39;t want to use them.</p><p style=3D"margin-bottom:0i=
n">(Sorry for the duplicate message Erik, I haven&#39;t used many mailing l=
ists before. I think I have the hang of it now though :) )<br></p></div><di=
v class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Mon, Aug 8, 2016 =
at 8:59 AM, Erik Aronesty <span dir=3D"ltr">&lt;<a href=3D"mailto:erik@q32.=
com" target=3D"_blank">erik@q32.com</a>&gt;</span> wrote:<br><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p=
adding-left:1ex"><div dir=3D"ltr"><div>I still feel like you&#39;re better =
off getting rid of &quot;hot wallets&quot; and use lightning-esqe networks =
to route orders.=C2=A0 I don&#39;t think either speed or flexibility is an =
issue there.=C2=A0=C2=A0 <br><br>IMO, the point of Bitcoin is to avoid the =
centralization that seems to be happening on the network now.=C2=A0=C2=A0 B=
y making &quot;hot wallets&quot; more &quot;secure&quot;, we encourage thin=
gs to keep heading downhill with massive centralized crappy-security exchan=
ges.<br><br></div><div>Because, ultimately, there&#39;s no security that wi=
ll prevent an inside job.=C2=A0=C2=A0 And all of these thefts have, in my o=
pinion, been at least partly inside jobs.<br><br></div><div>And centralizat=
ion is the actually demon that needs slaying here.<br><br></div><div>A clie=
nt-side library with P2P order routing, <a href=3D"http://tether.to" target=
=3D"_blank">tether.to</a> + bitcoin ....=C2=A0 and you&#39;ve got a decentr=
alized exchange... with orders matched to users directly, and channel-trade=
s executed instantly.=C2=A0=C2=A0 And &quot;market makers&quot; running nod=
es to facilitate routing, etc.<br><br></div><div>No center... nothing to sh=
ut down or sue... and no one holds your funds.=C2=A0=C2=A0 That&#39;s a rea=
l Bitcoin exchange. <br></div><div><br><br></div></div><div class=3D"HOEnZb=
"><div class=3D"h5"><div class=3D"gmail_extra"><br><div class=3D"gmail_quot=
e">On Sun, Aug 7, 2016 at 1:35 AM, Matthew Roberts via bitcoin-dev <span di=
r=3D"ltr">&lt;<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" targ=
et=3D"_blank">bitcoin-dev@lists.<wbr>linuxfoundation.org</a>&gt;</span> wro=
te:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">
<p style=3D"margin-bottom:0in">I&#39;m wondering if we&#39;re fully on the
same page here. What I was thinking was that this protection
mechanism would be applied to the coins in the hot wallet (I wasn&#39;t
talking about moving coins from the cold wallet to the hot wallet --
though such a mechanism is also needed.)</p>

<p style=3D"margin-bottom:0in">With the hot wallet you would have an
output script that only allowed coins to be sent to a new transaction
whose output script was then only redeemable after N confirmations (the
output is relative time-locked) but which can also be recovered to a
fixed fail-safe address before the time-lock is reached (exactly like
TierNolan already listed only the time-locked destination shouldn&#39;t
be completely fixed.) So the private key for this hot wallet can still sign
valid transactions to withdraw coins to any known destination and
these transactions still reach the blockchain.</p>

<p style=3D"margin-bottom:0in">The key difference from a regular
transaction is that the destination only has access to the coins
-after- the relative time-lock is reached (N blocks after first
confirm) so everyone knows where withdrawals are suppose to be going
and how many coins are being withdrawn at any given time. Deposits to
the hot wallet would therefore need to be encumbered by the same
protection so that from then on this time-lock to redeem coins can be
applied to every new transaction trying to move coins (withdrawn by a
user of the exchange or sent to the cold wallet.)</p>

<p style=3D"margin-bottom:0in">Notice we don&#39;t care about the
destination in the TX script for the hot wallet because to process
user&#39;s withdrawals we can&#39;t know ahead of time where they need to b=
e
sent (so it isn&#39;t possible to use a fixed address here =E2=80=93 though=
 you
might want to remove the clearing phase and set a fixed address for
coins sent from the hot wallet to the cold wallet.) The benefit here
comes from being able to see what withdrawals are being cleared,
matching those up to our expectations, and being able to &quot;cancel&quot;
withdrawals if they look suspicious, and you get the benefits for transfers=
 made from the hot wallet to the cold wallet and visa-versa.<br></p>
<p style=3D"margin-bottom:0in"><br>
</p>
<p style=3D"margin-bottom:0in">This approach is good for a number of
crucial services:</p>

<p style=3D"margin-bottom:0in">1. Wallets could be built that grouped
coins into different &quot;accounts&quot; with different time-frames
required for clearing / unlocking coins. Your savings or investment
account would say -- take up to a week to clear -- whereas your
everyday account used for smaller purchases (with less money) would
only take a few hours. This could all be linked up to services that
notified you of your money being moved + made any phone calls needed
to verify any larger transfers.</p>

<p style=3D"margin-bottom:0in">The service could also be entrusted
with the =E2=80=9Ccancellation=E2=80=9D key which can only be used to move =
money
to your offline fail-safe address. This would be quite an interesting
way to mitigate fraud without the user having to be trusted to do
anything (except I suppose =E2=80=93 not storing their recovery keys online
=E2=80=A6 but this could be partially solved with BIP 32-style =E2=80=9Cmas=
ter=E2=80=9D
public keys + hardware wallets + multi-sig, N factor auth, etc ...)</p>

<p style=3D"margin-bottom:0in">2. Gambling websites that process a lot
of Bitcoins also have a hot wallet which could be better protected by
this.</p>

<p style=3D"margin-bottom:0in">3. Various other e-commerce websites
also accept Bitcoins directly. (Deep web markets come to mind -- hey,
people breaking the law need good security too.)</p>

<p style=3D"margin-bottom:0in">4. Provable dead man&#39;s switches on the
protocol level is another idea -- no need to keep special time-locked
transactions around and rely on them to be broadcast =3D more reliable
escrow services.</p>
<br>5. And obviously exchange hot (and
	cold) wallets - enemy number 1.
<br><br>
<p style=3D"margin-bottom:0in">I hope that makes sense. I think I
initially managed to confuse a lot of people by talking about
revoking transactions / =E2=80=9Csettlement layers=E2=80=9D, etc. But IMO: =
all of
this needs to take place on the blockchain with a new set of OP_CODES
and other than the fixed address issue with OP_SPENDTO, I think the
general idea would still work.</p><p style=3D"margin-bottom:0in"><br></p>tl=
; dr, A pseudo-reversal mechanism for transactions would mean that stolen p=
rivate keys were no longer such an issue. This is desperately needed for ex=
changes, wallets, and other services that are forced to manage private keys=
, and whose users (I argue) already expect for this to be possible (or at l=
east will when they&#39;re hacked.)<br><p style=3D"margin-bottom:0in"><br>
</p>
<p style=3D"margin-bottom:0in"><br>
</p>
</div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote"><div><div>O=
n Sat, Aug 6, 2016 at 9:13 PM, Tier Nolan via bitcoin-dev <span dir=3D"ltr"=
>&lt;<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_bl=
ank">bitcoin-dev@lists.linuxfounda<wbr>tion.org</a>&gt;</span> wrote:<br></=
div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bord=
er-left:1px #ccc solid;padding-left:1ex"><div><div><div dir=3D"ltr"><div cl=
ass=3D"gmail_extra"><div class=3D"gmail_quote"><span>On Sat, Aug 6, 2016 at=
 11:39 AM, s7r via bitcoin-dev <span dir=3D"ltr">&lt;<a href=3D"mailto:bitc=
oin-dev@lists.linuxfoundation.org" target=3D"_blank">bitcoin-dev@lists.linu=
xfounda<wbr>tion.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
">
* reversal of transactions is impossible<br></blockquote><div><br></div></s=
pan><div>I think it would be more accurate to say that the requirement is t=
hat reversal doesn&#39;t happen unexpectedly.=C2=A0 <br><br>If it is clear =
in the script that reversal is possible, then obviously the recipient can t=
ake that into consideration.<br></div><span><div>=C2=A0</div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p=
adding-left:1ex">
* keep private keys private and safe. Lose them, it&#39;s like losing cash,=
<br>
you can just forget about it.<br></blockquote><div><br></div></span><div>Ke=
y management is a thing.=C2=A0 Managing risk by keeping some keys offline i=
s an important part of that.<br></div><span><div>=C2=A0</div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p=
adding-left:1ex">
* while we try hard to make 0-conf as safe as possible (if there&#39;s no<b=
r>
RBF flag on the transaction), we make it almost impossible or very very<br>
expensive to reverse a confirmed transaction.<br></blockquote><div><br></di=
v></span>BitGo has an &quot;instant&quot; system where they promise to only=
 sign one transaction for a given output.=C2=A0 If you trust BitGo, then th=
is is safe from double spending, since a double spender can&#39;t sign two =
transactions.<br><br></div><div class=3D"gmail_quote">If BitGo had actually=
 implemented a daily withdrawal limit, then their system ends up similar to=
 cold storage.=C2=A0 Only 10% of the funds at Bitfinex could have been with=
drawn before manual intervention was required (with offline keys).<br><br><=
/div><div class=3D"gmail_quote"><span><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Who wi=
ll accept<br>
such an input and treat it as a payment if it can be reversed during the<br=
>
settlement layer? </blockquote><div><br></div></span><div>Obviously, if a p=
ayment is reversible, then you treat it as a reversible payment.=C2=A0 The =
protection here relates to moving coins from the equivalent of cold storage=
 to hot storage.=C2=A0 <br><br>It is OK if it takes longer, since security =
is more important than convenience for coins in cold storage.<br></div><spa=
n><div>=C2=A0<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The linked page describes that merchants will never accept payments from<br=
>
&#39;vaults&#39;, and it will take 24 hours for coins to be irreversible mo=
ved<br>
outside the &#39;vault&#39;.</blockquote><div><br></div></span><div>This re=
lates to the reserves held by the exchange.=C2=A0 A portion of the funds ar=
e in hot storage with live keys.=C2=A0 These funds can be stolen by anyone =
who gets access to the servers.=C2=A0 The remaining funds are held in cold =
storage and they cannot be accessed unless you have the offline keys.=C2=A0=
 These funds are supposed to be hard to reach and require manual interventi=
on.<br><br></div><span><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think this is a wrong approach. hacks and big losses are sad, but all<br>
the time users / exchanges are to blame for wrong implementations or<br>
terrible security practices.<br></blockquote><div><br></div></span><div>Set=
ting up offline keys to act as firebreaks is part of good security practice=
s.<br></div></div></div></div>
<br></div></div><span>______________________________<wbr>_________________<=
br>
bitcoin-dev mailing list<br>
<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_blank">=
bitcoin-dev@lists.linuxfoundat<wbr>ion.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" =
rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.<wbr>org=
/mailman/listinfo/bitcoin-d<wbr>ev</a><br>
<br></span></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
bitcoin-dev mailing list<br>
<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_blank">=
bitcoin-dev@lists.linuxfoundat<wbr>ion.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" =
rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.<wbr>org=
/mailman/listinfo/bitcoin-d<wbr>ev</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>

--94eb2c0b046abf5f96053984c7c3--