Skip to content

Commit da2bdb9

Browse files
committed
update comments
1 parent 5b8ad1b commit da2bdb9

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

src/stark/mod.rs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub fn prove(
106106
order,
107107
matrices[4],
108108
);
109-
log::info!("Generating tables took {:?}ms", (Local::now() - t).num_milliseconds());
109+
log::info!("Generating tables took: {:?}ms", (Local::now() - t).num_milliseconds());
110110
t = Local::now();
111111
processor_table.pad();
112112
memory_table.pad();
@@ -118,7 +118,7 @@ pub fn prove(
118118
instruction_table.table.generate_omicron_domain();
119119

120120
log::info!(
121-
"Padding all tables took {:?}ms",
121+
"Padding all tables took: {:?}ms",
122122
(Local::now() - t).num_milliseconds()
123123
);
124124

@@ -128,7 +128,7 @@ pub fn prove(
128128
.clone()
129129
.interpolate_columns(vec![0, 1, 2, 3, 4, 5, 6]);
130130
log::info!(
131-
"interpolating processor table took {:?}ms",
131+
"interpolating processor table took: {:?}ms",
132132
(Local::now() - t).num_milliseconds()
133133
);
134134

@@ -139,7 +139,7 @@ pub fn prove(
139139
.interpolate_columns(vec![0, 1, 2]);
140140

141141
log::info!(
142-
"Interpolating memory table took {:?}ms",
142+
"Interpolating memory table took: {:?}ms",
143143
(Local::now() - t).num_milliseconds()
144144
);
145145
t = Local::now();
@@ -148,7 +148,7 @@ pub fn prove(
148148
.clone()
149149
.interpolate_columns(vec![0, 1, 2]);
150150
log::info!(
151-
"Interpolating instruction table took {:?}ms",
151+
"Interpolating instruction table took: {:?}ms",
152152
(Local::now() - t).num_milliseconds()
153153
);
154154

@@ -165,7 +165,7 @@ pub fn prove(
165165
);
166166

167167
log::info!(
168-
"Extending the domain took {:?}ms",
168+
"Extending the domain took: {:?}ms",
169169
(Local::now() - t).num_milliseconds()
170170
);
171171
t = Local::now();
@@ -194,7 +194,7 @@ pub fn prove(
194194
}
195195

196196
log::info!(
197-
"Evaluating on the extended domain took {:?}ms",
197+
"Evaluating on the extended domain took: {:?}ms",
198198
(Local::now() - t).num_milliseconds()
199199
);
200200
t = Local::now();
@@ -219,7 +219,7 @@ pub fn prove(
219219
basecodeword.push(root);
220220
}
221221
log::info!(
222-
"Zipping all the codewords on the extended domain took {:?}ms",
222+
"Zipping all the codewords on the extended domain took: {:?}ms",
223223
(Local::now() - t).num_milliseconds()
224224
);
225225
t = Local::now();
@@ -229,7 +229,7 @@ pub fn prove(
229229
let merkle1 = MerkleTree::new(&basecodeword);
230230
channel.send(merkle1.inner.root().unwrap().to_vec());
231231
log::info!(
232-
"Commiting the base codewords took {:?}ms",
232+
"Commiting the base codewords took: {:?}ms",
233233
(Local::now() - t).num_milliseconds()
234234
);
235235

@@ -252,7 +252,7 @@ pub fn prove(
252252
.extend_column_ea(0, challenges_extension[ChallengeIndices::Delta as usize])
253253
.clone();
254254
log::info!(
255-
"Generating the extension column using the fiat-shamir challenges took {:?}ms",
255+
"Generating the extension column using the fiat-shamir challenges took: {:?}ms",
256256
(Local::now() - t).num_milliseconds()
257257
);
258258
t = Local::now();
@@ -274,7 +274,7 @@ pub fn prove(
274274
+ instruction_interpol_columns_2.len(),
275275
);
276276
log::info!(
277-
"Interpolating the extension columns took {:?}ms",
277+
"Interpolating the extension columns took: {:?}ms",
278278
(Local::now() - t).num_milliseconds()
279279
);
280280
t = Local::now();
@@ -297,7 +297,7 @@ pub fn prove(
297297
}
298298

299299
log::info!(
300-
"Evaluating the extension columns on the extended domain took {:?}ms",
300+
"Evaluating the extension columns on the extended domain took: {:?}ms",
301301
(Local::now() - t).num_milliseconds()
302302
);
303303
t = Local::now();
@@ -320,7 +320,7 @@ pub fn prove(
320320
extension_codeword.push(root);
321321
}
322322
log::info!(
323-
"Zipping all the extension codewords took {:?}ms",
323+
"Zipping all the extension codewords took: {:?}ms",
324324
(Local::now() - t).num_milliseconds()
325325
);
326326
t = Local::now();
@@ -329,7 +329,7 @@ pub fn prove(
329329
channel.send(merkle2.inner.root().unwrap().to_vec());
330330

331331
log::info!(
332-
"Commiting the extension codewords took {:?}ms",
332+
"Commiting the extension codewords took: {:?}ms",
333333
(Local::now() - t).num_milliseconds()
334334
);
335335
t = Local::now();
@@ -342,7 +342,7 @@ pub fn prove(
342342
let eval = FieldElement::zero(field);
343343

344344
log::info!(
345-
"receiving challenges for the combination polynomial took {:?}ms",
345+
"receiving challenges for the combination polynomial took: {:?}ms",
346346
(Local::now() - t).num_milliseconds()
347347
);
348348
t = Local::now();
@@ -357,14 +357,14 @@ pub fn prove(
357357
);
358358

359359
log::info!(
360-
"generating the processor AIR took {:?}ms",
360+
"generating the processor AIR took: {:?}ms",
361361
(Local::now() - t).num_milliseconds()
362362
);
363363
t = Local::now();
364364

365365
let memory_air = memory_table.generate_air(challenges_extension.clone(), terminal_memory[0]);
366366
log::info!(
367-
"generating the memory AIR took {:?}ms",
367+
"generating the memory AIR took: {:?}ms",
368368
(Local::now() - t).num_milliseconds()
369369
);
370370
t = Local::now();
@@ -375,7 +375,7 @@ pub fn prove(
375375
terminal_instruction[1],
376376
);
377377
log::info!(
378-
"generating the instruction AIR took {:?}ms",
378+
"generating the instruction AIR took: {:?}ms",
379379
(Local::now() - t).num_milliseconds()
380380
);
381381
t = Local::now();
@@ -384,21 +384,21 @@ pub fn prove(
384384

385385
let processor_zerofiers = processor_table.generate_zerofier();
386386
log::info!(
387-
"generating the processor zerofiers took {:?}ms",
387+
"generating the processor zerofiers took: {:?}ms",
388388
(Local::now() - t).num_milliseconds()
389389
);
390390
t = Local::now();
391391

392392
let memory_zerofiers = memory_table.generate_zerofier();
393393
log::info!(
394-
"generating the memory zerofiers took {:?}ms",
394+
"generating the memory zerofiers took: {:?}ms",
395395
(Local::now() - t).num_milliseconds()
396396
);
397397
t = Local::now();
398398

399399
let instruction_zerofiers = instruction_table.generate_zerofier();
400400
log::info!(
401-
"generating the instruction zerofiers took {:?}ms",
401+
"generating the instruction zerofiers took: {:?}ms",
402402
(Local::now() - t).num_milliseconds()
403403
);
404404
t = Local::now();
@@ -436,7 +436,7 @@ pub fn prove(
436436
})
437437
.collect();
438438
log::info!(
439-
"generating the quotient polynomial of all tables took {:?}ms",
439+
"generating the quotient polynomial of all tables took: {:?}ms",
440440
(Local::now() - t).num_milliseconds()
441441
);
442442
t = Local::now();
@@ -455,20 +455,20 @@ pub fn prove(
455455
field,
456456
);
457457
log::info!(
458-
"generating the combination polynomial took {:?}ms",
458+
"generating the combination polynomial took: {:?}ms",
459459
(Local::now() - t).num_milliseconds()
460460
);
461461
t = Local::now();
462462
let combination_codeword = domain.evaluate(combination.clone());
463463
log::info!(
464-
"evaluating the combination polynomial took {:?}ms",
464+
"evaluating the combination polynomial took: {:?}ms",
465465
(Local::now() - t).num_milliseconds()
466466
);
467467
t = Local::now();
468468
let merkle_combination = MerkleTree::new(&combination_codeword);
469469
channel.send(merkle_combination.inner.root().unwrap().to_vec());
470470
log::info!(
471-
"commiting the combination codewords took {:?}ms",
471+
"commiting the combination codewords took: {:?}ms",
472472
(Local::now() - t).num_milliseconds()
473473
);
474474
t = Local::now();
@@ -480,7 +480,7 @@ pub fn prove(
480480
&mut channel,
481481
);
482482
log::info!(
483-
"generating and commiting the Fri_layer took {:?}ms",
483+
"generating and commiting the Fri_layer took: {:?}ms",
484484
(Local::now() - t).num_milliseconds()
485485
);
486486
t = Local::now();
@@ -496,7 +496,7 @@ pub fn prove(
496496
&mut channel,
497497
);
498498
log::info!(
499-
"decommiting the Fri_layer took {:?}ms",
499+
"decommiting the Fri_layer took: {:?}ms",
500500
(Local::now() - t).num_milliseconds()
501501
);
502502
let mut fri_eval_domains = vec![];

0 commit comments

Comments
 (0)