1 2016-11-28T00:07:23  *** one_zero has joined #bitcoin-dev
  2 2016-11-28T00:21:19  *** parliament has joined #bitcoin-dev
  3 2016-11-28T00:25:17  <parliament> How does a miner prove that they have a solution to the network without actually sharing the solution?
  4 2016-11-28T00:25:33  <parliament> I assume they don't share the real solution because then someone else could steal it and claim to have found it.
  5 2016-11-28T00:26:26  <parliament> the docs I've read that describe the number of leading 0 bits in the hash etc seem to always omit this detail
  6 2016-11-28T00:26:33  <achow101> parliament: no. the solution for a block includes the coinbase transaction which pays the miner
  7 2016-11-28T00:26:57  <parliament> OH
  8 2016-11-28T00:27:00  <parliament> thank you !
  9 2016-11-28T00:49:19  *** one_zero has joined #bitcoin-dev
 10 2016-11-28T00:53:12  *** CheckDavid has quit IRC
 11 2016-11-28T01:07:58  *** Chris_Stewart_5 has joined #bitcoin-dev
 12 2016-11-28T01:24:18  *** one_zero has quit IRC
 13 2016-11-28T01:25:15  *** PK has quit IRC
 14 2016-11-28T01:27:44  *** priidu has joined #bitcoin-dev
 15 2016-11-28T01:29:31  *** one_zero has joined #bitcoin-dev
 16 2016-11-28T01:34:13  *** priidu has quit IRC
 17 2016-11-28T01:35:20  *** blackwraith has quit IRC
 18 2016-11-28T01:45:44  *** herzmeister has quit IRC
 19 2016-11-28T01:46:05  *** herzmeister has joined #bitcoin-dev
 20 2016-11-28T01:54:43  *** blueness has quit IRC
 21 2016-11-28T01:57:25  *** Cory has quit IRC
 22 2016-11-28T01:57:57  *** Cory has joined #bitcoin-dev
 23 2016-11-28T01:58:38  *** blueness has joined #bitcoin-dev
 24 2016-11-28T02:03:17  *** robink has quit IRC
 25 2016-11-28T02:05:41  *** robink has joined #bitcoin-dev
 26 2016-11-28T02:18:11  *** Giszmo has quit IRC
 27 2016-11-28T02:35:17  *** ThomasV has quit IRC
 28 2016-11-28T03:05:39  *** Delta_ has joined #bitcoin-dev
 29 2016-11-28T03:09:59  *** Subo1977 has quit IRC
 30 2016-11-28T03:12:18  *** cysm has joined #bitcoin-dev
 31 2016-11-28T03:36:52  *** agricocb has quit IRC
 32 2016-11-28T03:38:19  *** anon616 has quit IRC
 33 2016-11-28T03:39:54  *** agricocb has joined #bitcoin-dev
 34 2016-11-28T03:45:05  *** justan0theruser has joined #bitcoin-dev
 35 2016-11-28T03:45:19  *** anon616 has joined #bitcoin-dev
 36 2016-11-28T03:47:42  *** justanotheruser has quit IRC
 37 2016-11-28T03:50:17  *** anon616 has quit IRC
 38 2016-11-28T03:53:50  *** anon616 has joined #bitcoin-dev
 39 2016-11-28T03:57:08  *** netsin has quit IRC
 40 2016-11-28T03:59:50  *** netsin has joined #bitcoin-dev
 41 2016-11-28T04:16:41  *** blueness has quit IRC
 42 2016-11-28T04:19:06  *** blueness has joined #bitcoin-dev
 43 2016-11-28T04:21:19  *** sh_smith has quit IRC
 44 2016-11-28T04:24:39  *** sh_smith has joined #bitcoin-dev
 45 2016-11-28T04:33:01  *** molz has joined #bitcoin-dev
 46 2016-11-28T04:33:14  *** molz is now known as moli
 47 2016-11-28T04:36:43  *** mol has quit IRC
 48 2016-11-28T05:16:16  *** janko33 has joined #bitcoin-dev
 49 2016-11-28T05:42:15  *** NewLiberty_ has joined #bitcoin-dev
 50 2016-11-28T05:44:21  *** NewLiberty has quit IRC
 51 2016-11-28T05:52:49  *** [7] has quit IRC
 52 2016-11-28T05:53:12  *** TheSeven has joined #bitcoin-dev
 53 2016-11-28T06:17:22  *** ThomasV has joined #bitcoin-dev
 54 2016-11-28T06:17:50  *** janko33 has quit IRC
 55 2016-11-28T06:19:02  *** weedcoder has joined #bitcoin-dev
 56 2016-11-28T06:23:36  *** weedcoder has quit IRC
 57 2016-11-28T06:47:30  *** ThomasV has quit IRC
 58 2016-11-28T06:48:41  *** ongolaBoy has joined #bitcoin-dev
 59 2016-11-28T07:02:24  *** herzmeister has quit IRC
 60 2016-11-28T07:06:30  *** HostFat has joined #bitcoin-dev
 61 2016-11-28T07:14:37  *** herzmeister has joined #bitcoin-dev
 62 2016-11-28T07:14:55  *** weedcoder has joined #bitcoin-dev
 63 2016-11-28T07:24:30  *** ThomasV has joined #bitcoin-dev
 64 2016-11-28T07:37:26  *** Atomicat has quit IRC
 65 2016-11-28T07:41:11  *** ThomasV has quit IRC
 66 2016-11-28T07:46:20  *** weedcoder has quit IRC
 67 2016-11-28T08:01:41  *** Atomicat has joined #bitcoin-dev
 68 2016-11-28T08:15:11  *** JZA has joined #bitcoin-dev
 69 2016-11-28T08:31:22  *** JZA has left #bitcoin-dev
 70 2016-11-28T08:32:37  *** jcorgan has left #bitcoin-dev
 71 2016-11-28T08:34:45  *** ongolaBoy has quit IRC
 72 2016-11-28T08:34:59  *** copumpkin has joined #bitcoin-dev
 73 2016-11-28T08:36:28  *** ongolaBoy has joined #bitcoin-dev
 74 2016-11-28T08:47:17  *** weedcoder has joined #bitcoin-dev
 75 2016-11-28T08:52:30  *** paveljanik has quit IRC
 76 2016-11-28T08:59:37  *** cysm has quit IRC
 77 2016-11-28T08:59:50  *** weedcoder has joined #bitcoin-dev
 78 2016-11-28T09:09:25  *** moli has quit IRC
 79 2016-11-28T09:11:19  *** ongolaBoy has quit IRC
 80 2016-11-28T09:11:37  <venzen> ping jonasschnelli
 81 2016-11-28T09:12:54  <venzen> jonasschnelli: i have compiled a .so file from your C chacha20poly1305@openssh library
 82 2016-11-28T09:13:04  *** ongolaBoy has joined #bitcoin-dev
 83 2016-11-28T09:14:03  <venzen> jonasschnelli: i'm using this .so file and the procedure and data in tests.c as the basis for writing a Python wrapper
 84 2016-11-28T09:16:26  <venzen> jonasschnelli: I've done some research to figure out how i can see the members of struct &aead_ctx, including defining a macro to print out the contents, but i'm still not clear
 85 2016-11-28T09:18:14  <venzen> jonasschnelli: as far as i can see this struct cast the keys K1 and K2 as an object that is passed to chacha20poly1305_crypt()
 86 2016-11-28T09:20:20  <venzen> jonasschnelli: what are the struct member names? I assume 'input' (int 16) via main_ctx is one, anything else I need to cast in that struct before passing to chacha20poly1305_crypt() ?
 87 2016-11-28T09:25:13  *** copumpkin has quit IRC
 88 2016-11-28T09:26:19  *** moli has joined #bitcoin-dev
 89 2016-11-28T09:30:57  *** NewLiberty_ has quit IRC
 90 2016-11-28T09:33:50  *** nazarewk has joined #bitcoin-dev
 91 2016-11-28T09:39:29  *** herzmeister has quit IRC
 92 2016-11-28T09:39:59  *** herzmeister has joined #bitcoin-dev
 93 2016-11-28T09:40:00  *** NewLiberty has joined #bitcoin-dev
 94 2016-11-28T09:40:01  *** herzmeisterderw has joined #bitcoin-dev
 95 2016-11-28T10:06:46  *** NewLiberty_ has joined #bitcoin-dev
 96 2016-11-28T10:09:31  *** Joseph__ has joined #bitcoin-dev
 97 2016-11-28T10:10:13  *** NewLiberty has quit IRC
 98 2016-11-28T10:11:54  *** NewLiberty_ has quit IRC
 99 2016-11-28T10:18:42  *** nowan has joined #bitcoin-dev
