1 2017-02-19T00:07:21  *** wasi has joined #bitcoin-dev
  2 2017-02-19T00:23:14  *** goksinen has quit IRC
  3 2017-02-19T00:52:06  *** matrix1233 has joined #bitcoin-dev
  4 2017-02-19T00:56:36  *** matrix1233 has quit IRC
  5 2017-02-19T01:58:20  *** matrix1233 has joined #bitcoin-dev
  6 2017-02-19T02:02:49  *** matrix1233 has quit IRC
  7 2017-02-19T02:07:07  *** ThomasV has joined #bitcoin-dev
  8 2017-02-19T02:12:53  *** madacol has joined #bitcoin-dev
  9 2017-02-19T02:17:02  *** d9b4bef9 has quit IRC
 10 2017-02-19T02:18:09  *** d9b4bef9 has joined #bitcoin-dev
 11 2017-02-19T02:19:41  *** blueness has quit IRC
 12 2017-02-19T02:43:05  *** MK` has quit IRC
 13 2017-02-19T02:43:34  *** MK has joined #bitcoin-dev
 14 2017-02-19T02:52:59  *** harai has joined #bitcoin-dev
 15 2017-02-19T03:04:05  *** Subo1977 has joined #bitcoin-dev
 16 2017-02-19T03:08:27  *** Delta_ has quit IRC
 17 2017-02-19T03:22:27  *** chjj has quit IRC
 18 2017-02-19T03:27:47  *** ThomasV has quit IRC
 19 2017-02-19T03:37:15  *** moli_ has quit IRC
 20 2017-02-19T03:37:18  *** chjj has joined #bitcoin-dev
 21 2017-02-19T03:37:48  *** moli_ has joined #bitcoin-dev
 22 2017-02-19T03:39:15  *** moli_ has quit IRC
 23 2017-02-19T03:39:42  *** moli_ has joined #bitcoin-dev
 24 2017-02-19T03:41:38  *** harai has quit IRC
 25 2017-02-19T03:49:15  *** McLovinMcLovin has joined #bitcoin-dev
 26 2017-02-19T03:49:59  *** Belkaar has quit IRC
 27 2017-02-19T03:52:25  *** Belkaar has joined #bitcoin-dev
 28 2017-02-19T03:59:52  *** harai has joined #bitcoin-dev
 29 2017-02-19T04:00:01  *** blueness has joined #bitcoin-dev
 30 2017-02-19T04:02:08  *** harai has quit IRC
 31 2017-02-19T04:05:05  *** harai has joined #bitcoin-dev
 32 2017-02-19T04:07:36  *** harai has quit IRC
 33 2017-02-19T04:08:50  *** harai has joined #bitcoin-dev
 34 2017-02-19T04:11:22  *** matrix1233 has joined #bitcoin-dev
 35 2017-02-19T04:14:10  *** harai has quit IRC
 36 2017-02-19T04:14:42  *** ThomasV has joined #bitcoin-dev
 37 2017-02-19T04:14:57  *** iv3c has quit IRC
 38 2017-02-19T04:16:10  *** matrix1233 has quit IRC
 39 2017-02-19T04:16:12  *** harai has joined #bitcoin-dev
 40 2017-02-19T04:18:56  *** harai has quit IRC
 41 2017-02-19T04:19:47  *** harai has joined #bitcoin-dev
 42 2017-02-19T04:21:28  *** harai has quit IRC
 43 2017-02-19T04:23:58  *** JackH has quit IRC
 44 2017-02-19T04:24:15  *** moli_ has quit IRC
 45 2017-02-19T04:26:42  *** harai has joined #bitcoin-dev
 46 2017-02-19T04:28:22  *** harai has quit IRC
 47 2017-02-19T04:31:05  *** harai has joined #bitcoin-dev
 48 2017-02-19T04:32:10  *** oleganza has joined #bitcoin-dev
 49 2017-02-19T04:33:08  *** harai has quit IRC
 50 2017-02-19T04:37:20  *** ThomasV has quit IRC
 51 2017-02-19T04:37:22  *** harai has joined #bitcoin-dev
 52 2017-02-19T04:40:17  *** harai has quit IRC
 53 2017-02-19T04:41:34  *** harai has joined #bitcoin-dev
 54 2017-02-19T04:42:57  *** harai has quit IRC
 55 2017-02-19T04:43:45  *** harai has joined #bitcoin-dev
 56 2017-02-19T04:48:27  *** chjj has quit IRC
 57 2017-02-19T04:48:35  *** harai has quit IRC
 58 2017-02-19T04:51:30  *** harai has joined #bitcoin-dev
 59 2017-02-19T04:53:14  *** harai has quit IRC
 60 2017-02-19T04:54:02  *** harai has joined #bitcoin-dev
 61 2017-02-19T04:56:03  *** harai has quit IRC
 62 2017-02-19T04:57:20  *** harai has joined #bitcoin-dev
 63 2017-02-19T05:00:18  *** harai has quit IRC
 64 2017-02-19T05:01:07  *** harai has joined #bitcoin-dev
 65 2017-02-19T05:03:30  *** harai has quit IRC
 66 2017-02-19T05:04:18  *** harai has joined #bitcoin-dev
 67 2017-02-19T05:06:20  *** harai has quit IRC
 68 2017-02-19T05:07:09  *** harai has joined #bitcoin-dev
 69 2017-02-19T05:08:50  *** harai has quit IRC
 70 2017-02-19T05:09:38  *** harai has joined #bitcoin-dev
 71 2017-02-19T05:11:50  *** harai has quit IRC
 72 2017-02-19T05:15:25  *** harai has joined #bitcoin-dev
 73 2017-02-19T05:17:35  *** moli_ has joined #bitcoin-dev
 74 2017-02-19T05:18:19  *** harai has quit IRC
 75 2017-02-19T05:19:55  *** ThomasV has joined #bitcoin-dev
 76 2017-02-19T05:26:03  *** janko33 has joined #bitcoin-dev
 77 2017-02-19T05:30:03  *** harai has joined #bitcoin-dev
 78 2017-02-19T05:33:39  *** harai has joined #bitcoin-dev
 79 2017-02-19T05:34:56  *** Xanather has joined #bitcoin-dev
 80 2017-02-19T05:35:05  *** asoltys has quit IRC
 81 2017-02-19T05:35:47  *** harai has quit IRC
 82 2017-02-19T05:37:57  *** harai has joined #bitcoin-dev
 83 2017-02-19T05:39:37  *** harai has quit IRC
 84 2017-02-19T05:40:51  *** harai has joined #bitcoin-dev
 85 2017-02-19T05:46:27  *** ThomasV has quit IRC
 86 2017-02-19T05:47:48  *** harai has quit IRC
 87 2017-02-19T05:50:38  *** harai has joined #bitcoin-dev
 88 2017-02-19T05:53:42  *** harai has quit IRC
 89 2017-02-19T05:54:29  *** harai has joined #bitcoin-dev
 90 2017-02-19T05:54:38  *** TheSeven has quit IRC
 91 2017-02-19T05:55:13  *** TheSeven has joined #bitcoin-dev
 92 2017-02-19T05:56:25  *** harai has quit IRC
 93 2017-02-19T05:57:14  *** harai has joined #bitcoin-dev
 94 2017-02-19T06:00:05  *** harai has quit IRC
 95 2017-02-19T06:00:52  *** harai has joined #bitcoin-dev
 96 2017-02-19T06:02:37  *** harai has quit IRC
 97 2017-02-19T06:03:47  *** conman has joined #bitcoin-dev
 98 2017-02-19T06:11:28  *** harai has joined #bitcoin-dev
 99 2017-02-19T06:13:27  *** harai has quit IRC
100 2017-02-19T06:14:16  *** harai has joined #bitcoin-dev
101 2017-02-19T06:16:44  *** harai has quit IRC
102 2017-02-19T06:17:59  *** harai has joined #bitcoin-dev
103 2017-02-19T06:19:01  *** d9b4bef9 has quit IRC
104 2017-02-19T06:19:31  *** harai has quit IRC
105 2017-02-19T06:19:53  *** altgribble` has quit IRC
106 2017-02-19T06:20:14  *** d9b4bef9 has joined #bitcoin-dev
107 2017-02-19T06:22:33  *** matrix1233 has joined #bitcoin-dev
108 2017-02-19T06:22:50  *** looneytoun has quit IRC
109 2017-02-19T06:26:08  *** anon616 has quit IRC
110 2017-02-19T06:27:13  *** matrix1233 has quit IRC
111 2017-02-19T06:27:19  *** aalex has joined #bitcoin-dev
112 2017-02-19T06:27:29  *** harai has joined #bitcoin-dev
113 2017-02-19T06:27:31  *** anon616 has joined #bitcoin-dev
114 2017-02-19T06:28:32  *** altgribble has joined #bitcoin-dev
115 2017-02-19T06:29:12  *** harai has quit IRC
116 2017-02-19T06:30:24  *** harai has joined #bitcoin-dev
117 2017-02-19T06:32:18  *** harai has quit IRC
118 2017-02-19T06:33:08  *** harai has joined #bitcoin-dev
119 2017-02-19T06:34:01  *** aalex has quit IRC
120 2017-02-19T06:36:10  *** harai has quit IRC
121 2017-02-19T06:37:25  *** harai has joined #bitcoin-dev
122 2017-02-19T06:39:11  *** harai has quit IRC
123 2017-02-19T06:41:17  *** harai has joined #bitcoin-dev
124 2017-02-19T06:44:01  *** harai has quit IRC
125 2017-02-19T06:46:07  *** harai has joined #bitcoin-dev
126 2017-02-19T06:47:50  *** harai has quit IRC
127 2017-02-19T06:50:06  *** harai has joined #bitcoin-dev
128 2017-02-19T06:53:08  *** jtimon has quit IRC
129 2017-02-19T06:53:32  *** harai has joined #bitcoin-dev
130 2017-02-19T06:55:26  *** harai has quit IRC
131 2017-02-19T06:56:18  *** harai has joined #bitcoin-dev
132 2017-02-19T07:01:02  *** harai has quit IRC
133 2017-02-19T07:03:56  *** harai has joined #bitcoin-dev
134 2017-02-19T07:06:14  *** harai has joined #bitcoin-dev
135 2017-02-19T07:08:24  *** harai has quit IRC
136 2017-02-19T07:10:31  *** harai has joined #bitcoin-dev
137 2017-02-19T07:17:24  *** harai has quit IRC
138 2017-02-19T07:20:06  *** harai has joined #bitcoin-dev
139 2017-02-19T07:21:35  *** harai has quit IRC
140 2017-02-19T07:22:25  *** harai has joined #bitcoin-dev
141 2017-02-19T07:24:14  *** harai has quit IRC
142 2017-02-19T07:25:03  *** harai has joined #bitcoin-dev
143 2017-02-19T07:25:35  *** MoALTz has joined #bitcoin-dev
144 2017-02-19T07:26:45  *** harai has quit IRC
145 2017-02-19T07:34:51  *** harai has joined #bitcoin-dev
146 2017-02-19T07:36:55  *** harai has quit IRC
147 2017-02-19T07:38:13  *** harai has joined #bitcoin-dev
148 2017-02-19T07:39:24  *** blueness has quit IRC
149 2017-02-19T07:39:41  *** harai has quit IRC
150 2017-02-19T07:41:44  *** harai has joined #bitcoin-dev
151 2017-02-19T07:43:45  *** harai has quit IRC
152 2017-02-19T07:44:41  *** blueness has joined #bitcoin-dev
153 2017-02-19T07:45:02  *** harai has joined #bitcoin-dev
154 2017-02-19T07:46:26  *** cannon-c has joined #bitcoin-dev
155 2017-02-19T07:46:58  *** harai has quit IRC
156 2017-02-19T07:49:34  *** harai has joined #bitcoin-dev
157 2017-02-19T07:51:35  *** harai has quit IRC
158 2017-02-19T07:54:54  *** conman has left #bitcoin-dev
159 2017-02-19T08:24:13  *** Sosumi has joined #bitcoin-dev
160 2017-02-19T08:34:34  *** ThomasV has joined #bitcoin-dev
161 2017-02-19T08:34:57  *** matrix1233 has joined #bitcoin-dev
162 2017-02-19T08:40:28  *** matrix1233 has quit IRC
163 2017-02-19T08:59:27  *** ThomasV has quit IRC
164 2017-02-19T09:09:40  *** paveljanik has quit IRC
165 2017-02-19T09:11:10  *** cyphase has quit IRC
166 2017-02-19T09:52:16  *** Newyorkadam has joined #bitcoin-dev
167 2017-02-19T09:56:20  *** cyphase has joined #bitcoin-dev
168 2017-02-19T10:17:10  *** NewLiberty_ has quit IRC
169 2017-02-19T10:37:43  *** ThomasV has joined #bitcoin-dev
170 2017-02-19T10:50:39  *** Newyorkadam_ has joined #bitcoin-dev
171 2017-02-19T10:51:19  *** Newyorkadam has quit IRC
172 2017-02-19T10:51:19  *** Newyorkadam_ is now known as Newyorkadam
173 2017-02-19T11:04:25  *** ThomasV has quit IRC
174 2017-02-19T11:08:35  *** Newyorkadam_ has joined #bitcoin-dev
175 2017-02-19T11:09:20  *** Newyorkadam has quit IRC
176 2017-02-19T11:09:20  *** Newyorkadam_ is now known as Newyorkadam
177 2017-02-19T11:10:09  *** Sosumi has quit IRC
178 2017-02-19T11:15:54  *** NewLiberty_ has joined #bitcoin-dev
179 2017-02-19T11:28:43  *** Guyver2 has joined #bitcoin-dev
180 2017-02-19T11:59:23  *** blueness has quit IRC
181 2017-02-19T12:04:06  *** blueness has joined #bitcoin-dev
182 2017-02-19T12:07:57  *** McLovinMcLovin_ has joined #bitcoin-dev
183 2017-02-19T12:10:28  *** McLovinMcLovin has quit IRC
184 2017-02-19T12:10:57  *** oleganza has quit IRC
185 2017-02-19T12:12:49  *** oleganza has joined #bitcoin-dev
186 2017-02-19T12:19:06  *** ThomasV has joined #bitcoin-dev
187 2017-02-19T12:23:29  *** blueness has quit IRC
188 2017-02-19T12:34:27  *** MeoowWoof has joined #bitcoin-dev
189 2017-02-19T12:45:32  *** MeoowWoof has quit IRC
190 2017-02-19T12:48:51  *** Xanather has quit IRC
191 2017-02-19T12:53:52  *** agricocb has quit IRC
192 2017-02-19T13:05:46  *** ThomasV has quit IRC
193 2017-02-19T13:07:17  *** blueness has joined #bitcoin-dev
194 2017-02-19T13:27:32  *** oleganza has quit IRC
195 2017-02-19T13:42:06  *** blueness has quit IRC
196 2017-02-19T13:48:00  *** Giszmo has joined #bitcoin-dev
197 2017-02-19T13:58:17  *** moli_ has quit IRC
198 2017-02-19T14:03:42  *** agricocb has joined #bitcoin-dev
199 2017-02-19T14:11:05  *** wasi has quit IRC
200 2017-02-19T14:11:29  *** wasi has joined #bitcoin-dev
201 2017-02-19T14:28:13  *** iv3c has joined #bitcoin-dev
202 2017-02-19T14:31:26  *** cdecker has quit IRC
203 2017-02-19T14:31:53  *** cdecker has joined #bitcoin-dev
204 2017-02-19T14:45:13  *** ThomasV has joined #bitcoin-dev
205 2017-02-19T14:51:42  *** chjj has joined #bitcoin-dev
206 2017-02-19T15:48:50  *** wasi has quit IRC
207 2017-02-19T15:49:11  *** wasi has joined #bitcoin-dev
208 2017-02-19T16:02:52  *** McLovinMcLovin_ is now known as McLovinMcLovin
209 2017-02-19T16:14:08  *** matrix1233 has joined #bitcoin-dev
210 2017-02-19T16:18:51  *** matrix1233 has quit IRC
211 2017-02-19T16:19:47  *** blueness has joined #bitcoin-dev
212 2017-02-19T16:21:36  *** blueness has quit IRC
213 2017-02-19T16:33:58  *** blueness has joined #bitcoin-dev
214 2017-02-19T16:38:25  *** Newyorkadam has quit IRC
215 2017-02-19T16:38:50  *** Newyorkadam has joined #bitcoin-dev
216 2017-02-19T16:39:02  *** blueness has quit IRC
217 2017-02-19T16:39:14  *** Newyorkadam has quit IRC
218 2017-02-19T16:39:27  *** chjj has quit IRC
219 2017-02-19T16:39:41  *** chjj has joined #bitcoin-dev
220 2017-02-19T16:50:55  *** chjj has quit IRC
221 2017-02-19T16:51:07  *** chjj has joined #bitcoin-dev
222 2017-02-19T16:59:52  *** afk11_ has joined #bitcoin-dev
223 2017-02-19T17:01:14  *** afk11_ has joined #bitcoin-dev
224 2017-02-19T17:02:47  *** afk11_ has joined #bitcoin-dev
225 2017-02-19T17:03:25  *** blueness has joined #bitcoin-dev
226 2017-02-19T17:04:39  *** afk11_ has quit IRC
227 2017-02-19T17:04:52  *** ThomasV has quit IRC
228 2017-02-19T17:05:13  *** afk11_ has joined #bitcoin-dev
229 2017-02-19T17:05:55  *** afk11_ has joined #bitcoin-dev
230 2017-02-19T17:06:35  *** afk11_ has joined #bitcoin-dev
231 2017-02-19T17:07:02  *** d9b4bef9 has quit IRC
232 2017-02-19T17:08:08  *** d9b4bef9 has joined #bitcoin-dev
233 2017-02-19T17:11:52  *** afk11_ is now known as afk11
234 2017-02-19T17:45:50  <arubi> trying jl12012's mast v3 branch, does anyone know the structure for the json used to redeem an input?  I mean the json signrawtransaction\bitcoin-tx takes (if there's a way to do that at all).  I can build redeeming transactions fine, but core's script_tests.json requires a specific dummy input and to feed a test back to core for "signing" requires to also pass the json with the redeeming info.
235 2017-02-19T17:54:03  <arubi> ooh 'bool IsMASTStack()' ..
236 2017-02-19T17:55:20  <arubi> wonder if wants the actual witness stack in "redeemScript"..  I'm already passing it a proper witness stack but it's overwriting it with nothing as it signs then fails with "Invalid witness stack for MAST"
237 2017-02-19T17:58:53  <arubi> the witness is empty when IsMASTStack() runs..  weird
238 2017-02-19T17:58:55  *** moli_ has joined #bitcoin-dev
239 2017-02-19T17:59:37  *** jtimon has joined #bitcoin-dev
240 2017-02-19T18:08:10  *** cybrNaut has quit IRC
241 2017-02-19T18:08:52  *** aschildbach has joined #bitcoin-dev
242 2017-02-19T18:14:53  *** OMDPrebel has joined #bitcoin-dev
243 2017-02-19T18:20:43  *** cybrNaut has joined #bitcoin-dev
244 2017-02-19T18:21:58  *** moli_ has quit IRC
245 2017-02-19T18:23:35  *** moli_ has joined #bitcoin-dev
246 2017-02-19T18:26:42  *** cybrNaut has joined #bitcoin-dev
247 2017-02-19T18:46:13  *** cybrNaut has joined #bitcoin-dev
248 2017-02-19T18:56:45  *** mnk has quit IRC
249 2017-02-19T18:57:12  *** cybrNaut has joined #bitcoin-dev
250 2017-02-19T19:02:50  *** aschildbach has quit IRC
251 2017-02-19T19:04:12  *** cybrNaut has joined #bitcoin-dev
252 2017-02-19T19:13:27  *** iv3c has quit IRC
253 2017-02-19T19:20:59  <arubi> waxwing, so I was mentioning covenants before, seems like it's "almost" possible, almost means that you can do it if you break sha256:  https://0bin.net/paste/SwIB39NtuUgbrhjn#OEAHZXZAcoZOQpFQlsbnSXOY8hFJS0NjfUpYQy-HI3h
254 2017-02-19T19:22:03  <arubi> last time I tried I couldn't commit to a pubkey + sig in the same script, but that was because I was using the signature's hash160, and not the signature itself
255 2017-02-19T19:22:22  <waxwing> what am  i looking at :)
256 2017-02-19T19:22:47  <waxwing> is the quoted string the return value from signrawtransaction? i haven't used that for ages
257 2017-02-19T19:22:51  <arubi> the scriptpubkey for redeeming that input is the pubkey + signature + checksig
258 2017-02-19T19:23:08  <arubi> nope, it's the inputs
259 2017-02-19T19:23:12  <arubi> input*
260 2017-02-19T19:23:21  <arubi> anyway, get this
261 2017-02-19T19:23:40  <arubi> seems like there's a very little documented "feature" in checksig stuff
262 2017-02-19T19:23:56  <arubi> it's called "find and delete", at least I think that's the name
263 2017-02-19T19:24:13  <waxwing> sure, heard of it, apparently it's weird somehow
264 2017-02-19T19:24:31  <arubi> if checksig spots a proper signature in its sighash, it deletes it
265 2017-02-19T19:24:48  <waxwing> so can you write those scriptpubkey and redeemscripts?
266 2017-02-19T19:24:53  <arubi> so '<signature> checksig' as a scriptpubkey becomes '<checksig>
267 2017-02-19T19:25:12  <waxwing> i see; so only in scriptPubKey?
268 2017-02-19T19:25:53  <arubi> only when a scriptcode is used in a checksig operation
269 2017-02-19T19:26:13  *** cybrNaut has joined #bitcoin-dev
270 2017-02-19T19:26:53  <arubi> so you can send to a p2sh of 'pubkey codesep <sig> checksig', but when checksig is done, it only checks 'checksig'
271 2017-02-19T19:27:35  <arubi> so, you can actually commit to a pubkey in the scriptpbukey itself, and sign a transaction to specific outputs... but!  you still have to sign specific inputs
272 2017-02-19T19:28:21  <arubi> er, s/<sig> checksig/<sig> swap checksig/g'
273 2017-02-19T19:28:24  *** blueness has quit IRC
274 2017-02-19T19:30:59  <arubi> waxwing, stack trace:  https://paste.debian.net/plainh/eae9018c
275 2017-02-19T19:32:24  <arubi> it kinda does a lot of ROLLs where a single swap is enough, but originally it was a 2-of-2 multisig and I just trimmed it down again to make sure I have to actually break sha256 to make it work :P
276 2017-02-19T19:34:21  <arubi> I mean, the real issue is that you make the signature only after you know the input txid, and the input txid depends on the scriptpubkey that you used, and the scriptpubkey is a hash160 that includes the signature + pubkey..  even if you have the private key for that pubkey, you still can't sign it
277 2017-02-19T19:34:43  *** cybrNaut has joined #bitcoin-dev
278 2017-02-19T19:35:24  <arubi> only if you don't commit to a pubkey, and then anyone can spend it as it's redeemed
279 2017-02-19T19:36:20  <arubi> I /could/ make it work live if I used sighash single bug, but then again I haven't committed to anything.  any hash is '1'
280 2017-02-19T19:39:32  <waxwing> arubi: i'm not following, but maybe just write out the simplest example of a scriptPubkey for this? might help a bit.
281 2017-02-19T19:39:34  *** MeoowWoof has joined #bitcoin-dev
282 2017-02-19T19:40:06  *** ThomasV has joined #bitcoin-dev
283 2017-02-19T19:40:08  <arubi> suppose I send funds to '<pubkey> codesep <sig> swap checksig'
284 2017-02-19T19:40:35  <waxwing> right so findanddelete means the sig is deleted?
285 2017-02-19T19:40:58  <arubi> when checksig is executed, what is checked as scriptsig is 'swap checksig'
286 2017-02-19T19:40:58  <MeoowWoof> good evening
287 2017-02-19T19:41:14  *** cybrNaut has joined #bitcoin-dev
288 2017-02-19T19:41:26  <arubi> sig is deleted because of find and delete, pubkey is gone because of op_codesep
289 2017-02-19T19:42:13  <arubi> so really, the signature is made for some tx metadata like version, num inputs, num outputs, outputs themselves, and an nlocktime
290 2017-02-19T19:42:33  <arubi> but what's missing is the input txid (and index, but meh)
291 2017-02-19T19:42:59  <waxwing> i've probably forgotten some basics, but what you wrote there was the scriptpubkey write? what is used as scriptsig when spending?
292 2017-02-19T19:43:08  <waxwing> s/write/right/
293 2017-02-19T19:43:55  <arubi> right, checksig will use the scriptpubkey up to the leftmost code separator and up to the end to the right, deleting all code separators
294 2017-02-19T19:44:21  <arubi> so here the pubkey is to the left of the codesep, so it's not in scriptsig when checksig is executed
295 2017-02-19T19:44:48  <waxwing> sorry i still don't get what is used as scriptsig when spending? what you wrote above was the scriptpubkey, no?
296 2017-02-19T19:45:13  <waxwing> you wrote "suppose I send funds to '<pubkey> codesep <sig> swap checksig'", so i assumed that was the scriptpubkey?
297 2017-02-19T19:45:15  <arubi> oh I see where I'm confusing you here
298 2017-02-19T19:46:16  <arubi> '<pubkey> codesep <sig> swap checksig' is the redeemscript of a p2sh which scriptpubkey is '<script hash160> equal', and when I send funds to that script, I send it to the p2sh script.  this is clear, right?
299 2017-02-19T19:46:50  <waxwing> ok, i didn't realise it was p2sh, got it
300 2017-02-19T19:47:30  <arubi> right, so '<pubkey> codesep <sig> swap checksig' is what's executed
301 2017-02-19T19:47:32  <waxwing> so i get that FAD removes the sig, but then you have 'swap op checksig' is that right?
302 2017-02-19T19:47:47  <arubi> yea, and that's easy to sign "in advance"
303 2017-02-19T19:48:06  <waxwing> i'm still lost because i thought you had to have two arguments to op checksig
304 2017-02-19T19:48:16  <arubi> the pubkey and the sig
305 2017-02-19T19:48:25  <waxwing> doesn't the codeseparator remove the pubkey from the stack or something?
306 2017-02-19T19:48:33  <arubi> nope :)
307 2017-02-19T19:48:50  <arubi> just used as a sighash "tweak"
308 2017-02-19T19:48:51  *** bsm117532 has quit IRC
309 2017-02-19T19:48:53  <waxwing> i never really knew about codeseparator. what's it for? for sighashing?
310 2017-02-19T19:48:55  <waxwing> ok yeah
311 2017-02-19T19:49:01  <waxwing> that makes sense i think
312 2017-02-19T19:49:04  <arubi> the pubkey and sig are already consumed by checksig when that happens
313 2017-02-19T19:49:55  *** MeoowWoof has quit IRC
314 2017-02-19T19:50:11  <arubi> so assuming I'm setting up a mock transaction that uses that scriptpubkey as a redeemscript from an unknown transaction to pay some predetermined outputs
315 2017-02-19T19:50:20  *** MeoowWoof has joined #bitcoin-dev
316 2017-02-19T19:51:17  <arubi> and for that signature I put in some mock "AAAAAAAAAAAAAAAAAA..." and index 0 as the txid and index, now if at any time there is a txid AAAAAAAAAAAA... that pays this scriptpubkey as output 0, then you have a guarantee to get paid by this transaction
317 2017-02-19T19:51:52  <arubi> but of course, getting a transaction to get a txid of AAAAAAAA.. is.. /difficult/
318 2017-02-19T19:52:17  <waxwing> hang on, slow progress for me here, i have to re-read the op-checksig page
319 2017-02-19T19:53:29  *** paveljanik has joined #bitcoin-dev
320 2017-02-19T19:53:48  <arubi> in the case where it's a single input and output, it looks just like the spend transaction but instead of having redeemscript pushed as a single vale (followed by signatures), it has the redeemscript as an actual script
321 2017-02-19T19:55:18  <waxwing> so the gist of it is, you're creating an output whose spending is conditional on the tx metadata and input txids, something like that
322 2017-02-19T19:56:37  <arubi> everything is set in stone once the scriptpubkey is made, even the input txid
323 2017-02-19T19:56:44  <waxwing> if sighash_single i guess that narrows it a bit. but yeah seems academic without tx preimage somehow or other.
324 2017-02-19T19:56:51  <waxwing> sorry hash preimage
325 2017-02-19T19:57:08  <arubi> sighash single bug, where the signature will only have to sign 0x01
326 2017-02-19T19:57:13  <arubi> 0100000001AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA000000004976A9143EED3148939D0C00549EFE8358E1A3EADE9FCA7A88AB0028302502205C4DE957015B013284B8BDD48074E176D80F6D831209F79E410F8C6B8E69FABA02010101537A537A51AEFDFFFFFF01C09EE605000000001976A914C00310F39283CCFE5AD84F152D14B85532A483F088AC0000000001000000
327 2017-02-19T19:57:23  <arubi> is how it looks like for sighash, I hope I got that right
328 2017-02-19T19:57:36  *** chjj has quit IRC
329 2017-02-19T19:57:44  <waxwing> right so do i understand you're saying it can be done with single due to that bug (i never really looked into it)
330 2017-02-19T19:58:11  <arubi> yea, but it loses all meaning because the hash is always 1
331 2017-02-19T19:58:23  <waxwing> maybe you can play some games with zk proofs of hash preimage
332 2017-02-19T19:59:06  <arubi> way too advanced for me..  I'm trying MAST right now, I think it has op codes that can be used to make it work
333 2017-02-19T19:59:27  <waxwing> oh really? you think that could make it possible?
334 2017-02-19T19:59:46  <waxwing> oh does mast have more op codes
335 2017-02-19T20:00:13  <arubi> invert, xor, cat, substr..  really lots of possibilities to work on a signature
336 2017-02-19T20:00:21  <waxwing> well re advanced: you could start by considering a spherical preimage :)
337 2017-02-19T20:00:46  <arubi> is that like chameleon hashes?
338 2017-02-19T20:00:58  <arubi> that's the vibe I'm getting :)
339 2017-02-19T20:00:58  <waxwing> heh, no, reference to spherical cows :)
340 2017-02-19T20:01:01  <arubi> ohh!
341 2017-02-19T20:01:08  <arubi> yea I just got it haha
342 2017-02-19T20:01:46  <arubi> you can see how my brain has completely melted at this point.  I'm building some tools to let me debug mast scripts
343 2017-02-19T20:01:47  <waxwing> i was just kind of saying, if you assumed that proof of hash preimage knowledge was available, maybe you could do something with it. but, on reflection probably not interesting.
344 2017-02-19T20:02:19  <arubi> well, one of the examples on bip-mastopcodes is provably revealing a private key from a signature
345 2017-02-19T20:02:36  <arubi> another example is zero trust lottery between two parties
346 2017-02-19T20:02:37  <waxwing> bip # ?
347 2017-02-19T20:02:44  *** cybrNaut has joined #bitcoin-dev
348 2017-02-19T20:02:58  <arubi> has no number, it's on jl2012's fork of the bips repo
349 2017-02-19T20:03:10  <arubi> 'mastopcodes', really insane stuff
350 2017-02-19T20:04:36  <waxwing> this one? https://github.com/jl2012/bips/blob/bip114v3/bip-0114.mediawiki
351 2017-02-19T20:04:41  <arubi> https://github.com/jl2012/bips/blob/mastopcodes/bip-mastopcodes.mediawiki
352 2017-02-19T20:04:51  <arubi> 114 is mast in general
353 2017-02-19T20:05:24  *** blueness has joined #bitcoin-dev
354 2017-02-19T20:05:28  <waxwing> thanks
355 2017-02-19T20:06:59  <arubi> np, anyway, I'll be back after dinner for some more bitcoin, cya :)
356 2017-02-19T20:14:44  *** cybrNaut has joined #bitcoin-dev
357 2017-02-19T20:17:42  *** iv3c has joined #bitcoin-dev
358 2017-02-19T20:20:07  *** blueness has quit IRC
359 2017-02-19T20:21:52  *** ThomasV has quit IRC
360 2017-02-19T20:23:12  <MeoowWoof> hey guys
361 2017-02-19T20:23:18  <MeoowWoof> first time looking at the source
362 2017-02-19T20:23:37  <MeoowWoof> can some one suggest which is a good point to put a breakpoint to follow a transaction.
363 2017-02-19T20:23:56  <MeoowWoof> I cant seem to figure out where classes like coincontrol, wallet are init
364 2017-02-19T20:31:42  *** harai has joined #bitcoin-dev
365 2017-02-19T20:37:43  *** afk11 has quit IRC
366 2017-02-19T20:38:00  *** MeoowWoof has quit IRC
367 2017-02-19T20:38:13  *** afk11 has joined #bitcoin-dev
368 2017-02-19T20:40:54  *** afk11 has quit IRC
369 2017-02-19T20:41:33  *** ThomasV has joined #bitcoin-dev
370 2017-02-19T20:42:15  *** afk11 has joined #bitcoin-dev
371 2017-02-19T20:58:17  *** Qatz has quit IRC
372 2017-02-19T21:10:27  *** ThomasV has quit IRC
373 2017-02-19T21:22:21  <mryandao> bitcoind.cpp
374 2017-02-19T21:22:40  *** Qatz has joined #bitcoin-dev
375 2017-02-19T21:22:44  <mryandao> From acceptance into mempool onwards
376 2017-02-19T21:24:10  <arubi> he's gone :(
377 2017-02-19T21:30:00  *** ThomasV has joined #bitcoin-dev
378 2017-02-19T21:31:09  *** blueness has joined #bitcoin-dev
379 2017-02-19T22:01:04  <mryandao> Oh sad :(
380 2017-02-19T22:03:06  *** To7 has joined #bitcoin-dev
381 2017-02-19T22:03:32  *** harai_ has joined #bitcoin-dev
382 2017-02-19T22:04:34  *** harai has quit IRC
383 2017-02-19T22:08:02  *** janko33 has quit IRC
384 2017-02-19T22:16:20  *** Guyver2 has quit IRC
385 2017-02-19T22:21:40  *** ThomasV has quit IRC
386 2017-02-19T22:34:26  <luke-jr> mryandao: bitcoind.cpp is definitely the wrong answer..
387 2017-02-19T22:58:32  *** Qatz has quit IRC
388 2017-02-19T23:01:57  *** Qatz has joined #bitcoin-dev
389 2017-02-19T23:03:31  *** cdecker has quit IRC
390 2017-02-19T23:06:36  *** cdecker has joined #bitcoin-dev
391 2017-02-19T23:48:18  *** waxwing has quit IRC