summaryrefslogtreecommitdiff
path: root/bd/dd56cd05d3073de9f9b62902214e5336976615
blob: cf67b33c2f76ab4f0bebf69e3c1270da9f234f95 (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
Return-Path: <patrick.strateman@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id 685128E6
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sun,  9 Aug 2015 22:36:30 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com
	[209.85.192.179])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 8FFDA14B
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sun,  9 Aug 2015 22:36:29 +0000 (UTC)
Received: by pdrh1 with SMTP id h1so46143868pdr.0
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sun, 09 Aug 2015 15:36:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:disposition-notification-to:date:from:user-agent
	:mime-version:to:subject:references:in-reply-to:content-type;
	bh=guTdthlDqJl3fzJ/+wSJ8PddavPtDuJILiaZUKvylvY=;
	b=OGJhxJB/eWylZ8JF75FDM7zfMMOMAY7t6h6Xu0/bE2TYFuROlHcbsgZKH6TdYV0b3+
	/idB3L5h3DPDB4/Gh76UdiO8i3gGSl90TBwt53F2lK1Uxlf9DV/MEUIwhVDQTOrWdKyr
	g7hRWE6qEBeJZiZIz4fSZlS+FLHhzhB14NwBz7pY36sBXZDYw/soNilOgViPv2RQyrz8
	Z4uhKRlxlVThmFVzc4fptgjixeKSFfyRq6NLTGzHwlmH3yPR6Vw0NgElZ3LJty47JuEH
	knepDBnrkU6Bjca1ys3R3CEVdDhKH3B/ELlkTgiYJyFr7bjrifUSAG6QggiLPmdi3uF4
	Or5A==
X-Received: by 10.70.134.134 with SMTP id pk6mr27937332pdb.143.1439159789291; 
	Sun, 09 Aug 2015 15:36:29 -0700 (PDT)
Received: from [10.45.134.100] (c-67-188-9-126.hsd1.ca.comcast.net.
	[67.188.9.126]) by smtp.googlemail.com with ESMTPSA id
	v9sm17535990pdr.96.2015.08.09.15.36.28
	for <bitcoin-dev@lists.linuxfoundation.org>
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Sun, 09 Aug 2015 15:36:28 -0700 (PDT)
Message-ID: <55C7D5EC.3000204@gmail.com>
Date: Sun, 09 Aug 2015 15:36:28 -0700
From: Patrick Strateman <patrick.strateman@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Icedove/31.8.0
MIME-Version: 1.0
To: Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>
References: <CAPg+sBj-wA1DMrwkQRWnzQoB5NR-q=2-5=WDAAUYfSpXRZSTqw@mail.gmail.com>
	<CAPg+sBjwVxYTOn3+bwahHGSGpBh5BCh5b4OOFkw_2x97YZSFPQ@mail.gmail.com>
	<CA+w+GKS_wDDgf=HjPgD5QZ_wdTRg7i_oYUgBRmh9HpufETAP=w@mail.gmail.com>
	<CABm2gDqvpWdHdjo1OBzbw-6ivu5DEGcfvK8duc3-KAjsSeWapA@mail.gmail.com>
	<CA+w+GKRPPcgCO0pBP2PjKGU49tWuBoF1vRJzY+4fWn71HOVDPw@mail.gmail.com>
	<CABm2gDqV1NdHJZBmUWX3AxVYy6ErU7AB-wsWgGzbiTL1twdq6g@mail.gmail.com>
	<CA+w+GKTLBWj6b4ppwrmnXb_gybYFcrX7haLBSdCnMaijy2An4w@mail.gmail.com>
	<CABm2gDpWPhYNh=g-ZXCsfe-aPq=N6NKSWKP9kr-KtPVrWAxB7Q@mail.gmail.com>
	<CAAO2FKHsczkwwqO87cJFtxBp9JE=vf=GcxLx37GpRUkPq8VGHQ@mail.gmail.com>
	<55C79FF0.8040100@thinlink.com>
	<CAOG=w-skYq84=PtN45FB-dGoY1783Jz7K1T16e2JVGjLazWuyA@mail.gmail.com>
	<CALJP9GDMgqn2VeR4y4RVxqJ_iW57hExwXBHNSkxo+-AK+7Zb6g@mail.gmail.com>
	<CAAO2FKHu_BVcR-zH-0oRb0v6L_tyuncvUd2fOboKJ9HaKHrVrQ@mail.gmail.com>
	<55C7CCE5.10208@gmail.com>
	<CAAO2FKHk6L5KZSABRfj2WSNw4VB12Bu9kEeNcvZ7gC0nCkqHEQ@mail.gmail.com>
In-Reply-To: <CAAO2FKHk6L5KZSABRfj2WSNw4VB12Bu9kEeNcvZ7gC0nCkqHEQ@mail.gmail.com>
Content-Type: multipart/alternative;
	boundary="------------040803070508020405080607"
