summaryrefslogtreecommitdiff
path: root/f8/6f9146f2923f066cb1ed5dd7bdd37b016a0300
blob: cd4c88e98381b1f7737339deb344005c151a5ba4 (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
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
Return-Path: <slashene@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id 1B040F68
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed,  3 Apr 2019 07:51:24 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com
	[209.85.208.68])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id D37087A6
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed,  3 Apr 2019 07:51:20 +0000 (UTC)
Received: by mail-ed1-f68.google.com with SMTP id d11so4244674edp.11
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed, 03 Apr 2019 00:51:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:references:in-reply-to:from:date:message-id:subject:to; 
	bh=TnMgL6eYlk4NtA0w1+pTJI84h1gaDPKtM5Fn712kuyM=;
	b=hVUdEfzhFvjuSsfEH+u7pY2nur8WbrjVTU1dosF0ZjiY0hymRU+K9l0x7Y3+ZvCS6h
	Rha8q1TncmSJolfSDXF2m+9UHuXM+cyrLbCsP9Bw0sUGevJRnAddsoprWrddguUM8XZ8
	+I7SMmDKPEFGLMI1yyhXCSB9fd8HOOuD5He5PntIh2RolCE6fanuGVqEjNol3Km2uh1V
	NwAhgOmor+dCt9/4e42uVUiJzo8isbetJpVmUciCvAn7ooc4D9ZkZDYPMZAtcgu734S/
	WRdBwjQyjqGGf2I1Moe94u/k5AYb6rNO/7ncAH0eMb0UxUjiic10n5eV0NZTjxbXyr/K
	X4LQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:references:in-reply-to:from:date
	:message-id:subject:to;
	bh=TnMgL6eYlk4NtA0w1+pTJI84h1gaDPKtM5Fn712kuyM=;
	b=FMpLXn3mbTQewnJts12XWtGYc23UXj6DZlL4kNFXEKKzFlJ1W9RbdRQq/DfOULngQW
	iAyDTlHGgzuosGRuSjkvfiPLLiu9qB7rKvSh9kQOuVvzUZie5zSpsCU+8mzdORPCXGG0
	0nI7ghgf6igaUJJCubtNAnbPEQl4337n/r6VWSniecO7myI82R6kh63bhhZHM3dbdO74
	qV7AyKbQkaf7UkkhThRtwSWkU9jEUNnGFiGexBBeChbrclyxS9vN2dE3fpMCIR669smo
	LYFEkk9bFM37+H7GgvFyxzSCv5wwmQBLJfYSuuyypQoZlydVoTvkHgbYi4yfOym+p+ut
	zYQA==
X-Gm-Message-State: APjAAAW3hU8nLuyPkrm1Tqh8aoT8lWZ5j0wmGpyTcn0BO8/LVh7imyOk
	fNjFXZH8awi/jnEko2d+EfkKLna8OGf/yeWn1BxTSyPg
X-Google-Smtp-Source: APXvYqyPyut5mPgU2YihQVyRT8JVonNT9xiF/Wyu1jILxeqeKwJCf45LryqDRXr1ZUejGeyTX2Vzzr5Dg9ls+Z0biHI=
X-Received: by 2002:a17:906:6c0d:: with SMTP id
	j13mr42348787ejr.249.1554277878984; 
	Wed, 03 Apr 2019 00:51:18 -0700 (PDT)
MIME-Version: 1.0
References: <mailman.2593.1554248572.29810.bitcoin-dev@lists.linuxfoundation.org>
In-Reply-To: <mailman.2593.1554248572.29810.bitcoin-dev@lists.linuxfoundation.org>
From: Nicolas Dorier <nicolas.dorier@gmail.com>
Date: Wed, 3 Apr 2019 16:51:04 +0900
Message-ID: <CA+1nnrkFWNugSm+o=BrQMLcsO0gNDDCcKRJfDi=5osMZV7o7CA@mail.gmail.com>
To: Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: multipart/alternative; boundary="000000000000dbf57405859b8472"
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, HTML_MESSAGE,
	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: Wed, 03 Apr 2019 19:23:04 +0000
Subject: [bitcoin-dev]  assumeutxo and UTXO snapshots
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: Wed, 03 Apr 2019 07:51:24 -0000

--000000000000dbf57405859b8472
Content-Type: text/plain; charset="UTF-8"

James,

You might be interested by my work which is currently used in production,
without any change to bitcoin core.

I properly explain how to verify the utxoset independently.

https://github.com/btcpayserver/btcpayserver-docker/blob/master/contrib/FastSync/README.md


People are using it, since I get around 10 download a day.
What can be done to help at Bitcoin Core level is actually very minimal.

First, instead of asking signers of by UTXOSet to sign the utxoset hash
from gettxoutsetinfo, I ask them to sign the hash of the tarball of my UTXO
Set.

The reason is that it is currently impossible to stop BitcoinD on a
specific block then asking the serialized hash of the UTXO Set.

So instead, a verifier download the tarball (300 blocks + utxoset at
specific height), sync to the latest block, then compare the
gettxoutsetinfo of the newly synched node with another trusted node. If it
match, the verifier sign the tarball.

I create a new utxoset snapshot every 6 months, so people have time to
verify it and add their signatures. (Approximately once every bitcoin core
release)

The easiest thing that could be done at Bitcoin Core level does not require
any code change, but a change in the release process.

The new process would be to ask to the gitian signers to not only build the
source themselves, but also verify a tarball following the procedure I
explain in the link above.

More complicated solution like signing the serialized utxoset itself, while
possible, would require bothersome code changes.

Nicolas,

