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
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
|
Return-Path: <jlrubin@mit.edu>
Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])
by lists.linuxfoundation.org (Postfix) with ESMTP id C2497C0177
for <bitcoin-dev@lists.linuxfoundation.org>;
Fri, 14 Feb 2020 20:07:33 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by fraxinus.osuosl.org (Postfix) with ESMTP id A6D4F86A6C
for <bitcoin-dev@lists.linuxfoundation.org>;
Fri, 14 Feb 2020 20:07:33 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
Received: from fraxinus.osuosl.org ([127.0.0.1])
by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id FJ2dVX1M8ZcC
for <bitcoin-dev@lists.linuxfoundation.org>;
Fri, 14 Feb 2020 20:07:30 +0000 (UTC)
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])
by fraxinus.osuosl.org (Postfix) with ESMTPS id DEF7886A63
for <bitcoin-dev@lists.linuxfoundation.org>;
Fri, 14 Feb 2020 20:07:29 +0000 (UTC)
Received: from mail-io1-f54.google.com (mail-io1-f54.google.com
[209.85.166.54]) (authenticated bits=0)
(User authenticated as jlrubin@ATHENA.MIT.EDU)
by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 01EK7RH4002011
(version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT)
for <bitcoin-dev@lists.linuxfoundation.org>; Fri, 14 Feb 2020 15:07:28 -0500
Received: by mail-io1-f54.google.com with SMTP id d15so11892781iog.3
for <bitcoin-dev@lists.linuxfoundation.org>;
Fri, 14 Feb 2020 12:07:28 -0800 (PST)
X-Gm-Message-State: APjAAAU6HD98jRIfMzM/Vl2u6uhif+blwd6BmCSi1UOjC14BjURoiqMw
i2/2iDn+eink3RKeQqBO2Ps+4ubIoTSl1C195UE=
X-Google-Smtp-Source: APXvYqzvpOMoZWATvEXsa5ulVVhxeZ8rsbZgyC5K3SVYtJVku81yQ1DOoi9yGmqmomJWYR7JttazoGuxzej2xfMhqzw=
X-Received: by 2002:a6b:6103:: with SMTP id v3mr3764072iob.49.1581710847192;
Fri, 14 Feb 2020 12:07:27 -0800 (PST)
MIME-Version: 1.0
References: <CABaSBaxgdfeyPrnaJD+Gs-5agV4sX+b66ZA6AfkjiHvuE0JSXA@mail.gmail.com>
<CABaSBawPJnoxf+9A0ocG_yec2fga+e1w2tk8_Tr6oj+FomDZZQ@mail.gmail.com>
<d42234f4-411c-40a6-dcb8-b9408c21ef16@gmail.com>
In-Reply-To: <d42234f4-411c-40a6-dcb8-b9408c21ef16@gmail.com>
From: Jeremy <jlrubin@mit.edu>
Date: Fri, 14 Feb 2020 12:07:15 -0800
X-Gmail-Original-Message-ID: <CAD5xwhh=71XDAcSCJL9AQhZOriWmdGq4C5xT34K5wjR_g7FDfA@mail.gmail.com>
Message-ID: <CAD5xwhh=71XDAcSCJL9AQhZOriWmdGq4C5xT34K5wjR_g7FDfA@mail.gmail.com>
To: Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: multipart/alternative; boundary="0000000000002f338d059e8ec18c"
X-Mailman-Approved-At: Fri, 14 Feb 2020 20:13:29 +0000
Subject: Re: [bitcoin-dev] Taproot (and graftroot) complexity (reflowed)
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
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: Fri, 14 Feb 2020 20:07:33 -0000
--0000000000002f338d059e8ec18c
Content-Type: text/plain; charset="UTF-8"
Dave,
I think your point:
*When schnorr and taproot are done together, all of the following
transaction types can be part of the same set: - single-sig spends
(similar to current use of P2PKH and P2WPKH) - n-of-n spends with musig
or equivalent (similar to current use of P2SH and P2WSH 2-of-2
multisig without special features as used by Blockstream Green and LN
mutual closes) - k-of-n (for low values of n) using the most common k
signers (similar to BitGo-style 2-of-3 where the keys involved are
alice_hot, alice_cold, and bob_hot and almost all transactions are
expected to be signed by {alice_hot, bob_hot}; that common case can
be the key-path spend and the alternatives {alice_hot, alice_cold}
and {alice_cold, bob_hot} can be script-path spends) - contract
protocols that can sometimes result in all parties agreeing on an
outcome (similar to LN mutual closes, cross-chain atomic swaps, and
same-chain coinswaps) *
Is the same if Schnorr + Merkle Branch without Taproot optimization, unless
I'm missing something in one of the cases? I guess there's a distinction on
"can" v.s. "are likely"?
Jonas,
That's a really interesting point about K-N systems making the most likely
K-K the taproot key. (For the uninitiated, MuSig can do N-of-N aggregation
non-interactively, but K-of-N requires interaction). I think this works
with small (N choose K), but as (N choose K) increases it seems the
probability of picking the correct one goes down?
I guess the critical question is if cases where there's not some timelock
will be mandatory across all signing paths.
cheers,
jeremy
--
@JeremyRubin <https://twitter.com/JeremyRubin>
<https://twitter.com/JeremyRubin>
On Mon, Feb 10, 2020 at 9:16 AM Jonas Nick via bitcoin-dev <
bitcoin-dev@lists.linuxfoundation.org> wrote:
> I agree with most of the comments so far, but the group brings up an often
> overlooked point with respect to the privacy benefits of taproot. In the
> extreme
> case, if there would be no policies that have both a key and a script spend
> path, then taproot does not improve anonymity sets compared to the "Taproot
> Public NUMS Optimization" proposal (which saves 8 vbytes in a
> script-spend). (*)
>
> In fact, the cases where scripts would have to be used given usage of
> Bitcoin
> today are be rare because threshold policies, their conjunctions and
> disjunctions can be expressed with a single public key. Even if we
> disregard
> speculation that timelocks, ANYPREVOUT/NOINPUT and other interesting
> scripts
> will be used in the future (which can be added through the leaf or key
> versions
> without affecting key-spend anonymity sets), not all of today's
> applications are
> able to be represented single public keys because there are applications
> that
> can not deal with interactive key setups or interactive signing. For
> applications where this is possible it will be a gradual change because of
> the
> engineering challenges involved. For example, k-of-n threshold policies
> could
> have the most likely k-of-k in the taproot output key and other k-of-k in
> the
> leaves, instead of going for a k-of-n taproot output key immediately.
>
> Given that anonymity sets in Bitcoin are permanent and software tends to be
> deployed longer than anyone would expect at the time of deployment,
> realistically Taproot is superior to the "Public NUMS Optimization" and "An
> Alternative Deployment Path".
>
> (*) One could argue that the little plausible deniability gained by a very
> small
> probability of the change of a script-spend being a key-spend and vice
> versa is
> significantly better than no probability at all.
>
> On 2/9/20 8:47 PM, Bryan Bishop via bitcoin-dev wrote:
> > Apologies for my previous attempt at relaying the message- it looks like
> > the emails got mangled on the archive. I am re-sending them in this
> > combined email with what I hope will be better formatting. Again this is
> > from some nym that had trouble posting to this mailing list; I didn't see
> > any emails in the queue so I couldn't help to publish this sooner.
> >
> > SUBJECT: Taproot (and Graftroot) Complexity
> >
> > This email is the first of a collection of sentiments from a group of
> > developers who in aggregate prefer to remain anonymous. These emails have
> > been sent under a pseudonym so as to keep the focus of discussion on the
> > merits of the technical issues, rather than miring the discussion in
> > personal politics. Our goal isn't to cause a schism, but rather to help
> > figure out what the path forward is with Taproot. To that end, we:
> >
> > 1) Discuss the merits of Taproot's design versus simpler alternatives
> (see
> > thread subject, "Taproot (and Graftroot) Complexity").
> >
> > 2) Propose an alternative path to deploying the technologies described in
> > BIP-340, BIP-341, and BIP-342 (see thread subject, "An Alternative
> > Deployment Path for Taproot Technologies").
> >
> > 3) Suggest a modification to Taproot to reduce some of the overhead (see
> > thread subject, "Taproot Public NUMS Optimization").
> >
> > Now that the BIP has moved to draft we felt that now was the time to
> > prioritize review to make sure it was an acceptable change for our
> > activities. As a group, we're excited about the totality of what Taproot
> > has to offer. However, after our review, we're left perplexed about the
> > development of Taproot (and Graftroot, to a lesser extent).
> >
> > We also want to convey that we have nothing but respect for the
> developers
> > and community who have poured their heart and soul into preparing
> Taproot.
> > Self evidently, it is an impressive synthesis of ideas. We believe that
> the
> > highest form of respect to pay such a synthesis of ideas is a detailed
> and
> > critical review, as it's pertinent to closely consider changes to
> Bitcoin.
> >
> >
> > In essence, Taproot is fundamentally the same as doing
> > https://github.com/bitcoin/bips/blob/master/bip-0114.mediawiki and
> Schnorr
> > signatures separately.
> >
> > The main reason for putting them together -- as mentioned in the BIP --
> is
> > a gain in efficiency. But this efficiency pre-supposes a specific use
> case
> > and probability distribution of use cases.
> >
> > Compare:
> >
> > Suppose a MAST for {a,b,c,d,e,f,g,h} spending conditions it looks
> something
> > like this:
> >
> >
> > /\
> > / \
> > / \
> > / \
> > /\ /\
> > / \ / \
> > /\ /\ /\ /\
> > a b c d e f g h
> >
> > If we want this to be functionally equivalent to Taproot, we add a new
> path:
> >
> > /\
> > /\ {<pk> schnorr_checksig}
> > / \
> > / \
> > / \
> > /\ /\
> > / \ / \
> > /\ /\ /\ /\
> > a b c d e f g h
> >
> > Now, to spend from this MBV you have to reveal 32 bytes on the stack for
> > the not taken branch, and 35 bytes for the <pk> schnorr_checksig (1 byte
> > push, 33 bytes PK, 1 byte checksig).
> >
> > This is 67 bytes more than Taproot would require for the same spending
> > condition.
> >
> > However, suppose we wanted to use one of the script paths instead. We
> still
> > need to have one extra hash for the {<pk> schnorr_checksig} (depending on
> > if we put the key in this position or not--see below). But now we can
> spend
> > with just a logarithmic control program path.
> >
> > However, if we do the same script via taproot, we now need to provide the
> > base public key (33 bytes) as well as the root hash (32 bytes) and path
> and
> > then the actual scripts. With the need for 2 push bytes, this ends up
> being
> > back at 67 bytes extra.
> >
> > Is Taproot just a probability assumption about the frequency and
> likelihood
> > of the signature case over the script case? Is this a good assumption?
> The
> > BIP only goes as far as to claim that the advantage is apparent if the
> > outputs *could be spent* as an N of N, but doesn't make representations
> > about how likely that N of N case would be in practice compared to the
> > script paths. Perhaps among use cases, more than half of the ones we
> expect
> > people to be doing could be spent as an N of N. But how frequently would
> > that path get used? Further, while the *use cases* might skew toward
> things
> > with N of N opt-out, we might end up in a power law case where it's the
> one
> > case that doesn't use an N of N opt out at all (or at a de minimis level)
> > that becomes very popular, thereby making Taproot more costly then
> > beneficial.
> >
> > Further, if you don't want to use a Taproot top-level key (e.g., you need
> > to be able to audit that no one can spend outside of one of the script
> > conditions), then you need to use a NUMS (nothing up my sleeve) point.
> This
> > forces users who don't want Taproot to pay the expense, when if they just
> > had a MAST based witness type they would be cheaper. So if this use case
> is
> > at all common, Taproot leaves them worse off in terms of fees. Given that
> > script paths are usually done in the case where there is some contested
> > close, it's actually in the interest of protocol developers that the
> > contested script path be as efficient as possible so that the fees paid
> > maximally increase the feerate. We think this can be fixed simply in
> > Taproot though, as noted below.
> >
> >
> >
> > On privacy, we're also a bit confused as to the goal of Taproot over MAST
> > and Schnorr. Earlier, we presented a design with MAST which is very close
> > to Taproot. However, it'd also be possible to just add {<pk>
> > schnorr_checksig} to the set {a,b,c,d,e,f,g,h}, shuffle them, and compute
> > some MAST structure (perhaps probability encoded) on them. This has the
> > effect of not having much additional fees for adding the extra Schnorr
> path
> > at redeem time (only 1 extra branch on 2/8 script paths), e.g.
> >
> >
> > /\
> > / \
> > / \
> > / \
> > /\ /\
> > / \ / \
> > /\ /\ /\ /\
> > a b c d e f/\ {<pk> schnorr_checksig}
> > g h
> >
> > We could argue that this is more private than Taproot, because we don't
> > distinguish between the Schnorr key case and other cases by default, so
> > chain analyzers can't tell if the signature came from the Taproot case or
> > from one of the Script paths. There's also no NUMS point required, which
> > means chain analyzers can't tell when you spend that there was no top
> level
> > key if the NUMS point is not per-output indistinguishable. By using a
> > semi-randomized MAST structure, chain analyzers also can't tell exactly
> how
> > big your spend condition MAST was. In particular, you care more about
> > privacy when you are contesting a close of a channel or other script path
> > because then the miners could be more likely to extract a rent from you
> as
> > "ransom" for properly closing your channel (or in other words, in a
> > contested close the value of the closing transaction is larger than
> usual).
> >
> > It would also be possible to do something really simple which is to allow
> > the witness type to be either a MAST hash OR a schnorr key (but not a
> > Taproot). This allows you to not completely fracture the anonymity set
> > between people who want plain Schnorr and people who want MAST (at least
> > until they go to spend). This fix can also be used in Taproot in place
> of a
> > NUMS point, to decrease extra fees. It's unclear if this plays negatively
> > with any future batch validation mechanism though, but the contextual
> > checks to exclude a witness program from the batch are relatively simple.
> > See thread subject, "Taproot Public NUMS Optimization".
> >
> > The considerations around Graftroot, a proposed delegation mechanism, is
> a
> > bit similar. Delegation is a mechanism by which a UTXO with script S can
> > sign a script R which can then be executed in addition to S without
> > requiring a transaction. This allows an output to monotonically and
> > dynamically increase the number of conditions under which it can be
> spent.
> > As noted by Pieter Wiulle here:
> >
> https://github.com/kanzure/diyhpluswiki/commit/a03f6567d714f8733b578de263a4b149441cd058
> > delegation was originally possible in Bitcoin, but got broken during an
> > emergency fork to split the scriptSig and scriptpubkey separation. Rather
> > than adding some fancy delegation mechanism in Bitcoin, why not just
> have a
> > P2SH-like semantic which allows a delegated script to be evaluated? See
> > BIP-117 https://github.com/bitcoin/bips/blob/master/bip-0117.mediawiki.
> > This way we aren't special casing where delegation can occur, and we can
> > allow taproot nested spending conditions (i.e., with timelocks) to
> generate
> > their own delegations. As I've seen Graftroot discussed thus far, it is
> as
> > a top-level witness program version like Taproot and non-recursive.
> Similar
> > to the above discussion, top-level is more efficient if you suspect that
> > delegation will be most likely occurring at the top level, but it's not
> > clear that's a good assumption as it may be common to want to allow
> > different scripts to delegate.
> >
> >
> > Overall, we are left with concerns both about the merit of doing Taproot
> > versus alternatives, as well as the process through which we got to be
> here.
> >
> > 1) Is Taproot actually more private than bare MAST and Schnorr
> separately?
> > What are the actual anonymity set benefits compared to doing the
> separately?
> >
> > 2) Is Taproot actually cheaper than bare MAST and Schnorr separately?
> What
> > evidence do we have that the assumption it will be more common to use
> > Taproot with a key will outweigh Script cases?
> >
> > 3) Is Taproot riskier than bare MAST and Schnorr separately given the new
> > crypto? How well reviewed is the actual crypto parts? None of us
> personally
> > feel comfortable reviewing the crypto in Schnorr -- what's the set of
> > people who have thoroughly reviewed the crypto and aren't just ACKing
> > because they trust other developers to have looked at it close enough?
> >
> > 4) Design wise, couldn't we forego the NUMS point requirement and be able
> > to check if it's a hash root directly? This would encumber users who
> don't
> > need the key path a cheaper spend path. See thread subject, "Taproot
> Public
> > NUMS Optimization".
> >
> > 5) Is the development model of trying to jam a bunch of features into
> > Bitcoin all at once good for Bitcoin development? Would we be better off
> if
> > we embraced incremental improvements that can work together (e.g., MAST
> and
> > then Schnorr)? Although the BIP raises some points about anonymity sets
> > being why to do them all at once, it's not clear to me this argument
> holds
> > water (same goes for businesses not upgrading). If we can take things as
> > smaller steps, we are not only more secure, but we also have more time to
> > dedicate review to each change independently. We also end up co-mingling
> > changes that people end up accepting only because they want one and
> they're
> > bundled (e.g., MAST and Schnorr, MAST seems like a much less risky
> addition
> > versus Schnorr). See thread subject, "An Alternative Deployment Path for
> > Taproot Technologies".
> >
> >
> >
> >
> > Our provocation with this email is primarily that we think we should more
> > carefully consider the benefits of Taproot over simpler primitives that
> are
> > not only easier to review, but could have been made available much sooner
> > rather than waiting on putting everything all together for an unclear
> > aggregate benefit.
> >
> > We do think that most of the developers have been honest about the
> benefits
> > of Taproot, but that on closer look we feel the general ecosystem has
> > oversold Taproot as being the key enabler for a collection of techniques
> > that we could do with much simpler building blocks.
> >
> >
> > At the end of the day, we do not strongly advocate not deploying Taproot
> at
> > this point in the review cycle. We think the Taproot Public NUMS
> > Optimization may be a good idea, worth considering if it's not insecure,
> as
> > it cuts through the case where you would otherwise need a NUMS point.
> > Things like TapScript and its MAST mechanisms are well designed and offer
> > exciting new deployment paths, and would be something we would use even
> if
> > we opted for MAST instead of Taproot. However, we also believe it is our
> > duty to raise these concerns and suggestions, and we look forward to
> > listening to the responses of the community.
> >
> > Great thanks,
> >
> > The Group
> >
> > ----
> >
> > SUBJECT: An Alternative Deployment Path for Taproot Technologies
> >
> > This email is the second of a collection of sentiments from a group of
> > developers who in aggregate prefer to remain anonymous. These emails have
> > been sent under a pseudonym so as to keep the focus of discussion on the
> > merits of the technical issues, rather than miring the discussion in
> > personal politics. Our goal isn't to cause a schism, but rather to help
> > figure out what the path forward is with Taproot. To that end, we: [clip
> > repeat]
> >
> > As a follow up to our prior message, we propose a different path forward
> > for the Taproot family of changes:
> >
> > 1) A separate soft-fork for Merkle Branch Witnesses based on Taproot;
> >
> > 2) A separate soft-fork for Schnorr Signatures
> >
> > 3) A separate follow up soft-fork which enables Taproot and Graftroot
> >
> > We think that the first 2 forks can be offered at the same time or one
> at a
> > time.
> >
> > Taproot, as a follow up to changes 1 and 2, can be enabled as a soft-fork
> > on the existing semantics, but requiring a new witness version. With the
> > Public NUMS Optimization, wallets could upgrade by just changing one
> > version byte to be in the same anonymity set as Taproot.
> >
> > It's not clear to us that the time to prepare a BIP and implementation
> for
> > 1 and 2 at this point would be any less than the time to do Taproot as
> > currently proposed. However, we believe that such a deployment plan is a
> > reasonable option as it is more conservative, as Merkle Branch witnesses
> > are relatively simple and users only have to use Schnorr signing if they
> > want to, and can otherwise continue to use ECDSA. A further benefit of
> > waiting on 3 is that we get to collect real world protocol engineering
> > experience to see how frequently the Taproot frequency of use assumption
> > holds, and if it is worth doing or not.
> >
> >
> > Great thanks,
> >
> > The Group
> >
> >
> > ----
> >
> > SUBJECT: Taproot Public NUMS Optimization
> >
> > This email is the third of a collection of sentiments from a group of
> > developers who in aggregate prefer to remain anonymous. These emails have
> > been sent under a pseudonym so as to keep the focus of discussion on the
> > merits of the technical issues, rather than miring the discussion in
> > personal politics. Our goal isn't to cause a schism, but rather to help
> > figure out what the path forward is with Taproot. To that end, we:
> [clipped
> > again]
> >
> > We propose to modify Taproot's specification in BIP-341 by adding the
> rule:
> >
> > If there is one element on the witness stack:
> >
> > 1) Attempt hashing it to see if it's equal to the witness program. The
> > first byte is the control byte for leaf versioning.
> >
> > 2) If it's not the witness program, and it's 65 bytes, try signature
> > validation
> >
> > If there is more than one element on the witness stack:
> >
> > If the control block is even, treat it as a non-Taproot MAST and get the
> > leaf version as the last byte of the script (so you can pop it off before
> > hashing).
> >
> >
> > If greater anonymity is required, a NUMS point can still be used in
> > Taproot, at the expense of the additional data. However, if NUMS points
> are
> > just a couple well known constants this could actually decrease privacy
> as
> > then the NUMS points could differ from application to application
> > fingerprinting wallets. Instead, the NUMS point should only be used
> when a
> > single use nonce can be sent, so that NUMS cannot be distinguished from a
> > normal Taproot to a third party who doesn't know the setup (e.g., that
> the
> > NUMS is H(X) for known X).
> >
> >
> > Great thanks,
> >
> > The Group
> >
> >
> > _______________________________________________
> > bitcoin-dev mailing list
> > bitcoin-dev@lists.linuxfoundation.org
> > https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
> >
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>
--0000000000002f338d059e8ec18c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif;font-size:small;color:#000000">Dave,</div><div class=3D"=
gmail_default" style=3D"font-family:arial,helvetica,sans-serif;font-size:sm=
all;color:#000000"><br></div><div class=3D"gmail_default" style=3D"font-fam=
ily:arial,helvetica,sans-serif;font-size:small;color:#000000">I think your =
point:<br></div><div class=3D"gmail_default" style=3D"font-family:arial,hel=
vetica,sans-serif;font-size:small;color:#000000"><i><br></i></div><div clas=
s=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;font-si=
ze:small;color:#000000"><i>When schnorr and taproot are done together, all =
of the following<br>
transaction types can be part of the same set:<br>
=C2=A0 =C2=A0 - single-sig spends (similar to current use of P2PKH and P2WP=
KH)<br>
=C2=A0 =C2=A0 - n-of-n spends with musig or equivalent (similar to current =
use of<br>
=C2=A0 =C2=A0 =C2=A0 P2SH and P2WSH 2-of-2 multisig without special feature=
s as used by<br>
=C2=A0 =C2=A0 =C2=A0 Blockstream Green and LN mutual closes)<br>
=C2=A0 =C2=A0 - k-of-n (for low values of n) using the most common k signer=
s<br>
=C2=A0 =C2=A0 =C2=A0 (similar to BitGo-style 2-of-3 where the keys involved=
are<br>
=C2=A0 =C2=A0 =C2=A0 alice_hot, alice_cold, and bob_hot and almost all tran=
sactions are<br>
=C2=A0 =C2=A0 =C2=A0 expected to be signed by {alice_hot, bob_hot}; that co=
mmon case<br>
=C2=A0 =C2=A0 =C2=A0 can be the key-path spend and the alternatives {alice_=
hot,<br>
=C2=A0 =C2=A0 =C2=A0 alice_cold} and {alice_cold, bob_hot} can be script-pa=
th spends)<br>
=C2=A0 =C2=A0 - contract protocols that can sometimes result in all parties=
<br>
=C2=A0 =C2=A0 =C2=A0 agreeing on an outcome (similar to LN mutual closes, c=
ross-chain<br>
=C2=A0 =C2=A0 =C2=A0 atomic swaps, and same-chain coinswaps)<br>
</i><span class=3D"gmail-im"></span></div><div class=3D"gmail_default" styl=
e=3D"font-family:arial,helvetica,sans-serif;font-size:small;color:#000000">=
<span class=3D"gmail-im"><br></span></div><div class=3D"gmail_default" styl=
e=3D"font-family:arial,helvetica,sans-serif;font-size:small;color:#000000">=
<span class=3D"gmail-im">Is the same if Schnorr + Merkle Branch without Tap=
root optimization, unless I'm missing something in one of the cases? I =
guess there's a distinction on "can" v.s. "are likely&qu=
ot;?<br></span></div><div class=3D"gmail_default" style=3D"font-family:aria=
l,helvetica,sans-serif;font-size:small;color:#000000"><span class=3D"gmail-=
im"><br></span></div><div class=3D"gmail_default" style=3D"font-family:aria=
l,helvetica,sans-serif;font-size:small;color:#000000"><span class=3D"gmail-=
im"><br></span></div><div class=3D"gmail_default" style=3D"font-family:aria=
l,helvetica,sans-serif;font-size:small;color:#000000"><span class=3D"gmail-=
im">Jonas,<br></span></div><div class=3D"gmail_default" style=3D"font-famil=
y:arial,helvetica,sans-serif;font-size:small;color:#000000"><span class=3D"=
gmail-im"><br></span></div><div class=3D"gmail_default" style=3D"font-famil=
y:arial,helvetica,sans-serif;font-size:small;color:#000000"><span class=3D"=
gmail-im">That's a really interesting point about K-N systems making th=
e most likely K-K the taproot key. (For the uninitiated, MuSig can do N-of-=
N aggregation non-interactively, but K-of-N requires interaction). I think =
this works with small (N choose K), but as (N choose K) increases it seems =
the probability of picking the correct one goes down?</span></div><div clas=
s=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;font-si=
ze:small;color:#000000"><span class=3D"gmail-im"><br></span></div><div clas=
s=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;font-si=
ze:small;color:#000000"><span class=3D"gmail-im">I guess the critical quest=
ion is if cases where there's not some timelock will be mandatory acros=
s all signing paths.</span></div><div class=3D"gmail_default" style=3D"font=
-family:arial,helvetica,sans-serif;font-size:small;color:#000000"><span cla=
ss=3D"gmail-im"><br></span></div><div class=3D"gmail_default" style=3D"font=
-family:arial,helvetica,sans-serif;font-size:small;color:#000000"><span cla=
ss=3D"gmail-im"><br></span></div><div class=3D"gmail_default" style=3D"font=
-family:arial,helvetica,sans-serif;font-size:small;color:#000000"><span cla=
ss=3D"gmail-im">cheers,</span></div><div class=3D"gmail_default" style=3D"f=
ont-family:arial,helvetica,sans-serif;font-size:small;color:#000000"><span =
class=3D"gmail-im"><br></span></div><div class=3D"gmail_default" style=3D"f=
ont-family:arial,helvetica,sans-serif;font-size:small;color:#000000"><span =
class=3D"gmail-im">jeremy<br></span></div><div class=3D"gmail_default" styl=
e=3D"font-family:arial,helvetica,sans-serif;font-size:small;color:#000000">=
<span class=3D"gmail-im"><br></span></div><div><div dir=3D"ltr" class=3D"gm=
ail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr">--<br><a=
href=3D"https://twitter.com/JeremyRubin" target=3D"_blank">@JeremyRubin</a=
><a href=3D"https://twitter.com/JeremyRubin" target=3D"_blank"></a></div></=
div></div><br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Mon, Feb 10, 2020 at 9:16 AM Jonas Nick via bitcoin-dev =
<<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@li=
sts.linuxfoundation.org</a>> 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">I agree with most of the comments so far, but the gr=
oup brings up an often<br>
overlooked point with respect to the privacy benefits of taproot. In the ex=
treme<br>
case, if there would be no policies that have both a key and a script spend=
<br>
path, then taproot does not improve anonymity sets compared to the "Ta=
proot<br>
Public NUMS Optimization" proposal (which saves 8 vbytes in a script-s=
pend). (*)<br>
<br>
In fact, the cases where scripts would have to be used given usage of Bitco=
in<br>
today are be rare because threshold policies, their conjunctions and<br>
disjunctions can be expressed with a single public key. Even if we disregar=
d<br>
speculation that timelocks, ANYPREVOUT/NOINPUT and other interesting script=
s<br>
will be used in the future (which can be added through the leaf or key vers=
ions<br>
without affecting key-spend anonymity sets), not all of today's applica=
tions are<br>
able to be represented single public keys because there are applications th=
at<br>
can not deal with interactive key setups or interactive signing. For<br>
applications where this is possible it will be a gradual change because of =
the<br>
engineering challenges involved. For example, k-of-n threshold policies cou=
ld<br>
have the most likely k-of-k in the taproot output key and other k-of-k in t=
he<br>
leaves, instead of going for a k-of-n taproot output key immediately.<br>
<br>
Given that anonymity sets in Bitcoin are permanent and software tends to be=
<br>
deployed longer than anyone would expect at the time of deployment,<br>
realistically Taproot is superior to the "Public NUMS Optimization&quo=
t; and "An<br>
Alternative Deployment Path".<br>
<br>
(*) One could argue that the little plausible deniability gained by a very =
small<br>
probability of the change of a script-spend being a key-spend and vice vers=
a is<br>
significantly better than no probability at all.<br>
<br>
On 2/9/20 8:47 PM, Bryan Bishop via bitcoin-dev wrote:<br>
> Apologies for my previous attempt at relaying the message- it looks li=
ke<br>
> the emails got mangled on the archive. I am re-sending them in this<br=
>
> combined email with what I hope will be better formatting. Again this =
is<br>
> from some nym that had trouble posting to this mailing list; I didn=
9;t see<br>
> any emails in the queue so I couldn't help to publish this sooner.=
<br>
> <br>
> SUBJECT: Taproot (and Graftroot) Complexity<br>
> <br>
> This email is the first of a collection of sentiments from a group of<=
br>
> developers who in aggregate prefer to remain anonymous. These emails h=
ave<br>
> been sent under a pseudonym so as to keep the focus of discussion on t=
he<br>
> merits of the technical issues, rather than miring the discussion in<b=
r>
> personal politics.=C2=A0 Our goal isn't to cause a schism, but rat=
her to help<br>
> figure out what the path forward is with Taproot. To that end, we:<br>
> <br>
> 1) Discuss the merits of Taproot's design versus simpler alternati=
ves (see<br>
> thread subject, "Taproot (and Graftroot) Complexity").<br>
> <br>
> 2) Propose an alternative path to deploying the technologies described=
in<br>
> BIP-340, BIP-341, and BIP-342 (see thread subject, "An Alternativ=
e<br>
> Deployment Path for Taproot Technologies").<br>
> <br>
> 3) Suggest a modification to Taproot to reduce some of the overhead (s=
ee<br>
> thread subject, "Taproot Public NUMS Optimization").<br>
> <br>
> Now that the BIP has moved to draft we felt that now was the time to<b=
r>
> prioritize review to make sure it was an acceptable change for our<br>
> activities. As a group, we're excited about the totality of what T=
aproot<br>
> has to offer. However, after our review, we're left perplexed abou=
t the<br>
> development of Taproot (and Graftroot, to a lesser extent).<br>
> <br>
> We also want to convey that we have nothing but respect for the develo=
pers<br>
> and community who have poured their heart and soul into preparing Tapr=
oot.<br>
> Self evidently, it is an impressive synthesis of ideas. We believe tha=
t the<br>
> highest form of respect to pay such a synthesis of ideas is a detailed=
and<br>
> critical review, as it's pertinent to closely consider changes to =
Bitcoin.<br>
> <br>
> <br>
> In essence, Taproot is fundamentally the same as doing<br>
> <a href=3D"https://github.com/bitcoin/bips/blob/master/bip-0114.mediaw=
iki" rel=3D"noreferrer" target=3D"_blank">https://github.com/bitcoin/bips/b=
lob/master/bip-0114.mediawiki</a> and Schnorr<br>
> signatures separately.<br>
> <br>
> The main reason for putting them together -- as mentioned in the BIP -=
- is<br>
> a gain in efficiency. But this efficiency pre-supposes a specific use =
case<br>
> and probability distribution of use cases.<br>
> <br>
> Compare:<br>
> <br>
> Suppose a MAST for {a,b,c,d,e,f,g,h} spending conditions it looks some=
thing<br>
> like this:<br>
> <br>
> <br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0/\<br>
>=C2=A0 =C2=A0 =C2=A0 /=C2=A0 \<br>
>=C2=A0 =C2=A0 =C2=A0/=C2=A0 =C2=A0 \<br>
>=C2=A0 =C2=A0 /=C2=A0 =C2=A0 =C2=A0 \<br>
>=C2=A0 =C2=A0/\=C2=A0 =C2=A0 =C2=A0 /\<br>
>=C2=A0 /=C2=A0 \=C2=A0 =C2=A0 /=C2=A0 \<br>
> /\=C2=A0 /\=C2=A0 /\=C2=A0 /\<br>
> a b c d e f g h<br>
> <br>
> If we want this to be functionally equivalent to Taproot, we add a new=
path:<br>
> <br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 /\<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0/\ {<pk> schnorr_checksig}<br>
>=C2=A0 =C2=A0 =C2=A0 /=C2=A0 \<br>
>=C2=A0 =C2=A0 =C2=A0/=C2=A0 =C2=A0 \<br>
>=C2=A0 =C2=A0 /=C2=A0 =C2=A0 =C2=A0 \<br>
>=C2=A0 =C2=A0/\=C2=A0 =C2=A0 =C2=A0 /\<br>
>=C2=A0 /=C2=A0 \=C2=A0 =C2=A0 /=C2=A0 \<br>
> /\=C2=A0 /\=C2=A0 /\=C2=A0 /\<br>
> a b c d e f g h<br>
> <br>
> Now, to spend from this MBV you have to reveal 32 bytes on the stack f=
or<br>
> the not taken branch, and 35 bytes for the <pk> schnorr_checksig=
(1 byte<br>
> push, 33 bytes PK, 1 byte checksig).<br>
> <br>
> This is 67 bytes more than Taproot would require for the same spending=
<br>
> condition.<br>
> <br>
> However, suppose we wanted to use one of the script paths instead. We =
still<br>
> need to have one extra hash for the {<pk> schnorr_checksig} (dep=
ending on<br>
> if we put the key in this position or not--see below). But now we can =
spend<br>
> with just a logarithmic control program path.<br>
> <br>
> However, if we do the same script via taproot, we now need to provide =
the<br>
> base public key (33 bytes) as well as the root hash (32 bytes) and pat=
h and<br>
> then the actual scripts. With the need for 2 push bytes, this ends up =
being<br>
> back at 67 bytes extra.<br>
> <br>
> Is Taproot just a probability assumption about the frequency and likel=
ihood<br>
> of the signature case over the script case? Is this a good assumption?=
=C2=A0 The<br>
> BIP only goes as far as to claim that the advantage is apparent if the=
<br>
> outputs *could be spent* as an N of N, but doesn't make representa=
tions<br>
> about how likely that N of N case would be in practice compared to the=
<br>
> script paths. Perhaps among use cases, more than half of the ones we e=
xpect<br>
> people to be doing could be spent as an N of N. But how frequently wou=
ld<br>
> that path get used? Further, while the *use cases* might skew toward t=
hings<br>
> with N of N opt-out, we might end up in a power law case where it'=
s the one<br>
> case that doesn't use an N of N opt out at all (or at a de minimis=
level)<br>
> that becomes very popular, thereby making Taproot more costly then<br>
> beneficial.<br>
> <br>
> Further, if you don't want to use a Taproot top-level key (e.g., y=
ou need<br>
> to be able to audit that no one can spend outside of one of the script=
<br>
> conditions), then you need to use a NUMS (nothing up my sleeve) point.=
This<br>
> forces users who don't want Taproot to pay the expense, when if th=
ey just<br>
> had a MAST based witness type they would be cheaper. So if this use ca=
se is<br>
> at all common, Taproot leaves them worse off in terms of fees. Given t=
hat<br>
> script paths are usually done in the case where there is some conteste=
d<br>
> close, it's actually in the interest of protocol developers that t=
he<br>
> contested script path be as efficient as possible so that the fees pai=
d<br>
> maximally increase the feerate. We think this can be fixed simply in<b=
r>
> Taproot though, as noted below.<br>
> <br>
> <br>
> <br>
> On privacy, we're also a bit confused as to the goal of Taproot ov=
er MAST<br>
> and Schnorr. Earlier, we presented a design with MAST which is very cl=
ose<br>
> to Taproot.=C2=A0 However, it'd also be possible to just add {<=
pk><br>
> schnorr_checksig} to the set {a,b,c,d,e,f,g,h}, shuffle them, and comp=
ute<br>
> some MAST structure (perhaps probability encoded) on them. This has th=
e<br>
> effect of not having much additional fees for adding the extra Schnorr=
path<br>
> at redeem time (only 1 extra branch on 2/8 script paths), e.g.<br>
> <br>
> <br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0/\<br>
>=C2=A0 =C2=A0 =C2=A0 /=C2=A0 \<br>
>=C2=A0 =C2=A0 =C2=A0/=C2=A0 =C2=A0 \<br>
>=C2=A0 =C2=A0 /=C2=A0 =C2=A0 =C2=A0 \<br>
>=C2=A0 =C2=A0/\=C2=A0 =C2=A0 =C2=A0 /\<br>
>=C2=A0 /=C2=A0 \=C2=A0 =C2=A0 /=C2=A0 \<br>
> /\=C2=A0 /\=C2=A0 /\=C2=A0 /\<br>
> a b c d e f/\ {<pk> schnorr_checksig}<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0g=C2=A0 h<br>
> <br>
> We could argue that this is more private than Taproot, because we don&=
#39;t<br>
> distinguish between the Schnorr key case and other cases by default, s=
o<br>
> chain analyzers can't tell if the signature came from the Taproot =
case or<br>
> from one of the Script paths. There's also no NUMS point required,=
which<br>
> means chain analyzers can't tell when you spend that there was no =
top level<br>
> key if the NUMS point is not per-output indistinguishable. By using a<=
br>
> semi-randomized MAST structure, chain analyzers also can't tell ex=
actly how<br>
> big your spend condition MAST was. In particular, you care more about<=
br>
> privacy when you are contesting a close of a channel or other script p=
ath<br>
> because then the miners could be more likely to extract a rent from yo=
u as<br>
> "ransom" for properly closing your channel (or in other word=
s, in a<br>
> contested close the value of the closing transaction is larger than us=
ual).<br>
> <br>
> It would also be possible to do something really simple which is to al=
low<br>
> the witness type to be either a MAST hash OR a schnorr key (but not a<=
br>
> Taproot). This allows you to not completely fracture the anonymity set=
<br>
> between people who want plain Schnorr and people who want MAST (at lea=
st<br>
> until they go to spend). This fix can also be used in Taproot in place=
of a<br>
> NUMS point, to decrease extra fees. It's unclear if this plays neg=
atively<br>
> with any future batch validation mechanism though, but the contextual<=
br>
> checks to exclude a witness program from the batch are relatively simp=
le.<br>
> See thread subject, "Taproot Public NUMS Optimization".<br>
> <br>
> The considerations around Graftroot, a proposed delegation mechanism, =
is a<br>
> bit similar. Delegation is a mechanism by which a UTXO with script S c=
an<br>
> sign a script R which can then be executed in addition to S without<br=
>
> requiring a transaction. This allows an output to monotonically and<br=
>
> dynamically increase the number of conditions under which it can be sp=
ent.<br>
> As noted by Pieter Wiulle here:<br>
> <a href=3D"https://github.com/kanzure/diyhpluswiki/commit/a03f6567d714=
f8733b578de263a4b149441cd058" rel=3D"noreferrer" target=3D"_blank">https://=
github.com/kanzure/diyhpluswiki/commit/a03f6567d714f8733b578de263a4b149441c=
d058</a><br>
> delegation was originally possible in Bitcoin, but got broken during a=
n<br>
> emergency fork to split the scriptSig and scriptpubkey separation. Rat=
her<br>
> than adding some fancy delegation mechanism in Bitcoin, why not just h=
ave a<br>
> P2SH-like semantic which allows a delegated script to be evaluated? Se=
e<br>
> BIP-117 <a href=3D"https://github.com/bitcoin/bips/blob/master/bip-011=
7.mediawiki" rel=3D"noreferrer" target=3D"_blank">https://github.com/bitcoi=
n/bips/blob/master/bip-0117.mediawiki</a>.<br>
> This way we aren't special casing where delegation can occur, and =
we can<br>
> allow taproot nested spending conditions (i.e., with timelocks) to gen=
erate<br>
> their own delegations. As I've seen Graftroot discussed thus far, =
it is as<br>
> a top-level witness program version like Taproot and non-recursive. Si=
milar<br>
> to the above discussion, top-level is more efficient if you suspect th=
at<br>
> delegation will be most likely occurring at the top level, but it'=
s not<br>
> clear that's a good assumption as it may be common to want to allo=
w<br>
> different scripts to delegate.<br>
> <br>
> <br>
> Overall, we are left with concerns both about the merit of doing Tapro=
ot<br>
> versus alternatives, as well as the process through which we got to be=
here.<br>
> <br>
> 1) Is Taproot actually more private than bare MAST and Schnorr separat=
ely?<br>
> What are the actual anonymity set benefits compared to doing the separ=
ately?<br>
> <br>
> 2) Is Taproot actually cheaper than bare MAST and Schnorr separately? =
What<br>
> evidence do we have that the assumption it will be more common to use<=
br>
> Taproot with a key will outweigh Script cases?<br>
> <br>
> 3) Is Taproot riskier than bare MAST and Schnorr separately given the =
new<br>
> crypto? How well reviewed is the actual crypto parts? None of us perso=
nally<br>
> feel comfortable reviewing the crypto in Schnorr -- what's the set=
of<br>
> people who have thoroughly reviewed the crypto and aren't just ACK=
ing<br>
> because they trust other developers to have looked at it close enough?=
<br>
> <br>
> 4) Design wise, couldn't we forego the NUMS point requirement and =
be able<br>
> to check if it's a hash root directly? This would encumber users w=
ho don't<br>
> need the key path a cheaper spend path. See thread subject, "Tapr=
oot Public<br>
> NUMS Optimization".<br>
> <br>
> 5) Is the development model of trying to jam a bunch of features into<=
br>
> Bitcoin all at once good for Bitcoin development? Would we be better o=
ff if<br>
> we embraced incremental improvements that can work together (e.g., MAS=
T and<br>
> then Schnorr)?=C2=A0 Although the BIP raises some points about anonymi=
ty sets<br>
> being why to do them all at once, it's not clear to me this argume=
nt holds<br>
> water (same goes for businesses not upgrading). If we can take things =
as<br>
> smaller steps, we are not only more secure, but we also have more time=
to<br>
> dedicate review to each change independently. We also end up co-mingli=
ng<br>
> changes that people end up accepting only because they want one and th=
ey're<br>
> bundled (e.g., MAST and Schnorr, MAST seems like a much less risky add=
ition<br>
> versus Schnorr). See thread subject, "An Alternative Deployment P=
ath for<br>
> Taproot Technologies".<br>
> <br>
> <br>
> <br>
> <br>
> Our provocation with this email is primarily that we think we should m=
ore<br>
> carefully consider the benefits of Taproot over simpler primitives tha=
t are<br>
> not only easier to review, but could have been made available much soo=
ner<br>
> rather than waiting on putting everything all together for an unclear<=
br>
> aggregate benefit.<br>
> <br>
> We do think that most of the developers have been honest about the ben=
efits<br>
> of Taproot, but that on closer look we feel the general ecosystem has<=
br>
> oversold Taproot as being the key enabler for a collection of techniqu=
es<br>
> that we could do with much simpler building blocks.<br>
> <br>
> <br>
> At the end of the day, we do not strongly advocate not deploying Tapro=
ot at<br>
> this point in the review cycle. We think the Taproot Public NUMS<br>
> Optimization may be a good idea, worth considering if it's not ins=
ecure, as<br>
> it cuts through the case where you would otherwise need a NUMS point.<=
br>
> Things like TapScript and its MAST mechanisms are well designed and of=
fer<br>
> exciting new deployment paths, and would be something we would use eve=
n if<br>
> we opted for MAST instead of Taproot. However, we also believe it is o=
ur<br>
> duty to raise these concerns and suggestions, and we look forward to<b=
r>
> listening to the responses of the community.<br>
> <br>
> Great thanks,<br>
> <br>
> The Group<br>
> <br>
> ----<br>
> <br>
> SUBJECT: An Alternative Deployment Path for Taproot Technologies<br>
> <br>
> This email is the second of a collection of sentiments from a group of=
<br>
> developers who in aggregate prefer to remain anonymous. These emails h=
ave<br>
> been sent under a pseudonym so as to keep the focus of discussion on t=
he<br>
> merits of the technical issues, rather than miring the discussion in<b=
r>
> personal politics. Our goal isn't to cause a schism, but rather to=
help<br>
> figure out what the path forward is with Taproot. To that end, we: [cl=
ip<br>
> repeat]<br>
> <br>
> As a follow up to our prior message, we propose a different path forwa=
rd<br>
> for the Taproot family of changes:<br>
> <br>
> 1) A separate soft-fork for Merkle Branch Witnesses based on Taproot;<=
br>
> <br>
> 2) A separate soft-fork for Schnorr Signatures<br>
> <br>
> 3) A separate follow up soft-fork which enables Taproot and Graftroot<=
br>
> <br>
> We think that the first 2 forks can be offered at the same time or one=
at a<br>
> time.<br>
> <br>
> Taproot, as a follow up to changes 1 and 2, can be enabled as a soft-f=
ork<br>
> on the existing semantics, but requiring a new witness version. With t=
he<br>
> Public NUMS Optimization, wallets could upgrade by just changing one<b=
r>
> version byte to be in the same anonymity set as Taproot.<br>
> <br>
> It's not clear to us that the time to prepare a BIP and implementa=
tion for<br>
> 1 and 2 at this point would be any less than the time to do Taproot as=
<br>
> currently proposed. However, we believe that such a deployment plan is=
a<br>
> reasonable option as it is more conservative, as Merkle Branch witness=
es<br>
> are relatively simple and users only have to use Schnorr signing if th=
ey<br>
> want to, and can otherwise continue to use ECDSA. A further benefit of=
<br>
> waiting on 3 is that we get to collect real world protocol engineering=
<br>
> experience to see how frequently the Taproot frequency of use assumpti=
on<br>
> holds, and if it is worth doing or not.<br>
> <br>
> <br>
> Great thanks,<br>
> <br>
> The Group<br>
> <br>
> <br>
> ----<br>
> <br>
> SUBJECT: Taproot Public NUMS Optimization<br>
> <br>
> This email is the third of a collection of sentiments from a group of<=
br>
> developers who in aggregate prefer to remain anonymous. These emails h=
ave<br>
> been sent under a pseudonym so as to keep the focus of discussion on t=
he<br>
> merits of the technical issues, rather than miring the discussion in<b=
r>
> personal politics. Our goal isn't to cause a schism, but rather to=
help<br>
> figure out what the path forward is with Taproot. To that end, we: [cl=
ipped<br>
> again]<br>
> <br>
> We propose to modify Taproot's specification in BIP-341 by adding =
the rule:<br>
> <br>
> If there is one element on the witness stack:<br>
> <br>
> 1) Attempt hashing it to see if it's equal to=C2=A0 the witness pr=
ogram. The<br>
> first byte is the control byte for leaf versioning.<br>
> <br>
> 2) If it's not the witness program, and it's 65 bytes, try sig=
nature<br>
> validation<br>
> <br>
> If there is more than one element on the witness stack:<br>
> <br>
> If the control block is even, treat it as a non-Taproot MAST and get t=
he<br>
> leaf version as the last byte of the script (so you can pop it off bef=
ore<br>
> hashing).<br>
> <br>
> <br>
> If greater anonymity is required, a NUMS point can still be used in<br=
>
> Taproot, at the expense of the additional data. However, if NUMS point=
s are<br>
> just a couple well known constants this could actually decrease privac=
y as<br>
> then the NUMS points could differ from application to application<br>
> fingerprinting wallets.=C2=A0 Instead, the NUMS point should only be u=
sed when a<br>
> single use nonce can be sent, so that NUMS cannot be distinguished fro=
m a<br>
> normal Taproot to a third party who doesn't know the setup (e.g., =
that the<br>
> NUMS is H(X) for known X).<br>
> <br>
> <br>
> Great thanks,<br>
> <br>
> The Group<br>
> <br>
> <br>
> _______________________________________________<br>
> bitcoin-dev mailing list<br>
> <a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_bl=
ank">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=
/mailman/listinfo/bitcoin-dev</a><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>
</blockquote></div>
--0000000000002f338d059e8ec18c--
|