X-Spam-Status: No, score=-0.3 required=5.0 tests=BAD_CREDIT,BAYES_00,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,
	RCVD_IN_DNSWL_LOW autolearn=no version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
Subject: Re: [bitcoin-dev] What Lightning Is
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Bitcoin Development 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: Sun, 09 Aug 2015 22:36:30 -0000

This is a multi-part message in MIME format.
--------------040803070508020405080607
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On the contrary those costs are clearly very low.

Both the time value of money and operating expenses will be trivial with
even a small volume of transactions.

The true cost of operating a hub is clearly in the enhanced risk of loss.=


It's clear that risk of loss will be moderated by market forces.

The hubs which are better at securing their systems will reduce their
risk of loss and obtain a competitive advantage.

It's also important to note that the risk of loss is the same whether
the hub is doing 1 transaction/second or 1 million transactions/second.

At 1 transaction/second the cost (but not necessarily the fees) is going
to be quite high.

At 1 million transactions/second the cost is going to be very very low.

On 08/09/2015 03:03 PM, Hector Chu wrote:
> Ok good. We have established it to be a non-trivial cost.
> Now, what is the growth complexity of the total cost of the network in
> terms of number of connections each hub has to other hubs? And then,
> consider a payment channel with many hops in it. The end-to-end users
> would have to swallow all the costs of the hubs in the channel.
>
> On 9 August 2015 at 22:57, Patrick Strateman via bitcoin-dev
> <bitcoin-dev@lists.linuxfoundation.org
> <mailto:bitcoin-dev@lists.linuxfoundation.org>> wrote:
>
>     The costs of operating a hub are as follows:
>
>     Time value of the funds the Hub has locked up in payment channels.
>     Enhanced risk of loss of control of private keys (the keys
>     necessarily need to be on an internet connected system).
>     Operating costs (I expect this will be minimal).
>
>     The hub can charge a fee for it's services to recoup these costs.
>
>
>     On 08/09/2015 02:45 PM, Hector Chu via bitcoin-dev wrote:
>>     Tom, my understanding is that the money that is debited from a
>>     payment hub is simultaneously credited from either another
>>     payment hub or the person making the payment, so that the net
>>     funds flow at a payment hub always sums to zero. So no, there is
>>     no credit advanced by the payment hub to anyone.
>>
>>     Given Mark's previous answer of using CPFP and other tricks to
>>     pay for the Bitcoin transaction fees, we can assume that Bitcoin
>>     fees do not play a part in the payment channel balances.
>>
>>     So, the interesting question is what are the costs of running a
>>     payment hub? The tx fees that a payment hub would have to pay to
>>     settle its Bitcoin transactions would be passed on as a cost to
>>     the clients of the payment hub. Also there is a cost to locking
>>     up funds in a payment channel (time value of money). The lost
>>     interest or opportunity cost on those funds would need to be paid
>>     for by its clients as well. And don't forget normal running costs
>>     such as networking and electricity.
>>
>>     On 9 August 2015 at 22:27, Tom Harding via bitcoin-dev
>>     <bitcoin-dev@lists.linuxfoundation.org
>>     <mailto:bitcoin-dev@lists.linuxfoundation.org>> wrote:
>>
>>         On Aug 9, 2015 11:54 AM, "Mark Friedenbach"
>>         <mark@friedenbach.org <mailto:mark@friedenbach.org>> wrote:
>>
>>         > On the contrary the funds were advanced by the hub on the cr=
eation of the channel.
>>         There is no credit involved.
>>
>>         That's a chuckle.=20
>>
>>         As I said, nothing requires the hub to advance anything, and
>>         if it does, Bob can expect to pay for it.
>>
>>         We'll see whether hubs assess a fee for depositing funds,
>>         whether the fee depends on the amount deposited, and whether
>>         it depends on the amount of time it stays there.
>>
>>         I predict "all of the above." There is a name for these kinds
>>         of fees.  Can you guess it?
>>
>>
>>         _______________________________________________
>>         bitcoin-dev mailing list
>>         bitcoin-dev@lists.linuxfoundation.org
>>         <mailto:bitcoin-dev@lists.linuxfoundation.org>
>>         https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev=

>>
>>
>>
>>
>>     _______________________________________________
>>     bitcoin-dev mailing list
>>     bitcoin-dev@lists.linuxfoundation.org <mailto:bitcoin-dev@lists.li=
nuxfoundation.org>
>>     https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>
>
>     _______________________________________________
>     bitcoin-dev mailing list
>     bitcoin-dev@lists.linuxfoundation.org
>     <mailto:bitcoin-dev@lists.linuxfoundation.org>
>     https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>
>


