summaryrefslogtreecommitdiff
path: root/d8/6cea0216bc4da8b50c35d5e8faa0aff21f827b
blob: 8cd18a0a84adc9ad0f273400108f9af45adab7d0 (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
Return-Path: <kanzure@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id 91470A81
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 17 Aug 2017 11:31:32 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com
	[209.85.218.47])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 789E6E2
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 17 Aug 2017 11:31:32 +0000 (UTC)
Received: by mail-oi0-f47.google.com with SMTP id e124so63400297oig.2
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 17 Aug 2017 04:31:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to; 
	bh=2QkgrjWLsUcTvXoMyLhcfzPWfiPRu5wh7KdVamwbXjM=;
	b=nDJIT0g2Q0XWEDE8jLtQCqQs1kc3B+EdPFcfK4vXvlVjMo7fM8W8nJoqLUtrsxjqT+
	NGsW111niVDlXa/fCoRfl5hzCu33NpmRn3SKR0OIEC4Qbe3DV0WfnzJ8dMvvzYwFkXBF
	+ttakkKAqIg0Rl42XMfURtHaYi75rODZTwJOjn2Dt8Q9MIU3UgFHO5O/VUGjdseAFxF7
	i7YXvKKd+qKYCqCb9hnl82yGY2Xa3LNStWRDMw+YakIqx5CuiovZ5xT+PToNAddxoZZq
	zVZvRTkbDOprC4Bo8USBY5jygSgaptCMOywah4c2VvkArkRhRb3ZW12OkBNXydx9xMrg
	y3Aw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to;
	bh=2QkgrjWLsUcTvXoMyLhcfzPWfiPRu5wh7KdVamwbXjM=;
	b=levPLPp6ATELJd71BEqo3GFTDwtk+UHeje8AMIkKShLg/hRNDIYu43wOs0Nz4g8gUj
	MCZGuiiUx9YGjKYgaVKYV37izY+6BNGUUYK6g0pqPlUhbpLkdfz0eAf+1pq/IvkDEBrC
	l+vmh/OFyKba5/r59IfoHbKDHizEiyQALHrJZgwGPDxh3voiRbLEeADMPgZJ6JkYjDxh
	EuJcZ9ef8y4qDl1z3lewDUgdYP/7xC++8CLvlO7iyK7xfPkwtyl28B/6v1MUD2UGKE5u
	cVetzDIdNCvHxB3wEcVRMy4w7mQ+xrvzPnFV597KKQ62ZqMw6yq/mFqWVNp7WymT3T6G
	SADw==
X-Gm-Message-State: AHYfb5g9xKrvdb9wLL635zllrrbiTjjSFP/Vl8iXxAhkyZ13upHzQ+hr
	34+mJS3lGbj7q9uavAmd5yfrdsY32qkL
X-Received: by 10.202.44.19 with SMTP id s19mr5825331ois.243.1502969491533;
	Thu, 17 Aug 2017 04:31:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.157.20.152 with HTTP; Thu, 17 Aug 2017 04:31:30 -0700 (PDT)
In-Reply-To: <CALxbBHU-_sC7Qr=U5TMtB_Gs6fe1QnskAaYrLhp1_7Zqc-m8cg@mail.gmail.com>
References: <CAKhySQxKvR+1g8Y-OeDjAZj2jDgHub2iJceu_y44t0b+prKYXQ@mail.gmail.com>
	<CALxbBHU-_sC7Qr=U5TMtB_Gs6fe1QnskAaYrLhp1_7Zqc-m8cg@mail.gmail.com>
From: Bryan Bishop <kanzure@gmail.com>
Date: Thu, 17 Aug 2017 06:31:30 -0500
Message-ID: <CABaSBaxNc2rSPBhqicBakpCkVtg8YOhLs7ecC2XwKfV4fM34iw@mail.gmail.com>
To: Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>,
	Bryan Bishop <kanzure@gmail.com>, 
	Martin Schwarz <martin.schwarz@gmail.com>,
	Christian Decker <decker.christian@gmail.com>
Content-Type: multipart/alternative; boundary="001a1137baaea6bef90556f15afa"
Subject: [bitcoin-dev] Fwd: [Lightning-dev] Lightning in the setting of
	blockchain hardforks
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: Thu, 17 Aug 2017 11:31:32 -0000

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

---------- Forwarded message ----------
From: Christian Decker <decker.christian@gmail.com>
Date: Thu, Aug 17, 2017 at 5:39 AM
Subject: Re: [Lightning-dev] Lightning in the setting of blockchain
hardforks
To: Martin Schwarz <martin.schwarz@gmail.com>,
lightning-dev@lists.linuxfoundation.org


Hi Martin,

this is the perfect venue to discuss this, welcome to the mailing list :-)
Like you I think that using the first forked block as the forkchain's
genesis block is the way to go, keeping the non-forked blockchain on the
original genesis hash, to avoid disruption. It may become more difficult in
the case one chain doesn't declare itself to be the forked chain.

Even more interesting are channels that are open during the fork. In these
cases we open a single channel, and will have to settle two. If no replay
protection was implemented on the fork, then we can use the last commitment
to close the channel (updates should be avoided since they now double any
intended effect), if replay protection was implemented then commitments
become invalid on the fork, and people will lose money.

Fun times ahead :-)

Cheers,
Christian

On Thu, Aug 17, 2017 at 10:53 AM Martin Schwarz <martin.schwarz@gmail.com>
wrote:

> Dear all,
>
> currently the chain_id allows to distinguish blockchains by the hash of
> their genesis block.
>
> With hardforks branching off of the Bitcoin blockchain, how can Lightning
> work on (or across)
> distinct, permanent forks of a parent blockchain that share the same
> genesis block?
>
> I suppose changing the definition of chain_id to the hash of the first
> block of the new
> branch and requiring replay and wipe-out protection should be sufficient.
> But can we
> relax these requirements? Are slow block times an issue? Can we use
> Lightning to transact
> on "almost frozen" block chains suffering from a sudden loss of hashpower?
>
> Has there been any previous discussion or study of Lightning in the
> setting of hardforks?
> (Is this the right place to discuss this? If not, where would be the right
> place?)
>
> thanks,
> Martin
> _______________________________________________
> Lightning-dev mailing list
> Lightning-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev
>

_______________________________________________
Lightning-dev mailing list
Lightning-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev




-- 
- Bryan
http://heybryan.org/
1 512 203 0507

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

<div dir=3D"ltr"><br><div class=3D"gmail_quote">---------- Forwarded messag=
e ----------<br>From: <b class=3D"gmail_sendername">Christian Decker</b> <s=
pan dir=3D"ltr">&lt;<a href=3D"mailto:decker.christian@gmail.com">decker.ch=
ristian@gmail.com</a>&gt;</span><br>Date: Thu, Aug 17, 2017 at 5:39 AM<br>S=
ubject: Re: [Lightning-dev] Lightning in the setting of blockchain hardfork=
s<br>To: Martin Schwarz &lt;<a href=3D"mailto:martin.schwarz@gmail.com">mar=
tin.schwarz@gmail.com</a>&gt;, <a href=3D"mailto:lightning-dev@lists.linuxf=
oundation.org">lightning-dev@lists.linuxfoundation.org</a><br><br><br><div =
dir=3D"ltr">Hi Martin,<div><br></div><div>this is the perfect venue to disc=
uss this, welcome to the mailing list :-)</div><div>Like you I think that u=
sing the first forked block as the forkchain&#39;s genesis block is the way=
 to go, keeping the non-forked blockchain on the original genesis hash, to =
avoid disruption. It may become more difficult in the case one chain doesn&=
#39;t declare itself to be the forked chain.</div><div><br></div><div>Even =
more interesting are channels that are open during the fork. In these cases=
 we open a single channel, and will have to settle two. If no replay protec=
tion was implemented on the fork, then we can use the last commitment to cl=
ose the channel (updates should be avoided since they now double any intend=
ed effect), if replay protection was implemented then commitments become in=
valid on the fork, and people will lose money.</div><div><br></div><div>Fun=
 times ahead :-)</div><div><br></div><div>Cheers,</div><div>Christian</div>=
</div><br><div class=3D"gmail_quote"><div><div class=3D"h5"><div dir=3D"ltr=
">On Thu, Aug 17, 2017 at 10:53 AM Martin Schwarz &lt;<a href=3D"mailto:mar=
tin.schwarz@gmail.com" target=3D"_blank">martin.schwarz@gmail.com</a>&gt; w=
rote:<br></div></div></div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class=
=3D"h5"><div dir=3D"ltr"><div>Dear all,</div><div><br></div><div>currently =
the chain_id allows to distinguish blockchains by the hash of their genesis=
 block.</div><div><br></div><div>With hardforks branching off of the Bitcoi=
n blockchain, how can Lightning work on (or across)</div><div>distinct, per=
manent forks of a parent blockchain that share the same genesis block?</div=
><div><br></div><div>I suppose changing the definition of chain_id to the h=
ash of the first block of the new</div><div>branch and requiring replay and=
 wipe-out protection should be sufficient. But can we=C2=A0</div><div>relax=
 these requirements? Are slow block times an issue? Can we use Lightning to=
 transact</div><div>on &quot;almost frozen&quot; block chains suffering fro=
m a sudden loss of hashpower?</div><div><br></div><div>Has there been any p=
revious discussion or study of Lightning in the setting of hardforks?</div>=
<div>(Is this the right place to discuss this? If not, where would be the r=
ight place?)</div><div><br></div><div>thanks,</div><div>Martin</div></div><=
/div></div>
______________________________<wbr>_________________<br>
Lightning-dev mailing list<br>
<a href=3D"mailto:Lightning-dev@lists.linuxfoundation.org" target=3D"_blank=
">Lightning-dev@lists.<wbr>linuxfoundation.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev=
" rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.<wbr>o=
rg/mailman/listinfo/<wbr>lightning-dev</a><br>
</blockquote></div>
<br>______________________________<wbr>_________________<br>
Lightning-dev mailing list<br>
<a href=3D"mailto:Lightning-dev@lists.linuxfoundation.org">Lightning-dev@li=
sts.<wbr>linuxfoundation.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev=
" rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.<wbr>o=
rg/mailman/listinfo/<wbr>lightning-dev</a><br>
<br></div><br><br clear=3D"all"><div><br></div>-- <br><div class=3D"gmail_s=
ignature" data-smartmail=3D"gmail_signature">- Bryan<br><a href=3D"http://h=
eybryan.org/" target=3D"_blank">http://heybryan.org/</a><br>1 512 203 0507<=
/div>
</div>

--001a1137baaea6bef90556f15afa--