100 2016-11-28T10:23:02  *** ThomasV has joined #bitcoin-dev
101 2016-11-28T10:52:37  *** inaltoasinistra has joined #bitcoin-dev
102 2016-11-28T10:54:57  *** Joseph__ has quit IRC
103 2016-11-28T10:56:17  *** NewLiberty has joined #bitcoin-dev
104 2016-11-28T10:57:55  *** harai has quit IRC
105 2016-11-28T11:00:19  *** NewLiberty_ has joined #bitcoin-dev
106 2016-11-28T11:01:51  *** weedcoder has quit IRC
107 2016-11-28T11:02:39  *** NewLiberty has quit IRC
108 2016-11-28T11:05:16  *** NewLiberty has joined #bitcoin-dev
109 2016-11-28T11:07:12  *** NewLiberty_ has quit IRC
110 2016-11-28T11:18:46  *** weedcoder has joined #bitcoin-dev
111 2016-11-28T11:23:17  *** Atomicat has quit IRC
112 2016-11-28T11:23:18  *** weedcoder has quit IRC
113 2016-11-28T11:26:52  *** NewLiberty_ has joined #bitcoin-dev
114 2016-11-28T11:29:09  *** NewLiberty has quit IRC
115 2016-11-28T11:41:49  *** herzmeisterderw has quit IRC
116 2016-11-28T11:43:46  *** CheckDavid has joined #bitcoin-dev
117 2016-11-28T11:43:48  <jonasschnelli> venzen: 1st: be aware of that the C implementation is not really tested yet.
118 2016-11-28T11:44:32  <jonasschnelli> venzen: chacha20poly1305_init(&aead_ctx, aead_keys, 64); sets both keys (K1 and K2)
119 2016-11-28T11:44:45  <jonasschnelli> (512 bit key material)
120 2016-11-28T11:44:57  <jonasschnelli> = 2 x 32byte key (see BIP151)
121 2016-11-28T11:45:54  <jonasschnelli> First key is the key used to encrypt the payload/data, second key (upper 32 bytes) are used for the encrypting the payload-size.
122 2016-11-28T11:52:14  *** arubi has quit IRC
123 2016-11-28T11:52:34  *** arubi has joined #bitcoin-dev
124 2016-11-28T11:56:50  *** molz has joined #bitcoin-dev
125 2016-11-28T11:59:01  *** moli has quit IRC
126 2016-11-28T12:05:14  *** clopez has quit IRC
127 2016-11-28T12:07:54  *** clopez has joined #bitcoin-dev
128 2016-11-28T12:08:49  *** herzmeister has quit IRC
129 2016-11-28T12:09:44  *** Atomicat has joined #bitcoin-dev
130 2016-11-28T12:16:05  *** NewLiberty_ has quit IRC
131 2016-11-28T12:26:45  *** arubi has quit IRC
132 2016-11-28T12:27:08  *** blueness has quit IRC
133 2016-11-28T12:59:36  *** arubi has joined #bitcoin-dev
134 2016-11-28T13:02:26  *** ThomasV has quit IRC
135 2016-11-28T13:13:12  *** ongolaBoy has quit IRC
136 2016-11-28T13:19:38  <venzen> jonasschnelli: thanks for the feedback.
137 2016-11-28T13:21:12  <venzen> jonasschnelli: if we call chacha20poly1305_init(&aead_ctx, aead_keys, 64) in isolation (with two concatenated 32byte keys in "aead_keys")...
138 2016-11-28T13:22:10  <venzen> it's output is aead_ctx, correct?
139 2016-11-28T13:23:49  <venzen> so, as fa as i can understand, aead_ctx is a struct chachapolyaead_ctx
140 2016-11-28T13:24:29  <venzen> and struct chachapolyaead_ctx has two similar "sub" structs: main_ctx and header_ctx
141 2016-11-28T13:26:47  <venzen> How do we access the data encapsulated in aead_ctx? With aead_ctx.input, perhaps? I would like to understand this in order to define the data structure in my Python wrapper
142 2016-11-28T13:27:17  *** bandroidx has left #bitcoin-dev
143 2016-11-28T13:32:26  <jonasschnelli> aead_ctx is the context... and yes. There are two chacha20 context in the aead_ctx
144 2016-11-28T13:33:10  <jonasschnelli> Not sure how you do that in python... but can't your python context just holds the chachapolyaead_ctx?
145 2016-11-28T13:33:24  <jonasschnelli> IMO there is no need to expose/fiddle with the inner elements of the chachapolyaead_ctx
146 2016-11-28T13:35:03  *** ongolaBoy has joined #bitcoin-dev
147 2016-11-28T13:39:35  <venzen> jonasschnelli: that would be better :)   do we need to call chacha20poly1305_init() prior to making a call to chacha20poly1305_crypt() ? or can we call the chacha20poly1305_crypt() directly?
148 2016-11-28T13:41:20  <jonasschnelli> venzen: Yes. chacha20poly1305_init needs to be called otherwise you would have no keys
149 2016-11-28T13:41:28  *** agricocb has quit IRC
150 2016-11-28T13:41:37  <jonasschnelli> chacha20poly1305_init does set up the chacha20 keys
151 2016-11-28T13:42:03  <venzen> indeed, and then we can pass that straight ointo _crypt()
152 2016-11-28T13:42:11  <venzen> *into
153 2016-11-28T13:42:33  <jonasschnelli> Once you have done the init() you can use the context with chacha20poly1305_crypt
154 2016-11-28T13:42:51  <jonasschnelli> the chacha20poly1305_crypt is for encrypt and decrypt.
155 2016-11-28T13:43:01  <jonasschnelli> (mind the last int parameter)
156 2016-11-28T13:43:34  <venzen> sure. Well, to make a wrapper, i'm going to have to look inside that returned structure (aead_ctx)... no problem, i'll do it
157 2016-11-28T13:44:17  <jonasschnelli> venzen: great. I hope you PR the work on https://github.com/jonasschnelli/chacha20poly1305
158 2016-11-28T13:45:06  <venzen> i must covert the struct internals to a Python class - only because i need to cast that struct in Python before i can pass it to the wrapped _crypt()
159 2016-11-28T13:45:29  <venzen> sure, i will PR once there is something workable to show
160 2016-11-28T14:00:14  *** agricocb has joined #bitcoin-dev
161 2016-11-28T14:07:11  *** Soligor has quit IRC
162 2016-11-28T14:11:43  *** To7 has quit IRC
163 2016-11-28T14:15:44  *** ThomasV has joined #bitcoin-dev
164 2016-11-28T14:15:55  *** Soligor has joined #bitcoin-dev
165 2016-11-28T14:24:34  *** agricocb has quit IRC
166 2016-11-28T14:27:15  *** agricocb has joined #bitcoin-dev
167 2016-11-28T14:27:58  *** Logicwax has quit IRC
168 2016-11-28T14:37:08  *** bugs_ has joined #bitcoin-dev
169 2016-11-28T14:38:44  *** JackH has quit IRC
170 2016-11-28T14:55:21  *** harai has joined #bitcoin-dev
171 2016-11-28T14:56:45  *** bedeho has joined #bitcoin-dev
172 2016-11-28T14:59:45  *** To7 has joined #bitcoin-dev
173 2016-11-28T14:59:53  *** harai has quit IRC
174 2016-11-28T15:03:58  *** Giszmo has joined #bitcoin-dev
175 2016-11-28T15:16:40  *** bsm117532 has joined #bitcoin-dev
176 2016-11-28T15:20:32  *** agricocb has quit IRC
177 2016-11-28T15:55:26  <jonasschnelli> molz: No. The current plan is to get the first stepping stone into master (auxiliary block requests)
178 2016-11-28T15:55:30  <jonasschnelli> https://github.com/bitcoin/bitcoin/pull/9171
179 2016-11-28T15:58:33  *** treehug88 has joined #bitcoin-dev
180 2016-11-28T16:01:43  *** nowan has quit IRC
181 2016-11-28T16:01:44  *** REiN has quit IRC
182 2016-11-28T16:01:44  *** GreenIsMyPepper has quit IRC
183 2016-11-28T16:01:44  *** luke-jr has quit IRC
184 2016-11-28T16:01:44  *** sword_smith has quit IRC
185 2016-11-28T16:01:44  *** dizko has quit IRC
186 2016-11-28T16:01:44  *** thokon00 has quit IRC
187 2016-11-28T16:01:45  *** runeks has quit IRC
188 2016-11-28T16:01:45  *** dlb76 has quit IRC
189 2016-11-28T16:01:45  *** netg has quit IRC
190 2016-11-28T16:01:51  *** thokon00 has joined #bitcoin-dev
191 2016-11-28T16:02:00  *** netg has joined #bitcoin-dev
192 2016-11-28T16:02:02  *** nowan has joined #bitcoin-dev
193 2016-11-28T16:02:02  *** REiN has joined #bitcoin-dev
194 2016-11-28T16:02:23  *** luke-jr has joined #bitcoin-dev
195 2016-11-28T16:02:31  *** dizko has joined #bitcoin-dev
196 2016-11-28T16:02:31  *** GreenIsMyPepper has joined #bitcoin-dev
197 2016-11-28T16:05:04  *** dlb76 has joined #bitcoin-dev
198 2016-11-28T16:08:20  *** runeks has joined #bitcoin-dev
199 2016-11-28T16:08:28  *** ThomasV has quit IRC
200 2016-11-28T16:12:24  *** paveljanik has joined #bitcoin-dev
201 2016-11-28T16:17:55  <molz> jonasschnelli, ah ok, thank you
202 2016-11-28T16:31:43  *** justan0theruser has quit IRC
203 2016-11-28T16:36:12  *** nazarewk has quit IRC
204 2016-11-28T16:49:45  *** agricocb has joined #bitcoin-dev
205 2016-11-28T17:00:55  *** harai has joined #bitcoin-dev
206 2016-11-28T17:04:46  *** weedcoder has joined #bitcoin-dev
207 2016-11-28T17:06:18  *** Chris_Stewart_5 has quit IRC
208 2016-11-28T17:09:36  *** Chris_Stewart_5 has joined #bitcoin-dev
209 2016-11-28T17:16:03  *** ThomasV has joined #bitcoin-dev
210 2016-11-28T17:31:17  *** weedcoder has quit IRC
211 2016-11-28T17:33:04  *** droark has joined #bitcoin-dev
212 2016-11-28T18:06:44  *** janko33 has joined #bitcoin-dev
213 2016-11-28T18:07:45  *** agricocb has quit IRC
214 2016-11-28T18:21:20  *** blueness_ has joined #bitcoin-dev
215 2016-11-28T18:21:57  *** blueness_ is now known as blueness
216 2016-11-28T18:30:28  *** moli has joined #bitcoin-dev
217 2016-11-28T18:32:01  *** molz has quit IRC
218 2016-11-28T18:45:38  *** one_zero has quit IRC
219 2016-11-28T18:51:05  *** Chris_Stewart_5 has quit IRC
220 2016-11-28T18:52:33  *** molz has joined #bitcoin-dev
221 2016-11-28T18:52:33  *** meLon has joined #bitcoin-dev
222 2016-11-28T18:55:12  *** moli has quit IRC
223 2016-11-28T18:55:12  *** ThomasV has quit IRC
224 2016-11-28T18:56:29  *** priidu has joined #bitcoin-dev
225 2016-11-28T18:58:19  *** blackwraith has joined #bitcoin-dev
226 2016-11-28T18:58:45  *** mol has joined #bitcoin-dev
227 2016-11-28T18:59:54  *** ongolaBoy has quit IRC
228 2016-11-28T19:00:20  *** molz has quit IRC
229 2016-11-28T19:01:17  *** HostFat has quit IRC
230 2016-11-28T19:06:43  *** agricocb has joined #bitcoin-dev
231 2016-11-28T19:10:09  *** Chris_Stewart_5 has joined #bitcoin-dev
232 2016-11-28T19:14:13  *** cdecker has quit IRC
233 2016-11-28T19:24:57  *** agricocb has quit IRC
234 2016-11-28T19:28:45  *** chjj has quit IRC
235 2016-11-28T19:33:12  *** CheckDavid has quit IRC
236 2016-11-28T19:33:30  *** blueness has quit IRC
237 2016-11-28T19:53:06  *** sausage_factory has joined #bitcoin-dev
238 2016-11-28T19:54:36  *** blackwraith has quit IRC
239 2016-11-28T20:04:37  *** ThomasV has joined #bitcoin-dev
240 2016-11-28T20:06:50  *** chjj has joined #bitcoin-dev
241 2016-11-28T20:19:09  *** mol has quit IRC
242 2016-11-28T20:33:37  *** blackwraith has joined #bitcoin-dev
243 2016-11-28T20:35:14  *** sausage_factory has quit IRC
244 2016-11-28T20:42:27  *** blueness has joined #bitcoin-dev
245 2016-11-28T20:49:50  *** agricocb has joined #bitcoin-dev
246 2016-11-28T21:48:09  *** btcdrak has quit IRC
247 2016-11-28T21:55:59  *** herzmeister has joined #bitcoin-dev
248 2016-11-28T21:59:33  *** ThomasV has quit IRC
249 2016-11-28T22:25:10  *** chjj has quit IRC
250 2016-11-28T22:38:26  *** chjj has joined #bitcoin-dev
251 2016-11-28T22:38:37  *** cdecker has joined #bitcoin-dev
252 2016-11-28T22:39:50  *** harai has quit IRC
253 2016-11-28T22:49:40  *** igno_peverell has joined #bitcoin-dev
254 2016-11-28T22:50:45  *** janko33 has quit IRC
255 2016-11-28T22:54:02  *** ThomasV has joined #bitcoin-dev
256 2016-11-28T23:06:06  *** bugs_ has quit IRC
257 2016-11-28T23:23:24  *** ThomasV has quit IRC
258 2016-11-28T23:29:18  *** weedcoder has joined #bitcoin-dev
259 2016-11-28T23:49:27  *** herzmeister has quit IRC
260 2016-11-28T23:50:44  *** agricocb has quit IRC
261 2016-11-28T23:51:00  *** herzmeister has joined #bitcoin-dev
262 2016-11-28T23:52:32  *** justanotheruser has joined #bitcoin-dev