1 2018-06-26T00:51:11  *** drexl has quit IRC
  2 2018-06-26T00:52:22  *** Randolf has joined #bitcoin-dev
  3 2018-06-26T01:05:01  *** weiyang has joined #bitcoin-dev
  4 2018-06-26T01:05:24  <weiyang>  I am curious about how segwit reduce the transaction size. For example, when I look at the raw data of https://blockchain.info/rawtx/de3a7c36bdb50479fc77f4fd31b6042bf85ecade46c5676949946b52847255b3, each input has a "witness" field. Compared with put it in "script" field, I don't see the benefit of segwit.
  5 2018-06-26T01:05:44  <weiyang> Hmm... do I miss something?
  6 2018-06-26T01:06:47  <weiyang> And some input has both "witness" and "script" field. What is this for?
  7 2018-06-26T01:12:51  *** Murch has quit IRC
  8 2018-06-26T01:14:10  *** Beef has quit IRC
  9 2018-06-26T01:15:58  *** Beef has joined #bitcoin-dev
 10 2018-06-26T01:30:33  *** Hasimir has joined #bitcoin-dev
 11 2018-06-26T01:35:32  *** Victorsueca has quit IRC
 12 2018-06-26T01:37:00  *** Victorsueca has joined #bitcoin-dev
 13 2018-06-26T01:43:08  *** meshcollider has joined #bitcoin-dev
 14 2018-06-26T01:48:25  *** Krellan has quit IRC
 15 2018-06-26T02:02:58  *** justanotheruser has quit IRC
 16 2018-06-26T02:03:21  *** justanotheruser has joined #bitcoin-dev
 17 2018-06-26T02:32:17  *** Belxjander has quit IRC
 18 2018-06-26T02:32:36  *** Belxjander has joined #bitcoin-dev
 19 2018-06-26T02:53:44  *** zivl has quit IRC
 20 2018-06-26T03:10:55  *** Belxjander has quit IRC
 21 2018-06-26T03:11:14  *** Belxjander has joined #bitcoin-dev
 22 2018-06-26T03:13:50  *** HoMM has quit IRC
 23 2018-06-26T03:14:32  *** HoMM has joined #bitcoin-dev
 24 2018-06-26T03:46:20  *** zivl has joined #bitcoin-dev
 25 2018-06-26T04:00:46  *** Victorsueca has quit IRC
 26 2018-06-26T04:10:35  *** midnightmagic has quit IRC
 27 2018-06-26T04:12:53  *** meshcollider has quit IRC
 28 2018-06-26T04:31:27  *** meLon has quit IRC
 29 2018-06-26T04:32:32  *** meLon has joined #bitcoin-dev
 30 2018-06-26T04:33:05  *** alferz has joined #bitcoin-dev
 31 2018-06-26T04:34:42  *** midnightmagic has joined #bitcoin-dev
 32 2018-06-26T04:36:52  *** jtimon has quit IRC
 33 2018-06-26T04:38:00  *** Victorsueca has joined #bitcoin-dev
 34 2018-06-26T04:42:10  *** zivl has quit IRC
 35 2018-06-26T04:45:23  *** alferz has quit IRC
 36 2018-06-26T04:50:48  *** CubicEar_ has quit IRC
 37 2018-06-26T04:51:25  *** CubicEarths has joined #bitcoin-dev
 38 2018-06-26T04:55:56  *** CubicEarths has quit IRC
 39 2018-06-26T04:56:46  *** Victorsueca has quit IRC
 40 2018-06-26T05:02:40  *** zivl has joined #bitcoin-dev
 41 2018-06-26T05:06:05  *** Krellan has joined #bitcoin-dev
 42 2018-06-26T05:15:34  *** segy has quit IRC
 43 2018-06-26T05:15:51  *** segy has joined #bitcoin-dev
 44 2018-06-26T05:29:23  *** trixisowned has joined #bitcoin-dev
 45 2018-06-26T05:30:03  *** dviola has quit IRC
 46 2018-06-26T05:46:14  *** meshcollider has joined #bitcoin-dev
 47 2018-06-26T05:46:27  *** segy has quit IRC
 48 2018-06-26T05:46:58  *** segy has joined #bitcoin-dev
 49 2018-06-26T05:47:28  *** CubicEarths has joined #bitcoin-dev
 50 2018-06-26T06:04:08  *** Victorsueca has joined #bitcoin-dev
 51 2018-06-26T06:14:35  *** segy has quit IRC
 52 2018-06-26T06:22:45  *** segy has joined #bitcoin-dev
 53 2018-06-26T06:49:53  *** nazarewk has joined #bitcoin-dev
 54 2018-06-26T06:51:51  *** Victorsueca has quit IRC
 55 2018-06-26T06:53:15  *** Victorsueca has joined #bitcoin-dev
 56 2018-06-26T07:05:16  *** Victorsueca has quit IRC
 57 2018-06-26T07:11:43  *** Krellan has quit IRC
 58 2018-06-26T07:12:33  *** Krellan has joined #bitcoin-dev
 59 2018-06-26T07:23:35  *** DTZUZU has quit IRC
 60 2018-06-26T07:23:38  *** DTZUZO has quit IRC
 61 2018-06-26T07:24:50  *** nazarewk has quit IRC
 62 2018-06-26T07:28:01  *** nazarewk has joined #bitcoin-dev
 63 2018-06-26T07:29:10  *** POJO has quit IRC
 64 2018-06-26T07:42:54  *** liviuc has joined #bitcoin-dev
 65 2018-06-26T08:02:53  *** meshcollider has quit IRC
 66 2018-06-26T08:04:42  *** easye has quit IRC
 67 2018-06-26T08:05:34  *** easye has joined #bitcoin-dev
 68 2018-06-26T08:28:47  *** DTZUZU has joined #bitcoin-dev
 69 2018-06-26T08:30:09  *** DTZUZO has joined #bitcoin-dev
 70 2018-06-26T08:34:27  *** DTZUZU has quit IRC
 71 2018-06-26T08:35:01  *** promag has joined #bitcoin-dev
 72 2018-06-26T08:35:02  *** DTZUZO has quit IRC
 73 2018-06-26T08:47:14  *** txter has joined #bitcoin-dev
 74 2018-06-26T08:49:46  *** trixisowned has quit IRC
 75 2018-06-26T08:56:43  *** DTZUZU has joined #bitcoin-dev
 76 2018-06-26T09:00:52  *** DTZUZO has joined #bitcoin-dev
 77 2018-06-26T09:08:49  *** txter has quit IRC
 78 2018-06-26T09:12:50  *** Krellan has quit IRC
 79 2018-06-26T09:13:28  *** Krellan has joined #bitcoin-dev
 80 2018-06-26T09:16:10  *** btclovernicko has joined #bitcoin-dev
 81 2018-06-26T09:33:03  *** Krellan has quit IRC
 82 2018-06-26T09:33:40  *** Krellan has joined #bitcoin-dev
 83 2018-06-26T09:35:07  *** btclovernicko has quit IRC
 84 2018-06-26T09:38:55  *** segy has quit IRC
 85 2018-06-26T09:42:33  *** segy has joined #bitcoin-dev
 86 2018-06-26T09:45:46  <AndyS2> weiyang: there's two different things we could talk about here. either why the new payment schemes like P2WPKH might be a few bytes shorter (or longer) than with older style bitcoin transactions
 87 2018-06-26T09:46:24  <AndyS2> weiyang: or why segwit allows for blocks to be larger than 1MB, and how that makes SegWit transactions smaller within that 1MB limit.
 88 2018-06-26T09:47:08  *** DTZUZU has quit IRC
 89 2018-06-26T09:47:19  <AndyS2> basically (and I'm usually not that strong on details, so bear with me or wait for someone to correct me ;) )
 90 2018-06-26T09:47:27  *** DTZUZO has quit IRC
 91 2018-06-26T09:47:56  <AndyS2> stuff that goes into the script or scriptsig field is an immediate part of the transaction, and has to reside in the 1MB part of the block
 92 2018-06-26T09:48:16  <AndyS2> stuff you put into the witness field is segregated into a different part of the block that old nodes/old consensus rules don't see
 93 2018-06-26T09:48:34  <AndyS2> so there's no hardfork if you run an old node
 94 2018-06-26T09:49:09  <AndyS2> and because data in the witness field is counted differently (it's still counted, so not free, but only with 1/4th compared to the data in the 1MB part)
 95 2018-06-26T09:49:56  <AndyS2> some people (maybe incorrectly) claim that such a transaction is smaller.
 96 2018-06-26T09:51:01  *** d9b4bef9 has quit IRC
 97 2018-06-26T09:51:58  *** volition has joined #bitcoin-dev
 98 2018-06-26T09:52:09  *** d9b4bef9 has joined #bitcoin-dev
 99 2018-06-26T09:52:20  <AndyS2> There's a few cases where SegWit transactions are actually smaller, btw. That's because with segwit, we detect the kind of script that needs to run by using version bytes and the length of an output (IIRC). instead of pushing the real, potentially longer script into the script-part of an output.
100 2018-06-26T09:53:23  <AndyS2> sorry, not the length of an output. I'm actually not so sure anymore. I think it was the length of the witness that is being used when spending an output.
101 2018-06-26T09:57:23  *** rsrx has joined #bitcoin-dev
102 2018-06-26T10:09:55  *** DTZUZU has joined #bitcoin-dev
103 2018-06-26T10:12:18  *** DTZUZO has joined #bitcoin-dev
104 2018-06-26T10:33:54  *** JackH has joined #bitcoin-dev
105 2018-06-26T10:34:50  *** JackH has quit IRC
106 2018-06-26T10:58:42  *** promag has quit IRC
107 2018-06-26T11:24:38  *** promag has joined #bitcoin-dev
108 2018-06-26T11:34:22  *** realz has quit IRC
109 2018-06-26T11:41:11  *** goodafternoon has joined #bitcoin-dev
110 2018-06-26T11:41:11  *** Krellan has quit IRC
111 2018-06-26T11:41:52  *** Krellan has joined #bitcoin-dev
112 2018-06-26T11:52:42  *** luke-jr has quit IRC
113 2018-06-26T11:55:02  *** luke-jr has joined #bitcoin-dev
114 2018-06-26T11:56:33  *** Hasimir has quit IRC
115 2018-06-26T12:00:45  *** jtimon has joined #bitcoin-dev
116 2018-06-26T12:02:29  *** promag has quit IRC
117 2018-06-26T12:34:37  *** promag has joined #bitcoin-dev
118 2018-06-26T12:37:53  *** volition has quit IRC
119 2018-06-26T12:51:25  *** ap4lmtree has quit IRC
120 2018-06-26T12:51:45  *** ap4lmtree has joined #bitcoin-dev
121 2018-06-26T13:04:02  *** Hasimir has joined #bitcoin-dev
122 2018-06-26T13:48:55  *** Krellan has quit IRC
123 2018-06-26T13:49:36  *** Krellan has joined #bitcoin-dev
124 2018-06-26T14:01:10  *** treehug88 has joined #bitcoin-dev
125 2018-06-26T14:10:43  *** xchuck00 has joined #bitcoin-dev
126 2018-06-26T14:32:26  *** bugs_ has joined #bitcoin-dev
127 2018-06-26T14:37:21  *** Murch has joined #bitcoin-dev
128 2018-06-26T14:37:28  *** mauz555 has joined #bitcoin-dev
129 2018-06-26T14:45:38  *** nazarewk has quit IRC
130 2018-06-26T14:57:51  *** roconnor has joined #bitcoin-dev
131 2018-06-26T14:58:13  <roconnor> achow101: from BIP 174: "If duplicated keys are encountered, the software may choose to use any of the values corresponding to that key."
132 2018-06-26T14:58:35  <roconnor> Ambiguity is breeds security vulnerabilities.
133 2018-06-26T14:58:59  <roconnor> how about "If duplicated keys are encountered processing MUST abort with an error."
134 2018-06-26T15:04:01  *** Randolf has quit IRC
135 2018-06-26T15:13:55  *** meLon has quit IRC
136 2018-06-26T15:14:11  *** meLon has joined #bitcoin-dev
137 2018-06-26T15:42:57  *** Randolf has joined #bitcoin-dev
138 2018-06-26T15:57:30  *** goodafternoon has quit IRC
139 2018-06-26T15:58:48  *** Krellan has quit IRC
140 2018-06-26T15:59:46  *** Krellan has joined #bitcoin-dev
141 2018-06-26T15:59:52  *** mauz555 has quit IRC
142 2018-06-26T16:04:47  *** Krellan has quit IRC
143 2018-06-26T16:05:32  *** Krellan has joined #bitcoin-dev
144 2018-06-26T16:15:10  *** Victorsueca has joined #bitcoin-dev
145 2018-06-26T16:17:30  *** Victorsueca has quit IRC
146 2018-06-26T16:17:52  *** Victorsueca has joined #bitcoin-dev
147 2018-06-26T16:19:50  *** Krellan has quit IRC
148 2018-06-26T16:20:40  *** Krellan has joined #bitcoin-dev
149 2018-06-26T16:27:52  *** Krellan has quit IRC
150 2018-06-26T16:30:21  *** Randolf has quit IRC
151 2018-06-26T16:44:22  *** realz has joined #bitcoin-dev
152 2018-06-26T17:01:36  *** mauz555 has joined #bitcoin-dev
153 2018-06-26T17:16:57  *** jb55 has joined #bitcoin-dev
154 2018-06-26T17:18:55  *** Belxjander has quit IRC
155 2018-06-26T17:19:14  *** Belxjander has joined #bitcoin-dev
156 2018-06-26T17:21:42  *** drexl has joined #bitcoin-dev
157 2018-06-26T17:30:57  *** Randolf has joined #bitcoin-dev
158 2018-06-26T18:05:08  <achow101> robzon: right. combiners will inherently encounter duplicate keys though when combining, and they will need to choose one of the values. but for a given psbt, I suppose it should fail for duplicate keys
159 2018-06-26T18:06:27  *** Murch has quit IRC
160 2018-06-26T18:07:03  *** Murch has joined #bitcoin-dev
161 2018-06-26T18:09:24  *** mauz555 has quit IRC
162 2018-06-26T18:10:27  *** bitdex has joined #bitcoin-dev
163 2018-06-26T18:23:50  *** mauz555 has joined #bitcoin-dev
164 2018-06-26T18:34:25  *** mauz555 has quit IRC
165 2018-06-26T18:37:20  *** Krellan has joined #bitcoin-dev
166 2018-06-26T18:38:55  <roconnor> It seems if we do the protobuffer compatability thingy suggested on the mailing list, then protobuffer has specific semantics for duplicate entries.
167 2018-06-26T18:41:15  *** weiyang has quit IRC
168 2018-06-26T18:55:16  *** dviola has joined #bitcoin-dev
169 2018-06-26T18:57:06  *** spinza has quit IRC
170 2018-06-26T19:12:15  *** Krellan has quit IRC
171 2018-06-26T19:12:24  *** Krellan has joined #bitcoin-dev
172 2018-06-26T19:14:34  *** Beef has quit IRC
173 2018-06-26T19:16:37  *** Beef has joined #bitcoin-dev
174 2018-06-26T19:28:31  *** spinza has joined #bitcoin-dev
175 2018-06-26T19:29:33  *** POJO has joined #bitcoin-dev
176 2018-06-26T19:34:11  *** treehug88 has quit IRC
177 2018-06-26T19:39:18  *** Murch has quit IRC
178 2018-06-26T19:40:07  *** daouzo23 has joined #bitcoin-dev
179 2018-06-26T19:41:07  *** Murch has joined #bitcoin-dev
180 2018-06-26T20:00:45  *** Krellan has quit IRC
181 2018-06-26T20:10:20  *** Guyver2 has joined #bitcoin-dev
182 2018-06-26T20:41:35  *** Krellan has joined #bitcoin-dev
183 2018-06-26T20:46:34  *** Krellan has quit IRC
184 2018-06-26T20:50:16  *** drexl has quit IRC
185 2018-06-26T20:53:49  *** mauz555 has joined #bitcoin-dev
186 2018-06-26T21:01:19  *** roconnor has quit IRC
187 2018-06-26T21:04:23  *** dviola has quit IRC
188 2018-06-26T21:05:51  *** Victorsueca has quit IRC
189 2018-06-26T21:05:59  *** qrestlove has quit IRC
190 2018-06-26T21:06:09  *** Randolf has quit IRC
191 2018-06-26T21:07:21  *** Victorsueca has joined #bitcoin-dev
192 2018-06-26T21:14:26  *** Cogito_Ergo_Sum has joined #bitcoin-dev
193 2018-06-26T21:15:56  *** qrestlove has joined #bitcoin-dev
194 2018-06-26T21:18:55  *** Krellan has joined #bitcoin-dev
195 2018-06-26T21:21:29  *** Guyver2 has quit IRC
196 2018-06-26T21:23:43  *** drexl has joined #bitcoin-dev
197 2018-06-26T21:27:05  *** Randolf has joined #bitcoin-dev
198 2018-06-26T21:32:11  *** Randolf has quit IRC
199 2018-06-26T21:37:30  *** Belxjander has quit IRC
200 2018-06-26T21:37:49  *** Belxjander has joined #bitcoin-dev
201 2018-06-26T21:43:35  *** Belxjander has quit IRC
202 2018-06-26T21:44:32  *** Belxjander has joined #bitcoin-dev
203 2018-06-26T21:59:54  *** bugs_ has quit IRC
204 2018-06-26T22:16:08  *** harrymm_ has quit IRC
205 2018-06-26T22:16:34  *** POJO has quit IRC
206 2018-06-26T22:18:59  *** Krellan has quit IRC
207 2018-06-26T22:19:33  *** harrymm has joined #bitcoin-dev
208 2018-06-26T22:21:03  *** dviola has joined #bitcoin-dev
209 2018-06-26T22:23:57  *** harrymm has quit IRC
210 2018-06-26T22:28:21  *** mauz555 has quit IRC
211 2018-06-26T22:36:26  *** harrymm has joined #bitcoin-dev
212 2018-06-26T22:40:02  *** d9b4bef9 has quit IRC
213 2018-06-26T22:41:18  *** d9b4bef9 has joined #bitcoin-dev
214 2018-06-26T23:21:04  *** drexl has quit IRC
215 2018-06-26T23:43:03  *** mauz555 has joined #bitcoin-dev
216 2018-06-26T23:48:05  *** mauz555 has quit IRC
217 2018-06-26T23:50:42  *** Cogito_Ergo_Sum has quit IRC
218 2018-06-26T23:55:28  *** Randolf has joined #bitcoin-dev
219 2018-06-26T23:58:06  *** rsrx has quit IRC