--------------040803070508020405080607
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On the contrary those costs are clearly very low.<br>
    <br>
    Both the time value of money and operating expenses will be trivial
    with even a small volume of transactions.<br>
    <br>
    The true cost of operating a hub is clearly in the enhanced risk of
    loss.<br>
    <br>
    It's clear that risk of loss will be moderated by market forces.<br>
    <br>
    The hubs which are better at securing their systems will reduce
    their risk of loss and obtain a competitive advantage.<br>
    <br>
    It's also important to note that the risk of loss is the same
    whether the hub is doing 1 transaction/second or 1 million
    transactions/second.<br>
    <br>
    At 1 transaction/second the cost (but not necessarily the fees) is
    going to be quite high.<br>
    <br>
    At 1 million transactions/second the cost is going to be very very
    low.<br>
    <br>
    <div class="moz-cite-prefix">On 08/09/2015 03:03 PM, Hector Chu
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAAO2FKHk6L5KZSABRfj2WSNw4VB12Bu9kEeNcvZ7gC0nCkqHEQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Ok good. We have established it to be a non-trivial
        cost.
        <div>Now, what is the growth complexity of the total cost of the
          network in terms of number of connections each hub has to
          other hubs? And then, consider a payment channel with many
          hops in it. The end-to-end users would have to swallow all the
          costs of the hubs in the channel.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 9 August 2015 at 22:57, Patrick
          Strateman via bitcoin-dev <span dir="ltr">&lt;<a
              moz-do-not-send="true"
              href="mailto:bitcoin-dev@lists.linuxfoundation.org"
              target="_blank">bitcoin-dev@lists.linuxfoundation.org</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> The costs of
              operating a hub are as follows:<br>
              <br>
              Time value of the funds the Hub has locked up in payment
              channels.<br>
              Enhanced risk of loss of control of private keys (the keys
              necessarily need to be on an internet connected system).<br>
              Operating costs (I expect this will be minimal).<br>
              <br>
              The hub can charge a fee for it's services to recoup these
              costs.
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 08/09/2015 02:45 PM, Hector Chu via
                    bitcoin-dev wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Tom, my understanding is that the
                      money that is debited from a payment hub is
                      simultaneously credited from either another
                      payment hub or the person making the payment, so
                      that the net funds flow at a payment hub always
                      sums to zero. So no, there is no credit advanced
                      by the payment hub to anyone.
                      <div><br>
                      </div>
                      <div>Given Mark's previous answer of using CPFP
                        and other tricks to pay for the Bitcoin
                        transaction fees, we can assume that Bitcoin
                        fees do not play a part in the payment channel
                        balances.</div>
                      <div><br>
                      </div>
                      <div>So, the interesting question is what are the
                        costs of running a payment hub? The tx fees that
                        a payment hub would have to pay to settle its
                        Bitcoin transactions would be passed on as a
                        cost to the clients of the payment hub. Also
                        there is a cost to locking up funds in a payment
                        channel (time value of money). The lost interest
                        or opportunity cost on those funds would need to
                        be paid for by its clients as well. And don't
                        forget normal running costs such as networking
                        and electricity.</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On 9 August 2015 at
                        22:27, Tom Harding via bitcoin-dev <span
                          dir="ltr">&lt;<a moz-do-not-send="true"
                            href="mailto:bitcoin-dev@lists.linuxfoundation.org"
                            target="_blank">bitcoin-dev@lists.linuxfoundation.org</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex"><span>
                            <p dir="ltr">On Aug 9, 2015 11:54 AM, "Mark
                              Friedenbach" &lt;<a moz-do-not-send="true"
                                href="mailto:mark@friedenbach.org"
                                target="_blank">mark@friedenbach.org</a>&gt;

                              wrote:</p>
                            <p dir="ltr">&gt; On the contrary the funds
                              were advanced by the hub on the creation
                              of the channel. There is no credit
                              involved.<br>
                            </p>
                          </span>
                          <p dir="ltr">That's a chuckle.  </p>
                          <p dir="ltr">As I said, nothing requires the
                            hub to advance anything, and if it does, Bob
                            can expect to pay for it.</p>
                          <p dir="ltr">We'll see whether hubs assess a
                            fee for depositing funds, whether the fee
                            depends on the amount deposited, and whether
                            it depends on the amount of time it stays
                            there.</p>
                          <p dir="ltr">I predict "all of the above."
                            There is a name for these kinds of fees. 
                            Can you guess it?<br>
                          </p>
                          <br>
_______________________________________________<br>
                          bitcoin-dev mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:bitcoin-dev@lists.linuxfoundation.org"
                            target="_blank">bitcoin-dev@lists.linuxfoundation.org</a><br>
                          <a moz-do-not-send="true"
                            href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev"
                            rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
bitcoin-dev mailing list
<a moz-do-not-send="true" href="mailto:bitcoin-dev@lists.linuxfoundation.org" target="_blank">bitcoin-dev@lists.linuxfoundation.org</a>
<a moz-do-not-send="true" href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            bitcoin-dev mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev"
              rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>

--------------040803070508020405080607--