On Wed, Apr 3, 2019 at 9:25 AM <
bitcoin-dev-request@lists.linuxfoundation.org> wrote:

> Send bitcoin-dev mailing list submissions to
>         bitcoin-dev@lists.linuxfoundation.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
> or, via email, send a message with subject or body 'help' to
>         bitcoin-dev-request@lists.linuxfoundation.org
>
> You can reach the person managing the list at
>         bitcoin-dev-owner@lists.linuxfoundation.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of bitcoin-dev digest..."
>
>
> Today's Topics:
>
>    1. BIP: Bitcoin Integrated Address Feature? (nathanw@tutanota.com)
>    2. Re: BIP: Bitcoin Integrated Address Feature? (htimSxelA)
>    3. assumeutxo and UTXO snapshots (James O'Beirne)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 2 Apr 2019 18:53:11 +0200 (CEST)
> From: <nathanw@tutanota.com>
> To: <bitcoin-dev@lists.linuxfoundation.org>
> Subject: [bitcoin-dev] BIP: Bitcoin Integrated Address Feature?
> Message-ID: <LbTxyE4--3-1@tutanota.com>
> Content-Type: text/plain; charset="utf-8"
>
> To whom it may concern,
>
> I believe a missing feature in Bitcoin is the ability to have an
> "integrated address", where the address resolves into a Bitcoin address,
> and also a transaction message or some other kind of identifier.
>
> By having this feature we could enhance the security of exchange
> cold-wallet systems, by allowing them to easily receive all payments to a
> single address from an infinite number of customers. We would also greatly
> simplify the process of setting up and managing exchange cold-wallet
> systems, because we would eliminate the "sweeping" step required to move
> multiple customer deposits from a hot address into a single cold address.
>
> Although it would be nice to have all customers deposit directly into cold
> addresses, this quickly becomes impractical when large amounts of customers
> begin to use exchange wallets as their personal web-wallet, frequently
> depositing and withdrawing without trading action. You end up needing to
> have a staff member moving funds away from cold deposit addresses as a full
> time job - if you wish to handle customer funds in a completely secure
> manner.
>
> Thus we see that most exchanges now use the hot-deposit system, where
> customers deposit into a hot address that is then automatically swept into
> a singular cold address, by a service which holds customers private keys
> online. You can observe this service at work simply by making a deposit to
> most major exchanges (including the largest exchange Binance), as you will
> see the funds quickly being "swept" to their cold wallet address in a
> manner which heavily suggests automation by a program which possesses
> private keys to the address you are sending funds to. This means there is
> always the danger of a sophisticated hacker being able to capture private
> keys to customer deposit addresses (as they are clearly being held online).
> An integrated address would allow all exchanges using this automated
> hot-deposit service to easily switch to a far more secure alternative of
> having all customers depositing directly into their singular cold wallet
> address.
>
> There are several other more minor advantages such a feature would have,
> including:
> - Lower fees for exchanges (which could be passed onto customers), by
> reducing a transaction step out of the deposit-to-withdrawal flow.
> - Less need for large rescans after loading huge amounts of customer
> addresses into client software.
> - Exchanges can more easily provision deposit addresses to new customers
> in a secure manner, by simply generating a hex or other value, creating an
> integrated address from the cold wallet address, and then providing this to
> the customer.
> - By providing a singular cold address for exchanges publicly, customers
> can more easily verify that no man-in-the-middle has given them an
> incorrect address to deposit to.
> The integrated address could work by combining the Bitcoin address
> together with some kind of hex or other value, allowing users to choose the
> amount they wish to deposit themselves, but ensuring their deposits are
> uniquely trackable.
>
> I'm not sure if some kind of functionality already exists in BTC, as I
> haven't been able to find it. If not, can I submit a proposal to implement
> this? This feature would be a godsend to all exchange developers if it was
> widely accepted.
>
> Thanks for your time.
> Regards,
>
> Nathan Worsley
> CTO - LocalCoinSwap.Com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20190402/400c1e1b/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Tue, 02 Apr 2019 20:01:34 +0000
> From: htimSxelA <htimsxela@protonmail.com>
> To: "nathanw@tutanota.com" <nathanw@tutanota.com>,      Bitcoin Protocol
>         Discussion <bitcoin-dev@lists.linuxfoundation.org>
> Subject: Re: [bitcoin-dev] BIP: Bitcoin Integrated Address Feature?
> Message-ID:
>
> <wtbAF1FAGePDAkY3xkqANuFJtAhEXvz0JeGWnc_OZcGEyFQb-1B590I3IbwtW2FBivur0yONbSQtxaWqiQTJeoDdadivtbGkWwJnLnnzQQE=@
> protonmail.com>
>
> Content-Type: text/plain; charset="utf-8"
>
> Hello,
>
> I see two immediate issues with this:
> 1. Increased resource requirements per transaction
> 2. Embedding identifying information into the blockchain is generally bad
> for privacy
>
> It may help your case to provide some technical details of how you'd like
> to see this implemented, but without overcoming the issues mentioned above
> I think this proposal will be a very tough sell.
>
> > ...this quickly becomes impractical when large amounts of customers
> begin to use exchange wallets as their personal web-wallet, frequently
> depositing and withdrawing without trading action. You end up needing to
> have a staff member moving funds away from cold deposit addresses as a full
> time job - if you wish to handle customer funds in a completely secure
> manner.
>
> I am not sure if I see how this issue is solved by your proposal.
> Assumedly, a human will still need to manually approve cold-wallet
> withdrawals in order to maintain security. So it seems to me that removing
> the 'hot-wallet' component of the backend would only amplify the need for
> human interaction.
>
> I assume you are familiar with hierarchical deterministic wallets? They
> can allow an exchange to assign/identify user deposits based on address
> derivation path. Keys for deposit addresses can be kept offline if wanted,
> and a proper implementation of an HD wallet system should also remove the
> need for rescans of user deposit addresses.
>
> There is also a functionality built into Bitcoin that allows a user to
> prove that they own the private keys to some address: signing an agreed
> upon message using the private key that controls that address.
> Unfortunately I don't think this is a workable solution for you, since the
> majority of modern wallet software does not include this feature-- but
> perhaps worth mentioning nonetheless.
>
> Best,
> Alex
>
> ??????? Original Message ???????
> On Tuesday, April 2, 2019 9:53 AM, Nathan Worsley via bitcoin-dev <
> bitcoin-dev@lists.linuxfoundation.org> wrote:
>
> > To whom it may concern,
> >
> > I believe a missing feature in Bitcoin is the ability to have an
> "integrated address", where the address resolves into a Bitcoin address,
> and also a transaction message or some other kind of identifier.
> >
> > By having this feature we could enhance the security of exchange
> cold-wallet systems, by allowing them to easily receive all payments to a
> single address from an infinite number of customers. We would also greatly
> simplify the process of setting up and managing exchange cold-wallet
> systems, because we would eliminate the "sweeping" step required to move
> multiple customer deposits from a hot address into a single cold address.
> >
> > Although it would be nice to have all customers deposit directly into
> cold addresses, this quickly becomes impractical when large amounts of
> customers begin to use exchange wallets as their personal web-wallet,
> frequently depositing and withdrawing without trading action. You end up
> needing to have a staff member moving funds away from cold deposit
> addresses as a full time job - if you wish to handle customer funds in a
> completely secure manner.
> >
> > Thus we see that most exchanges now use the hot-deposit system, where
> customers deposit into a hot address that is then automatically swept into
> a singular cold address, by a service which holds customers private keys
> online. You can observe this service at work simply by making a deposit to
> most major exchanges (including the largest exchange Binance), as you will
> see the funds quickly being "swept" to their cold wallet address in a
> manner which heavily suggests automation by a program which possesses
> private keys to the address you are sending funds to. This means there is
> always the danger of a sophisticated hacker being able to capture private
> keys to customer deposit addresses (as they are clearly being held online).
> An integrated address would allow all exchanges using this automated
> hot-deposit service to easily switch to a far more secure alternative of
> having all customers depositing directly into their singular cold wallet
> address.
> >
> > There are several other more minor advantages such a feature would have,
> including:
> > - Lower fees for exchanges (which could be passed onto customers), by
> reducing a transaction step out of the deposit-to-withdrawal flow.
> > - Less need for large rescans after loading huge amounts of customer
> addresses into client software.
> > - Exchanges can more easily provision deposit addresses to new customers
> in a secure manner, by simply generating a hex or other value, creating an
> integrated address from the cold wallet address, and then providing this to
> the customer.
> > - By providing a singular cold address for exchanges publicly, customers
> can more easily verify that no man-in-the-middle has given them an
> incorrect address to deposit to.
> >
> > The integrated address could work by combining the Bitcoin address
> together with some kind of hex or other value, allowing users to choose the
> amount they wish to deposit themselves, but ensuring their deposits are
> uniquely trackable.
> >
> > I'm not sure if some kind of functionality already exists in BTC, as I
> haven't been able to find it. If not, can I submit a proposal to implement
> this? This feature would be a godsend to all exchange developers if it was
> widely accepted.
> >
> > Thanks for your time.
> >
> > Regards,
> >
> > Nathan Worsley
> > CTO - LocalCoinSwap.Com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20190402/ade34235/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Tue, 2 Apr 2019 16:43:11 -0400
> From: "James O'Beirne" <james.obeirne@gmail.com>
> To: bitcoin-dev@lists.linuxfoundation.org
> Subject: [bitcoin-dev] assumeutxo and UTXO snapshots
> Message-ID:
>         <CAPfvXf+JS6ZhXUieWVxiaNa4uhhWwafCk3odMKy5F_yi=
> XwngA@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> I'd like to discuss assumeutxo, which is an appealing and simple
> optimization in the spirit of assumevalid[0].
>
> # Motivation
>
> To start a fully validating bitcoin client from scratch, that client
> currently
> needs to perform an initial block download. To the surprise of no one, IBD
> takes a linear amount time based on the length of the chain's history. For
> clients running on modest hardware under limited bandwidth constraints,
> say a mobile device, completing IBD takes a considerable amount of time
> and thus poses serious usability challenges.
>
> As a result, having fully validating clients run on such hardware is rare
> and
> basically unrealistic. Clients with even moderate resource constraints
> are encouraged to rely on the SPV trust model. Though we have promising
> improvements to existing SPV modes pending deployment[1], it's worth
> thinking about a mechanism that would allow such clients to use trust
> models closer to full validation.
>
> The subject of this mail is a proposal for a complementary alternative to
> SPV
> modes, and which is in the spirit of an existing default, `assumevalid`. It
> may
> help modest clients transact under a security model that closely resembles
> full validation within minutes instead of hours or days.
>
> # assumeutxo
>
> The basic idea is to allow nodes to initialize using a serialized version
> of the
> UTXO set rendered by another node at some predetermined height. The
> initializing node syncs the headers chain from the network, then obtains
> and
> loads one of these UTXO snapshots (i.e. a serialized version of the UTXO
> set
> bundled with the block header indicating its "base" and some other
> metadata).
>
> Based upon the snapshot, the node is able to quickly reconstruct its
> chainstate,
> and compares a hash of the resulting UTXO set to a preordained hash
> hard-coded
> in the software a la assumevalid. This all takes ~23 minutes, not
> accounting for
> download of the 3.2GB snapshot[2].
>
> The node then syncs to the network tip and afterwards begins a simultaneous
> background validation (i.e., a conventional IBD) up to the base height of
> the
> snapshot in order to achieve full validation. Crucially, even while the
> background validation is happening the node can validate incoming blocks
> and
> transact with the benefit of the full (assumed-valid) UTXO set.
>
> Snapshots could be obtained from multiple separate peers in the same manner
> as
> block download, but I haven't put much thought into this. In concept it
> doesn't
> matter too much where the snapshots come from since their validity is
> determined via content hash.
>
> # Security
>
> Obviously there are some security implications due consideration. While
> this
> proposal is in the spirit of assumevalid, practical attacks may become
> easier.
> Under assumevalid, a user can be tricked into transacting under a false
> history
> if an attacker convinces them to start bitcoind with a malicious
> `-assumevalid`
> parameter, sybils their node, and then feeds them a bogus chain
> encompassing
> all of the hard-coded checkpoints[3].
>
> The same attack is made easier in assumeutxo because, unlike in
> assumevalid,
> the attacker need not construct a valid PoW chain to get the victim's node
> into
> a false state; they simply need to get the user to accept a bad
> `-assumeutxo`
> parameter and then supply them an easily made UTXO snapshot containing,
> say, a
> false coin assignment.
>
> For this reason, I recommend that if we were to implement assumeutxo, we
> not
> allow its specification via commandline argument[4].
>
> Beyond this risk, I can't think of material differences in security
> relative to
> assumevalid, though I appeal to the list for help with this.
>
> # More fully validating clients
>
> A particularly exciting use-case for assumeutxo is the possibility of
> mobile
> devices functioning as fully validating nodes with access to the complete
> UTXO
> set (as an alternative to SPV models). The total resource burden needed to
> start a node
> from scratch based on a snapshot is, at time of writing, a ~(3.2GB
> + blocks_to_tip * 4MB) download and a few minutes of processing time, which
> sounds
> manageable for many mobile devices currently in use.
>
> A mobile user could initialize an assumed-valid bitcoin node within an
> hour,
> transact immediately, and complete a pruned full validation of their
> assumed-valid chain over the next few days, perhaps only doing the
> background
> IBD when their device has access to suitable high-bandwidth connections.
>
> If we end up implementing an accumulator-based UTXO scaling design[5][6]
> down
> the road, it's easy to imagine an analogous process that would allow very
> fast
> startup using an accumulator of a few kilobytes in lieu of a multi-GB
> snapshot.
>
> ---
>
> I've created a related issue at our Github repository here:
>   https://github.com/bitcoin/bitcoin/issues/15605
>
> and have submitted a draft implementation of snapshot usage via RPC here:
>   https://github.com/bitcoin/bitcoin/pull/15606
>
> I'd like to discuss here whether this is a good fit for Bitcoin
> conceptually. Concrete
> plans for deployment steps should be discussed in the Github issue, and
> after all
> that my implementation may be reviewed as a sketch of the specific software
> changes necessary.
>
> Regards,
> James
>
>
> [0]:
> https://bitcoincore.org/en/2017/03/08/release-0.14.0/#assumed-valid-blocks
> [1]: https://github.com/bitcoin/bips/blob/master/bip-0157.mediawiki
> [2]: as tested at height 569895, on a 12 core Intel Xeon Silver 4116 CPU @
> 2.10GHz
> [3]:
>
> https://github.com/bitcoin/bitcoin/blob/84d0fdc/src/chainparams.cpp#L145-L161
> [4]: Marco Falke is due credit for this point
> [5]: utreexo: https://www.youtube.com/watch?v=edRun-6ubCc
> [6]: Boneh, Bunz, Fisch on accumulators: https://eprint.iacr.org/2018/1188
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20190402/46b25dd8/attachment.html
> >
>
> ------------------------------
>
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>
>
> End of bitcoin-dev Digest, Vol 47, Issue 6
> ******************************************
>

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

<div dir=3D"ltr"><div>James,</div><div dir=3D"ltr"><br></div><div>You might=
 be interested by my work which is currently used in production, without an=
y change to bitcoin core.</div><div><br></div><div>I properly explain how t=
o verify the utxoset independently.</div><div><br></div><div dir=3D"ltr"><a=
 href=3D"https://github.com/btcpayserver/btcpayserver-docker/blob/master/co=
ntrib/FastSync/README.md">https://github.com/btcpayserver/btcpayserver-dock=
er/blob/master/contrib/FastSync/README.md</a>=C2=A0=C2=A0<br></div><div dir=
=3D"ltr"><br></div><div>People are using it, since I get around 10 download=
 a day.</div><div>What can be done to help at Bitcoin Core level is actuall=
y very minimal.</div><div><br></div><div>First, instead of asking signers o=
f by UTXOSet to sign the utxoset hash from gettxoutsetinfo, I ask them to s=
ign the hash of the tarball of my UTXO Set.</div><div><br></div><div>The re=
ason is that it is currently impossible to stop BitcoinD on a specific bloc=
k then asking the serialized hash of the UTXO Set.</div><div><br></div><div=
>So instead, a verifier download the tarball (300 blocks + utxoset at speci=
fic height), sync to the latest block, then compare the gettxoutsetinfo of =
the newly synched node with another trusted node. If it match, the verifier=
 sign the tarball.</div><div><br></div><div>I create a new utxoset snapshot=
 every 6 months, so people have time to verify it and add their signatures.=
 (Approximately once every bitcoin core release)</div><div><br></div><div>T=
he easiest thing that could be done at Bitcoin Core level=C2=A0does not req=
uire any code change, but a change in the release process.</div><div><br></=
div><div>The new process would be to ask to the gitian signers to not only =
build the source themselves, but also verify a tarball following the proced=
ure I explain in the link above.</div><div><br></div><div>More complicated =
solution like signing the serialized utxoset itself, while possible, would =
require bothersome code changes.</div><div><br></div><div>Nicolas,</div><br=
><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, A=
pr 3, 2019 at 9:25 AM &lt;<a href=3D"mailto:bitcoin-dev-request@lists.linux=
foundation.org">bitcoin-dev-request@lists.linuxfoundation.org</a>&gt; wrote=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send bitcoin-d=
ev mailing list submissions to<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"mailto:bitcoin-dev@lists.linuxfounda=
tion.org" target=3D"_blank">bitcoin-dev@lists.linuxfoundation.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"https://lists.linuxfoundation.org/ma=
ilman/listinfo/bitcoin-dev" rel=3D"noreferrer" target=3D"_blank">https://li=
sts.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"mailto:bitcoin-dev-request@lists.lin=
uxfoundation.org" target=3D"_blank">bitcoin-dev-request@lists.linuxfoundati=
on.org</a><br>
<br>
You can reach the person managing the list at<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"mailto:bitcoin-dev-owner@lists.linux=
foundation.org" target=3D"_blank">bitcoin-dev-owner@lists.linuxfoundation.o=
rg</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of bitcoin-dev digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
=C2=A0 =C2=A01. BIP: Bitcoin Integrated Address Feature? (<a href=3D"mailto=
:nathanw@tutanota.com" target=3D"_blank">nathanw@tutanota.com</a>)<br>
=C2=A0 =C2=A02. Re: BIP: Bitcoin Integrated Address Feature? (htimSxelA)<br=
>
=C2=A0 =C2=A03. assumeutxo and UTXO snapshots (James O&#39;Beirne)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 2 Apr 2019 18:53:11 +0200 (CEST)<br>
From: &lt;<a href=3D"mailto:nathanw@tutanota.com" target=3D"_blank">nathanw=
@tutanota.com</a>&gt;<br>
To: &lt;<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"=
_blank">bitcoin-dev@lists.linuxfoundation.org</a>&gt;<br>
Subject: [bitcoin-dev] BIP: Bitcoin Integrated Address Feature?<br>
Message-ID: &lt;<a href=3D"mailto:LbTxyE4--3-1@tutanota.com" target=3D"_bla=
nk">LbTxyE4--3-1@tutanota.com</a>&gt;<br>
Content-Type: text/plain; charset=3D&quot;utf-8&quot;<br>
<br>
To whom it may concern,<br>
<br>
I believe a missing feature in Bitcoin is the ability to have an &quot;inte=
grated address&quot;, where the address resolves into a Bitcoin address, an=
d also a transaction message or some other kind of identifier.<br>
<br>
By having this feature we could enhance the security of exchange cold-walle=
t systems, by allowing them to easily receive all payments to a single addr=
ess from an infinite number of customers. We would also greatly simplify th=
e process of setting up and managing exchange cold-wallet systems, because =
we would eliminate the &quot;sweeping&quot; step required to move multiple =
customer deposits from a hot address into a single cold address.<br>
<br>
Although it would be nice to have all customers deposit directly into cold =
addresses, this quickly becomes impractical when large amounts of customers=
 begin to use exchange wallets as their personal web-wallet, frequently dep=
ositing and withdrawing without trading action. You end up needing to have =
a staff member moving funds away from cold deposit addresses as a full time=
 job - if you wish to handle customer funds in a completely secure manner.<=
br>
<br>
Thus we see that most exchanges now use the hot-deposit system, where custo=
mers deposit into a hot address that is then automatically swept into a sin=
gular cold address, by a service which holds customers private keys online.=
 You can observe this service at work simply by making a deposit to most ma=
jor exchanges (including the largest exchange Binance), as you will see the=
 funds quickly being &quot;swept&quot; to their cold wallet address in a ma=
nner which heavily suggests automation by a program which possesses private=
 keys to the address you are sending funds to. This means there is always t=
he danger of a sophisticated hacker being able to capture private keys to c=
ustomer deposit addresses (as they are clearly being held online). An integ=
rated address would allow all exchanges using this automated hot-deposit se=
rvice to easily switch to a far more secure alternative of having all custo=
mers depositing directly into their singular cold wallet address.<br>
<br>
There are several other more minor advantages such a feature would have, in=
cluding:<br>
- Lower fees for exchanges (which could be passed onto customers), by reduc=
ing a transaction step out of the deposit-to-withdrawal flow.<br>
- Less need for large rescans after loading huge amounts of customer addres=
ses into client software.<br>
- Exchanges can more easily provision deposit addresses to new customers in=
 a secure manner, by simply generating a hex or other value, creating an in=
tegrated address from the cold wallet address, and then providing this to t=
he customer.<br>
- By providing a singular cold address for exchanges publicly, customers ca=
n more easily verify that no man-in-the-middle has given them an incorrect =
address to deposit to.<br>
The integrated address could work by combining the Bitcoin address together=
 with some kind of hex or other value, allowing users to choose the amount =
they wish to deposit themselves, but ensuring their deposits are uniquely t=
rackable.<br>
<br>
I&#39;m not sure if some kind of functionality already exists in BTC, as I =
haven&#39;t been able to find it. If not, can I submit a proposal to implem=
ent this? This feature would be a godsend to all exchange developers if it =
was widely accepted.<br>
<br>
Thanks for your time.<br>
Regards,<br>
<br>
Nathan Worsley<br>
CTO - LocalCoinSwap.Com<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href=3D"http://lists.linuxfoundation.org/pipermail/bitcoin-dev/=
attachments/20190402/400c1e1b/attachment-0001.html" rel=3D"noreferrer" targ=
et=3D"_blank">http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attach=
ments/20190402/400c1e1b/attachment-0001.html</a>&gt;<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 02 Apr 2019 20:01:34 +0000<br>
From: htimSxelA &lt;<a href=3D"mailto:htimsxela@protonmail.com" target=3D"_=
blank">htimsxela@protonmail.com</a>&gt;<br>
To: &quot;<a href=3D"mailto:nathanw@tutanota.com" target=3D"_blank">nathanw=
@tutanota.com</a>&quot; &lt;<a href=3D"mailto:nathanw@tutanota.com" target=
=3D"_blank">nathanw@tutanota.com</a>&gt;,=C2=A0 =C2=A0 =C2=A0 Bitcoin Proto=
col<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Discussion &lt;<a href=3D"mailto:bitcoin-dev@li=
sts.linuxfoundation.org" target=3D"_blank">bitcoin-dev@lists.linuxfoundatio=
n.org</a>&gt;<br>
Subject: Re: [bitcoin-dev] BIP: Bitcoin Integrated Address Feature?<br>
Message-ID:<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 &lt;wtbAF1FAGePDAkY3xkqANuFJtAhEXvz0JeGWnc_OZcG=
EyFQb-1B590I3IbwtW2FBivur0yONbSQtxaWqiQTJeoDdadivtbGkWwJnLnnzQQE=3D@<a href=
=3D"http://protonmail.com" rel=3D"noreferrer" target=3D"_blank">protonmail.=
com</a>&gt;<br>
<br>
Content-Type: text/plain; charset=3D&quot;utf-8&quot;<br>
<br>
Hello,<br>
<br>
I see two immediate issues with this:<br>
1. Increased resource requirements per transaction<br>
2. Embedding identifying information into the blockchain is generally bad f=
or privacy<br>
<br>
It may help your case to provide some technical details of how you&#39;d li=
ke to see this implemented, but without overcoming the issues mentioned abo=
ve I think this proposal will be a very tough sell.<br>
<br>
&gt; ...this quickly becomes impractical when large amounts of customers be=
gin to use exchange wallets as their personal web-wallet, frequently deposi=
ting and withdrawing without trading action. You end up needing to have a s=
taff member moving funds away from cold deposit addresses as a full time jo=
b - if you wish to handle customer funds in a completely secure manner.<br>
<br>
I am not sure if I see how this issue is solved by your proposal. Assumedly=
, a human will still need to manually approve cold-wallet withdrawals in or=
der to maintain security. So it seems to me that removing the &#39;hot-wall=
et&#39; component of the backend would only amplify the need for human inte=
raction.<br>
<br>
I assume you are familiar with hierarchical deterministic wallets? They can=
 allow an exchange to assign/identify user deposits based on address deriva=
tion path. Keys for deposit addresses can be kept offline if wanted, and a =
proper implementation of an HD wallet system should also remove the need fo=
r rescans of user deposit addresses.<br>
<br>
There is also a functionality built into Bitcoin that allows a user to prov=
e that they own the private keys to some address: signing an agreed upon me=
ssage using the private key that controls that address. Unfortunately I don=
&#39;t think this is a workable solution for you, since the majority of mod=
ern wallet software does not include this feature-- but perhaps worth menti=
oning nonetheless.<br>
<br>
Best,<br>
Alex<br>
<br>
??????? Original Message ???????<br>
On Tuesday, April 2, 2019 9:53 AM, Nathan Worsley via bitcoin-dev &lt;<a hr=
ef=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_blank">bitco=
in-dev@lists.linuxfoundation.org</a>&gt; wrote:<br>
<br>
&gt; To whom it may concern,<br>
&gt;<br>
&gt; I believe a missing feature in Bitcoin is the ability to have an &quot=
;integrated address&quot;, where the address resolves into a Bitcoin addres=
s, and also a transaction message or some other kind of identifier.<br>
&gt;<br>
&gt; By having this feature we could enhance the security of exchange cold-=
wallet systems, by allowing them to easily receive all payments to a single=
 address from an infinite number of customers. We would also greatly simpli=
fy the process of setting up and managing exchange cold-wallet systems, bec=
ause we would eliminate the &quot;sweeping&quot; step required to move mult=
iple customer deposits from a hot address into a single cold address.<br>
&gt;<br>
&gt; Although it would be nice to have all customers deposit directly into =
cold addresses, this quickly becomes impractical when large amounts of cust=
omers begin to use exchange wallets as their personal web-wallet, frequentl=
y depositing and withdrawing without trading action. You end up needing to =
have a staff member moving funds away from cold deposit addresses as a full=
 time job - if you wish to handle customer funds in a completely secure man=
ner.<br>
&gt;<br>
&gt; Thus we see that most exchanges now use the hot-deposit system, where =
customers deposit into a hot address that is then automatically swept into =
a singular cold address, by a service which holds customers private keys on=
line. You can observe this service at work simply by making a deposit to mo=
st major exchanges (including the largest exchange Binance), as you will se=
e the funds quickly being &quot;swept&quot; to their cold wallet address in=
 a manner which heavily suggests automation by a program which possesses pr=
ivate keys to the address you are sending funds to. This means there is alw=
ays the danger of a sophisticated hacker being able to capture private keys=
 to customer deposit addresses (as they are clearly being held online). An =
integrated address would allow all exchanges using this automated hot-depos=
it service to easily switch to a far more secure alternative of having all =
customers depositing directly into their singular cold wallet address.<br>
&gt;<br>
&gt; There are several other more minor advantages such a feature would hav=
e, including:<br>
&gt; - Lower fees for exchanges (which could be passed onto customers), by =
reducing a transaction step out of the deposit-to-withdrawal flow.<br>
&gt; - Less need for large rescans after loading huge amounts of customer a=
ddresses into client software.<br>
&gt; - Exchanges can more easily provision deposit addresses to new custome=
rs in a secure manner, by simply generating a hex or other value, creating =
an integrated address from the cold wallet address, and then providing this=
 to the customer.<br>
&gt; - By providing a singular cold address for exchanges publicly, custome=
rs can more easily verify that no man-in-the-middle has given them an incor=
rect address to deposit to.<br>
&gt;<br>
&gt; The integrated address could work by combining the Bitcoin address tog=
ether with some kind of hex or other value, allowing users to choose the am=
ount they wish to deposit themselves, but ensuring their deposits are uniqu=
ely trackable.<br>
&gt;<br>
&gt; I&#39;m not sure if some kind of functionality already exists in BTC, =
as I haven&#39;t been able to find it. If not, can I submit a proposal to i=
mplement this? This feature would be a godsend to all exchange developers i=
f it was widely accepted.<br>
&gt;<br>
&gt; Thanks for your time.<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Nathan Worsley<br>
&gt; CTO - LocalCoinSwap.Com<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href=3D"http://lists.linuxfoundation.org/pipermail/bitcoin-dev/=
attachments/20190402/ade34235/attachment-0001.html" rel=3D"noreferrer" targ=
et=3D"_blank">http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attach=
ments/20190402/ade34235/attachment-0001.html</a>&gt;<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 2 Apr 2019 16:43:11 -0400<br>
From: &quot;James O&#39;Beirne&quot; &lt;<a href=3D"mailto:james.obeirne@gm=
ail.com" target=3D"_blank">james.obeirne@gmail.com</a>&gt;<br>
To: <a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_bla=
nk">bitcoin-dev@lists.linuxfoundation.org</a><br>
Subject: [bitcoin-dev] assumeutxo and UTXO snapshots<br>
Message-ID:<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 &lt;CAPfvXf+JS6ZhXUieWVxiaNa4uhhWwafCk3odMKy5F_=
yi=3D<a href=3D"mailto:XwngA@mail.gmail.com" target=3D"_blank">XwngA@mail.g=
mail.com</a>&gt;<br>
Content-Type: text/plain; charset=3D&quot;utf-8&quot;<br>
<br>
Hi,<br>
<br>
I&#39;d like to discuss assumeutxo, which is an appealing and simple<br>
optimization in the spirit of assumevalid[0].<br>
<br>
# Motivation<br>
<br>
To start a fully validating bitcoin client from scratch, that client<br>
currently<br>
needs to perform an initial block download. To the surprise of no one, IBD<=
br>
takes a linear amount time based on the length of the chain&#39;s history. =
For<br>
clients running on modest hardware under limited bandwidth constraints,<br>
say a mobile device, completing IBD takes a considerable amount of time<br>
and thus poses serious usability challenges.<br>
<br>
As a result, having fully validating clients run on such hardware is rare<b=
r>
and<br>
basically unrealistic. Clients with even moderate resource constraints<br>
are encouraged to rely on the SPV trust model. Though we have promising<br>
improvements to existing SPV modes pending deployment[1], it&#39;s worth<br=
>
thinking about a mechanism that would allow such clients to use trust<br>
models closer to full validation.<br>
<br>
The subject of this mail is a proposal for a complementary alternative to<b=
r>
SPV<br>
modes, and which is in the spirit of an existing default, `assumevalid`. It=
<br>
may<br>
help modest clients transact under a security model that closely resembles<=
br>
full validation within minutes instead of hours or days.<br>
<br>
# assumeutxo<br>
<br>
The basic idea is to allow nodes to initialize using a serialized version<b=
r>
of the<br>
UTXO set rendered by another node at some predetermined height. The<br>
initializing node syncs the headers chain from the network, then obtains an=
d<br>
loads one of these UTXO snapshots (i.e. a serialized version of the UTXO se=
t<br>
bundled with the block header indicating its &quot;base&quot; and some othe=
r<br>
metadata).<br>
<br>
Based upon the snapshot, the node is able to quickly reconstruct its<br>
chainstate,<br>
and compares a hash of the resulting UTXO set to a preordained hash<br>
hard-coded<br>
in the software a la assumevalid. This all takes ~23 minutes, not<br>
accounting for<br>
download of the 3.2GB snapshot[2].<br>
<br>
The node then syncs to the network tip and afterwards begins a simultaneous=
<br>
background validation (i.e., a conventional IBD) up to the base height of<b=
r>
the<br>
snapshot in order to achieve full validation. Crucially, even while the<br>
background validation is happening the node can validate incoming blocks an=
d<br>
transact with the benefit of the full (assumed-valid) UTXO set.<br>
<br>
Snapshots could be obtained from multiple separate peers in the same manner=
<br>
as<br>
block download, but I haven&#39;t put much thought into this. In concept it=
<br>
doesn&#39;t<br>
matter too much where the snapshots come from since their validity is<br>
determined via content hash.<br>
<br>
# Security<br>
<br>
Obviously there are some security implications due consideration. While thi=
s<br>
proposal is in the spirit of assumevalid, practical attacks may become<br>
easier.<br>
Under assumevalid, a user can be tricked into transacting under a false<br>
history<br>
if an attacker convinces them to start bitcoind with a malicious<br>
`-assumevalid`<br>
parameter, sybils their node, and then feeds them a bogus chain encompassin=
g<br>
all of the hard-coded checkpoints[3].<br>
<br>
The same attack is made easier in assumeutxo because, unlike in assumevalid=
,<br>
the attacker need not construct a valid PoW chain to get the victim&#39;s n=
ode<br>
into<br>
a false state; they simply need to get the user to accept a bad<br>
`-assumeutxo`<br>
parameter and then supply them an easily made UTXO snapshot containing,<br>
say, a<br>
false coin assignment.<br>
<br>
For this reason, I recommend that if we were to implement assumeutxo, we no=
t<br>
allow its specification via commandline argument[4].<br>
<br>
Beyond this risk, I can&#39;t think of material differences in security<br>
relative to<br>
assumevalid, though I appeal to the list for help with this.<br>
<br>
# More fully validating clients<br>
<br>
A particularly exciting use-case for assumeutxo is the possibility of mobil=
e<br>
devices functioning as fully validating nodes with access to the complete<b=
r>
UTXO<br>
set (as an alternative to SPV models). The total resource burden needed to<=
br>
start a node<br>
from scratch based on a snapshot is, at time of writing, a ~(3.2GB<br>
+ blocks_to_tip * 4MB) download and a few minutes of processing time, which=
<br>
sounds<br>
manageable for many mobile devices currently in use.<br>
<br>
A mobile user could initialize an assumed-valid bitcoin node within an hour=
,<br>
transact immediately, and complete a pruned full validation of their<br>
assumed-valid chain over the next few days, perhaps only doing the<br>
background<br>
IBD when their device has access to suitable high-bandwidth connections.<br=
>
<br>
If we end up implementing an accumulator-based UTXO scaling design[5][6]<br=
>
down<br>
the road, it&#39;s easy to imagine an analogous process that would allow ve=
ry<br>
fast<br>
startup using an accumulator of a few kilobytes in lieu of a multi-GB<br>
snapshot.<br>
<br>
---<br>
<br>
I&#39;ve created a related issue at our Github repository here:<br>
=C2=A0 <a href=3D"https://github.com/bitcoin/bitcoin/issues/15605" rel=3D"n=
oreferrer" target=3D"_blank">https://github.com/bitcoin/bitcoin/issues/1560=
5</a><br>
<br>
and have submitted a draft implementation of snapshot usage via RPC here:<b=
r>
=C2=A0 <a href=3D"https://github.com/bitcoin/bitcoin/pull/15606" rel=3D"nor=
eferrer" target=3D"_blank">https://github.com/bitcoin/bitcoin/pull/15606</a=
><br>
<br>
I&#39;d like to discuss here whether this is a good fit for Bitcoin<br>
conceptually. Concrete<br>
plans for deployment steps should be discussed in the Github issue, and<br>
after all<br>
that my implementation may be reviewed as a sketch of the specific software=
<br>
changes necessary.<br>
<br>
Regards,<br>
James<br>
<br>
<br>
[0]:<br>
<a href=3D"https://bitcoincore.org/en/2017/03/08/release-0.14.0/#assumed-va=
lid-blocks" rel=3D"noreferrer" target=3D"_blank">https://bitcoincore.org/en=
/2017/03/08/release-0.14.0/#assumed-valid-blocks</a><br>
[1]: <a href=3D"https://github.com/bitcoin/bips/blob/master/bip-0157.mediaw=
iki" rel=3D"noreferrer" target=3D"_blank">https://github.com/bitcoin/bips/b=
lob/master/bip-0157.mediawiki</a><br>
[2]: as tested at height 569895, on a 12 core Intel Xeon Silver 4116 CPU @<=
br>
2.10GHz<br>
[3]:<br>
<a href=3D"https://github.com/bitcoin/bitcoin/blob/84d0fdc/src/chainparams.=
cpp#L145-L161" rel=3D"noreferrer" target=3D"_blank">https://github.com/bitc=
oin/bitcoin/blob/84d0fdc/src/chainparams.cpp#L145-L161</a><br>
[4]: Marco Falke is due credit for this point<br>
[5]: utreexo: <a href=3D"https://www.youtube.com/watch?v=3DedRun-6ubCc" rel=
=3D"noreferrer" target=3D"_blank">https://www.youtube.com/watch?v=3DedRun-6=
ubCc</a><br>
[6]: Boneh, Bunz, Fisch on accumulators: <a href=3D"https://eprint.iacr.org=
/2018/1188" rel=3D"noreferrer" target=3D"_blank">https://eprint.iacr.org/20=
18/1188</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href=3D"http://lists.linuxfoundation.org/pipermail/bitcoin-dev/=
attachments/20190402/46b25dd8/attachment.html" rel=3D"noreferrer" target=3D=
"_blank">http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments=
/20190402/46b25dd8/attachment.html</a>&gt;<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_blank">=
bitcoin-dev@lists.linuxfoundation.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" =
rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.org/mail=
man/listinfo/bitcoin-dev</a><br>
<br>
<br>
End of bitcoin-dev Digest, Vol 47, Issue 6<br>
******************************************<br>
</blockquote></div></div>

--000000000000dbf57405859b8472--