summaryrefslogtreecommitdiff
path: root/7f/b2afdaed69747469ed66bcd6f73baca3ddae1f
blob: 6711029ba4bea045e86fcc388b0b1a3e9fde5570 (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
Return-Path: <eric@voskuil.org>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id CFB47ABC
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Mon, 18 Dec 2017 21:59:03 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-ot0-f179.google.com (mail-ot0-f179.google.com
	[74.125.82.179])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 87B7F171
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Mon, 18 Dec 2017 21:59:02 +0000 (UTC)
Received: by mail-ot0-f179.google.com with SMTP id h9so14691178oti.0
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Mon, 18 Dec 2017 13:59:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=voskuil-org.20150623.gappssmtp.com; s=20150623;
	h=mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=sGyL32OowT264Gkgi8ulSnaoFH5mOSiVxytGGfdPAvg=;
	b=KTTSrRa1P7NsC89YPtwjs8bytZMfu3hmimO5ZLt3vbgARQq/3rMWHc21RVvZugIR67
	TBlSl8cEPs2DpzqHcAMdCSif9O+VdUgwWNdJPBHn0GGpu/0U7VIZIwK22ZVgSQWNgYC4
	zQrbVXp+VfzmE8vXqe62HAMgXloHL92EuJJ5URgt3Onfce29mn4UPQl58QNdCQLrGycL
	wR0M9h3leGiuBobor1z3yn9XTf+dB9wDoWtCVmgihJPJHwnCr2ziLPX05wU8I5udfWSm
	a6M6dott/L2fUlzsp5kPr7JVKXfNeZk8eL/U6na/K5Y2oLtn/VQJZkCA88q056a3GM+i
	kqVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=sGyL32OowT264Gkgi8ulSnaoFH5mOSiVxytGGfdPAvg=;
	b=Q/tLwwSGX/Z5mzDAxpUT1u3d8Hhnp8jayTu99GJUTspCiCFldtYP8Lb/IQGWX0bCts
	bySCoUTEPnVImHUUf8vntqlIOWx0JpGzl4bEsaYWWe9bpvXI1pZ/kRDsh1AYs2UfoLu7
	Rtdkr1SLUPQ3hvYJlhz8ilsSEELAh8zyn3pMl5upfeXM4vwwsW8zXU16yWbnaakX4PDB
	Y+ozGD957iL8ROQcwUPv1DDndoWxUJ9jEqvA+EJhjg4xivhJn11tR9rNg8NEhd+IWsXa
	fbRGHgnLdV+2a1xqEB9Gzu6djFcIrguIX9AqyVLQY6OfZk7tmMwgvogQaYPbySHCo569
	BXUw==
X-Gm-Message-State: AKGB3mIlXjZnAuZpsAqZ1eOlsmJjHACHNnU27VLUTDBP+cCrsAUo0asN
	xCcuyw2dM+WRH8/BjEDWD/OHj4tTNTc=
X-Google-Smtp-Source: ACJfBotVIvYahXMubl4N6qXMPlhhoLQIGwSoa8Hc+4unJ7UBF+xdAsmw1o/MO7/1ggx+Ux+7uCrS3g==
X-Received: by 10.157.53.98 with SMTP id l31mr930718ote.314.1513634341707;
	Mon, 18 Dec 2017 13:59:01 -0800 (PST)
Received: from ?IPv6:2600:380:606b:27b4:1841:2452:2040:4e3?
	([2600:380:606b:27b4:1841:2452:2040:4e3])
	by smtp.gmail.com with ESMTPSA id
	g143sm5404051oic.6.2017.12.18.13.59.00
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Mon, 18 Dec 2017 13:59:00 -0800 (PST)
Content-Type: multipart/alternative;
	boundary=Apple-Mail-29E69DCE-23FB-4F26-B284-C27B22449429
Mime-Version: 1.0 (1.0)
From: Eric Voskuil <eric@voskuil.org>
X-Mailer: iPhone Mail (14G60)
In-Reply-To: <CAPswA9xEf9+vtW5LwdzJ5BofN4zJLoiPUy9i=mH=UQrcyUifLw@mail.gmail.com>
Date: Mon, 18 Dec 2017 16:58:58 -0500
Content-Transfer-Encoding: 7bit
Message-Id: <F000E66A-DC3A-4A40-A74C-E6259A9D747B@voskuil.org>
References: <CAPswA9ycPdTtm9PeD5a2R36cZ46HwnkwJu06FXuoE-F5Dx+eZQ@mail.gmail.com>
	<CD7FBCF6-5386-4E9E-A3B9-D5B3DBAF312C@voskuil.org>
	<CAPswA9zo1dLYHP9A+xrYLsrFO5GVYFqVLQC-A9uHQSCie7xeYg@mail.gmail.com>
	<A2B6418E-069F-476A-86EE-638C6D9E826A@voskuil.org>
	<61B0AEC9-3B1D-416F-8883-A030E5109538@friedenbach.org>
	<CAPswA9xEf9+vtW5LwdzJ5BofN4zJLoiPUy9i=mH=UQrcyUifLw@mail.gmail.com>
To: Kalle Rosenbaum <kalle@rosenbaum.se>,
	Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID, HTML_MESSAGE, MIME_QP_LONG_LINE,
	RCVD_IN_DNSWL_NONE 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, 18 Dec 2017 22:14:12 +0000
Subject: Re: [bitcoin-dev] Why not witnessless nodes?
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, 18 Dec 2017 21:59:03 -0000


--Apple-Mail-29E69DCE-23FB-4F26-B284-C27B22449429
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

How does one know what consensus has formed (around a UTXO set)?

e

> On Dec 18, 2017, at 16:27, Kalle Rosenbaum via bitcoin-dev <bitcoin-dev@li=
sts.linuxfoundation.org> wrote:
>=20
> Hi Mark
>=20
> Yes, it seems like sign-to-contract protocols, which I just now briefly re=
ad about [1][2], may need to use historic witnesses. That raises the questio=
n, what are Bitcoin witnesses for?
>=20
> To me it seems witnesses should be regarded as temporary. But it seems bot=
h respondents to this thread, Eric and Mark, mean that witnesses are forever=
. I regard witnesses as a way to authenticate updates to the UTXO set, and o=
nce buried deep enough in the blockchain, the witness is no longer needed, b=
ecause consensus has formed around the UTXO set update.
>=20
> Suppose a transaction with an invalid witness happens to enter the blockch=
ain and gets buried 100000 blocks down with the witness still available. Is t=
he blockchain above it valid? I'd say the blockchain is valid and that it wa=
s a bug that the transaction made it into the blockchain. We will have to li=
ve with such bugs.
>=20
> Another way to put it: Suppose that all witnesses from 2017 dissappears fr=
om all nodes in 2020. Is the blockchain still valid? I think so. I would con=
tinue using it without looking back.
>=20
> With that approach, I think sign-to-contract protocols has to find ways to=
 work in a witnessless environment. For example, users of such protocols can=
 setup their own archival nodes.
>=20
> I'd love to hear alternative views on this.
>=20
> Thanks,
> /Kalle
>=20
> [1] https://download.wpsoftware.net/bitcoin/wizardry/mw-slides/2017-03-mit=
-bitcoin-expo/slides.pdf
> [2] https://bitcointalk.org/index.php?topic=3D893898.msg9861102#msg9861102=

>=20
> 2017-12-18 18:30 GMT+01:00 Mark Friedenbach via bitcoin-dev <bitcoin-dev@l=
ists.linuxfoundation.org>:
>> Sign-to-contract enables some interesting protocols, none of which are in=
 wide use as far as I=E2=80=99m aware. But if they were (and arguably this i=
s an area that should be more developed), then SPV nodes validating these pr=
otocols will need access to witness data. If a node is performing IBD with a=
ssumevalid set to true, and is also intending to prune history, then there=E2=
=80=99s no reason to fetch those witnesses as far as I=E2=80=99m aware. But i=
t would be a great disservice to the network for nodes intending to serve SP=
V clients to prune this portion of the block history.=20
>>=20
>>=20
>>> On Dec 18, 2017, at 8:19 AM, Eric Voskuil via bitcoin-dev <bitcoin-dev@l=
ists.linuxfoundation.org> wrote:
>>>=20
>>> You can't know (assume) a block is valid unless you have previously vali=
dated the block yourself. But in the case where you have, and then intend to=
 rely on it in a future sync, there is no need for witness data for blocks y=
ou are not going to validate. So you can just not request it.=20
>>>=20
>>> However you will not be able to provide those blocks to nodes that *are*=
 validating; the client is pruned and therefore not a peer (cannot reciproca=
te). (An SPV client is similarly not a peer; it is a more deeply pruned clie=
nt than the witnessless client.)
>>>=20
>>> There is no other reason that a node requires witness data. SPV clients d=
on't need it as it is neither require it to verify header commitment to tran=
sactions nor to extract payment addresses from them.
>>>=20
>>> The harm to the network by pruning is that eventually it can become hard=
er and even impossible for anyone to validate the chain. But because you are=
 fully validating you individually remain secure, so there is no individual i=
ncentive working against this system harm.
>>>=20
>>> e
>>>=20
>>>> On Dec 18, 2017, at 08:35, Kalle Rosenbaum <kalle@rosenbaum.se> wrote:
>>>>=20
>>>> 2017-12-18 13:43 GMT+01:00 Eric Voskuil <eric@voskuil.org>:
>>>>>=20
>>>>> > On Dec 18, 2017, at 03:32, Kalle Rosenbaum via bitcoin-dev <bitcoin-=
dev@lists.linuxfoundation.org> wrote:
>>>>> >
>>>>> > Dear list,
>>>>> >
>>>>> > I find it hard to understand why a full node that does initial block=

>>>>> > download also must download witnesses if they are going to skip veri=
fication anyway.
>>>>>=20
>>>>> Why run a full node if you are not going to verify the chain?
>>>>=20
>>>> I meant to say "I find it hard to understand why a full node that does i=
nitial block
>>>> download also must download witnesses when it is going to skip verifica=
tion of the witnesses anyway."
>>>>=20
>>>> I'm referring to the "assumevalid" feature of Bitcoin Core that skips s=
ignature verification up to block X. Or have I misunderstood assumevalid?
>>>>=20
>>>> /Kalle
>>>> =20
>>>>>=20
>>>>> > If my full node skips signature verification for
>>>>> > blocks earlier than X, it seems the reasons for downloading the
>>>>> > witnesses for those blocks are:
>>>>> >
>>>>> > * to be able to send witnesses to other nodes.
>>>>> >
>>>>> > * to verify the witness root hash of the blocks
>>>>> >
>>>>> > I suppose that it's important to verify the witness root hash becaus=
e
>>>>> > a bad peer may send me invalid witnesses during initial block
>>>>> > download, and if I don't verify that the witness root hash actually
>>>>> > commits to them, I will get banned by peers requesting the blocks fr=
om
>>>>> > me because I send them garbage.
>>>>> > So both the reasons above (there may be more that I don't know about=
)
>>>>> > are actually the same reason: To be able to send witnesses to others=

>>>>> > without getting banned.
>>>>> >
>>>>> > What if a node could chose not to download witnesses and thus chose t=
o
>>>>> > send only witnessless blocks to peers. Let's call these nodes
>>>>> > witnessless nodes. Note that witnessless nodes are only witnessless
>>>>> > for blocks up to X. Everything after X is fully verified.
>>>>> >
>>>>> > Witnessless nodes would be able to sync faster because it needs to
>>>>> > download less data to calculate their UTXO set. They would therefore=

>>>>> > more quickly be able to provide full service to SPV wallets and its
>>>>> > local wallets as well as serving blocks to other witnessless nodes
>>>>> > with same or higher assumevalid block. For witnessless nodes with
>>>>> > lower assumevalid they can serve at least some blocks. It could also=

>>>>> > serve blocks to non-segwit nodes.
>>>>> >
>>>>> > Do witnessless nodes risk dividing the network in two parts, one
>>>>> > witnessless and one with full nodes, with few connections between th=
e
>>>>> > parts?
>>>>> >
>>>>> > So basically, what are the reasons not to implement witnessless
>>>>> > nodes?
>>>>> >
>>>>> > Thank you,
>>>>> > /Kalle
>>>>> > _______________________________________________
>>>>> > bitcoin-dev mailing list
>>>>> > bitcoin-dev@lists.linuxfoundation.org
>>>>> > https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>>>>=20
>>> _______________________________________________
>>> bitcoin-dev mailing list
>>> bitcoin-dev@lists.linuxfoundation.org
>>> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>>=20
>>=20
>> _______________________________________________
>> bitcoin-dev mailing list
>> bitcoin-dev@lists.linuxfoundation.org
>> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>>=20
>=20
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev

--Apple-Mail-29E69DCE-23FB-4F26-B284-C27B22449429
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D=
utf-8"></head><body dir=3D"auto"><div></div><div>How does one know what cons=
ensus has formed (around a UTXO set)?</div><div><br></div><div>e</div><div><=
br>On Dec 18, 2017, at 16:27, Kalle Rosenbaum via bitcoin-dev &lt;<a href=3D=
"mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfounda=
tion.org</a>&gt; wrote:<br><br></div><blockquote type=3D"cite"><div><div dir=
=3D"ltr"><div>Hi Mark</div><div><br></div>Yes, it seems like sign-to-contrac=
t protocols, which I just now briefly read about [1][2], may need to use his=
toric witnesses. That raises the question, what are Bitcoin witnesses for?<d=
iv><br></div><div>To me it seems witnesses should be regarded as temporary. B=
ut it seems both respondents to this thread, Eric and Mark,&nbsp;mean that w=
itnesses are forever. I regard witnesses as a way to authenticate updates to=
 the UTXO set, and once buried deep enough in the blockchain, the witness is=
 no longer needed, because consensus has formed around the UTXO set update.<=
/div><div><br></div><div>Suppose a transaction with an invalid witness happe=
ns to enter the blockchain and gets buried 100000 blocks down with the witne=
ss still available. Is the blockchain above it valid? I'd say the blockchain=
 is valid and that it was a bug that the transaction made it into the blockc=
hain. We will have to live with such bugs.</div><div><br></div><div>Another w=
ay to put it: Suppose that all witnesses from 2017 dissappears from all node=
s in 2020. Is the blockchain still valid? I think so. I would continue using=
 it without looking back.</div><div><br></div><div>With that approach, I thi=
nk sign-to-contract protocols has to find ways to work in a witnessless envi=
ronment. For example, users of such protocols can setup their own archival n=
odes.</div><div><br></div><div>I'd love to hear alternative views on this.</=
div><div><br></div><div>Thanks,</div><div>/Kalle</div><div><div><div><br></d=
iv><div>[1] <a href=3D"https://download.wpsoftware.net/bitcoin/wizardry/mw-s=
lides/2017-03-mit-bitcoin-expo/slides.pdf">https://download.wpsoftware.net/b=
itcoin/wizardry/mw-slides/2017-03-mit-bitcoin-expo/slides.pdf</a><br></div><=
div>[2]&nbsp;<a href=3D"https://bitcointalk.org/index.php?topic=3D893898.msg=
9861102#msg9861102">https://bitcointalk.org/index.php?topic=3D893898.msg9861=
102#msg9861102</a></div></div></div></div><div class=3D"gmail_extra"><br><di=
v class=3D"gmail_quote">2017-12-18 18:30 GMT+01:00 Mark Friedenbach via bitc=
oin-dev <span dir=3D"ltr">&lt;<a href=3D"mailto:bitcoin-dev@lists.linuxfound=
ation.org" target=3D"_blank">bitcoin-dev@lists.linuxfoundation.org</a>&gt;</=
span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-word;l=
ine-break:after-white-space">Sign-to-contract enables some interesting proto=
cols, none of which are in wide use as far as I=E2=80=99m aware. But if they=
 were (and arguably this is an area that should be more developed), then SPV=
 nodes validating these protocols will need access to witness data. If a nod=
e is performing IBD with assumevalid set to true, and is also intending to p=
rune history, then there=E2=80=99s no reason to fetch those witnesses as far=
 as I=E2=80=99m aware. But it would be a great disservice to the network for=
 nodes intending to serve SPV clients to prune this portion of the block his=
tory.&nbsp;<div><div class=3D"h5"><br><div><br><blockquote type=3D"cite"><di=
v>On Dec 18, 2017, at 8:19 AM, Eric Voskuil via bitcoin-dev &lt;<a href=3D"m=
ailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_blank">bitcoin-dev@l=
ists.<wbr>linuxfoundation.org</a>&gt; wrote:</div><br class=3D"m_-1037308974=
542236649Apple-interchange-newline"><div><div dir=3D"auto"><div></div><div>Y=
ou can't know (assume) a block is valid unless you have previously validated=
 the block yourself. But in the case where you have, and then intend to rely=
 on it in a future sync, there is no need for witness data for blocks you ar=
e not going to validate. So you can just not request it.&nbsp;</div><div><br=
></div><div>However you will not be able to provide those blocks to nodes th=
at *are* validating; the client is pruned and therefore not a peer (cannot r=
eciprocate). (An SPV client is similarly not a peer; it is a more deeply pru=
ned client than the witnessless client.)</div><div><br></div><div>There is n=
o other reason that a node requires witness data. SPV clients don't need it a=
s it is neither require it to verify header commitment to transactions nor t=
o extract payment addresses from them.</div><div><br></div><div>The harm to t=
he network by pruning is that eventually it can become harder and even impos=
sible for anyone to validate the chain. But because you are fully validating=
 you individually remain secure, so there is no individual incentive working=
 against this system harm.</div><div><br></div><div>e</div><div><br>On Dec 1=
8, 2017, at 08:35, Kalle Rosenbaum &lt;<a href=3D"mailto:kalle@rosenbaum.se"=
 target=3D"_blank">kalle@rosenbaum.se</a>&gt; wrote:<br><br></div><blockquot=
e type=3D"cite"><div><div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D=
"gmail_quote">2017-12-18 13:43 GMT+01:00 Eric Voskuil <span dir=3D"ltr">&lt;=
<a href=3D"mailto:eric@voskuil.org" target=3D"_blank">eric@voskuil.org</a>&g=
t;</span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0=
.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=3D=
"m_-1037308974542236649gmail-"><br>
&gt; On Dec 18, 2017, at 03:32, Kalle Rosenbaum via bitcoin-dev &lt;<a href=3D=
"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_blank">bitcoin-dev=
@lists.linuxfounda<wbr>tion.org</a>&gt; wrote:<br>
&gt;<br>
&gt; Dear list,<br>
&gt;<br>
&gt; I find it hard to understand why a full node that does initial block<br=
>
&gt; download also must download witnesses if they are going to skip verific=
ation anyway.<br>
<br>
</span>Why run a full node if you are not going to verify the chain?<br></bl=
ockquote><div><br></div>I meant to say "<span style=3D"color:rgb(80,0,80);fo=
nt-size:12.8px">I find it hard to understand why a full node that does initi=
al block</span><br style=3D"color:rgb(80,0,80);font-size:12.8px"><span style=
=3D"color:rgb(80,0,80);font-size:12.8px">download also must download witness=
es when it is going to skip verification of the witnesses anyway."</span></d=
iv><div class=3D"gmail_quote"><span style=3D"color:rgb(80,0,80);font-size:12=
.8px"><br></span></div><div class=3D"gmail_quote"><span style=3D"color:rgb(8=
0,0,80);font-size:12.8px">I'm referring to the "assumevalid" feature of Bitc=
oin Core that skips signature verification up to block X. Or have I misunder=
stood assumevalid?</span></div><div class=3D"gmail_quote"><span style=3D"col=
or:rgb(80,0,80);font-size:12.8px"><br></span></div><div class=3D"gmail_quote=
"><span style=3D"color:rgb(80,0,80);font-size:12.8px">/Kalle</span></div><di=
v class=3D"gmail_quote">&nbsp;<br></div><div class=3D"gmail_quote"><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s=
olid rgb(204,204,204);padding-left:1ex">
<div><div class=3D"m_-1037308974542236649gmail-h5"><br>
&gt; If my full node skips signature verification for<br>
&gt; blocks earlier than X, it seems the reasons for downloading the<br>
&gt; witnesses for those blocks are:<br>
&gt;<br>
&gt; * to be able to send witnesses to other nodes.<br>
&gt;<br>
&gt; * to verify the witness root hash of the blocks<br>
&gt;<br>
&gt; I suppose that it's important to verify the witness root hash because<b=
r>
&gt; a bad peer may send me invalid witnesses during initial block<br>
&gt; download, and if I don't verify that the witness root hash actually<br>=

&gt; commits to them, I will get banned by peers requesting the blocks from<=
br>
&gt; me because I send them garbage.<br>
&gt; So both the reasons above (there may be more that I don't know about)<b=
r>
&gt; are actually the same reason: To be able to send witnesses to others<br=
>
&gt; without getting banned.<br>
&gt;<br>
&gt; What if a node could chose not to download witnesses and thus chose to<=
br>
&gt; send only witnessless blocks to peers. Let's call these nodes<br>
&gt; witnessless nodes. Note that witnessless nodes are only witnessless<br>=

&gt; for blocks up to X. Everything after X is fully verified.<br>
&gt;<br>
&gt; Witnessless nodes would be able to sync faster because it needs to<br>
&gt; download less data to calculate their UTXO set. They would therefore<br=
>
&gt; more quickly be able to provide full service to SPV wallets and its<br>=

&gt; local wallets as well as serving blocks to other witnessless nodes<br>
&gt; with same or higher assumevalid block. For witnessless nodes with<br>
&gt; lower assumevalid they can serve at least some blocks. It could also<br=
>
&gt; serve blocks to non-segwit nodes.<br>
&gt;<br>
&gt; Do witnessless nodes risk dividing the network in two parts, one<br>
&gt; witnessless and one with full nodes, with few connections between the<b=
r>
&gt; parts?<br>
&gt;<br>
&gt; So basically, what are the reasons not to implement witnessless<br>
&gt; nodes?<br>
&gt;<br>
&gt; Thank you,<br>
&gt; /Kalle<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; bitcoin-dev mailing list<br>
&gt; <a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_bla=
nk">bitcoin-dev@lists.linuxfoundat<wbr>ion.org</a><br>
&gt; <a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-d=
ev" rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.<wbr>=
org/mailman/listinfo/bitcoin-d<wbr>ev</a><br>
</blockquote></div><br></div></div>
</div></blockquote></div>______________________________<wbr>________________=
_<br>bitcoin-dev mailing list<br><a href=3D"mailto:bitcoin-dev@lists.linuxfo=
undation.org" target=3D"_blank">bitcoin-dev@lists.<wbr>linuxfoundation.org</=
a><br><a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-=
dev" target=3D"_blank">https://lists.linuxfoundation.<wbr>org/mailman/listin=
fo/bitcoin-<wbr>dev</a><br></div></blockquote></div><br></div></div></div><b=
r>______________________________<wbr>_________________<br>
bitcoin-dev mailing list<br>
<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.<=
wbr>linuxfoundation.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" r=
el=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.<wbr>org/m=
ailman/listinfo/bitcoin-<wbr>dev</a><br>
<br></blockquote></div><br></div>
</div></blockquote><blockquote type=3D"cite"><div><span>____________________=
___________________________</span><br><span>bitcoin-dev mailing list</span><=
br><span><a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-de=
v@lists.linuxfoundation.org</a></span><br><span><a href=3D"https://lists.lin=
uxfoundation.org/mailman/listinfo/bitcoin-dev">https://lists.linuxfoundation=
.org/mailman/listinfo/bitcoin-dev</a></span><br></div></blockquote></body></=
html>=

--Apple-Mail-29E69DCE-23FB-4F26-B284-C27B22449429--