@@ -1230,7 +1230,7 @@ where
1230
1230
1231
1231
let mut polynomials = polys
1232
1232
. iter ( )
1233
- . map ( |( p, d1_size) | ( coefficients_form ( p) , None , non_hiding ( * d1_size) ) )
1233
+ . map ( |( p, d1_size) | ( coefficients_form ( p) , non_hiding ( * d1_size) ) )
1234
1234
. collect :: < Vec < _ > > ( ) ;
1235
1235
1236
1236
let fixed_hiding = |d1_size : usize | PolyComm {
@@ -1245,62 +1245,52 @@ where
1245
1245
//~~ * the poseidon selector
1246
1246
//~~ * the 15 registers/witness columns
1247
1247
//~~ * the 6 sigmas
1248
- polynomials. push ( (
1249
- coefficients_form ( & public_poly) ,
1250
- None ,
1251
- fixed_hiding ( num_chunks) ,
1252
- ) ) ;
1253
- polynomials. push ( ( coefficients_form ( & ft) , None , blinding_ft) ) ;
1254
- polynomials. push ( ( coefficients_form ( & z_poly) , None , z_comm. blinders ) ) ;
1248
+ polynomials. push ( ( coefficients_form ( & public_poly) , fixed_hiding ( num_chunks) ) ) ;
1249
+ polynomials. push ( ( coefficients_form ( & ft) , blinding_ft) ) ;
1250
+ polynomials. push ( ( coefficients_form ( & z_poly) , z_comm. blinders ) ) ;
1255
1251
polynomials. push ( (
1256
1252
evaluations_form ( & index. column_evaluations . generic_selector4 ) ,
1257
- None ,
1258
1253
fixed_hiding ( num_chunks) ,
1259
1254
) ) ;
1260
1255
polynomials. push ( (
1261
1256
evaluations_form ( & index. column_evaluations . poseidon_selector8 ) ,
1262
- None ,
1263
1257
fixed_hiding ( num_chunks) ,
1264
1258
) ) ;
1265
1259
polynomials. push ( (
1266
1260
evaluations_form ( & index. column_evaluations . complete_add_selector4 ) ,
1267
- None ,
1268
1261
fixed_hiding ( num_chunks) ,
1269
1262
) ) ;
1270
1263
polynomials. push ( (
1271
1264
evaluations_form ( & index. column_evaluations . mul_selector8 ) ,
1272
- None ,
1273
1265
fixed_hiding ( num_chunks) ,
1274
1266
) ) ;
1275
1267
polynomials. push ( (
1276
1268
evaluations_form ( & index. column_evaluations . emul_selector8 ) ,
1277
- None ,
1278
1269
fixed_hiding ( num_chunks) ,
1279
1270
) ) ;
1280
1271
polynomials. push ( (
1281
1272
evaluations_form ( & index. column_evaluations . endomul_scalar_selector8 ) ,
1282
- None ,
1283
1273
fixed_hiding ( num_chunks) ,
1284
1274
) ) ;
1285
1275
polynomials. extend (
1286
1276
witness_poly
1287
1277
. iter ( )
1288
1278
. zip ( w_comm. iter ( ) )
1289
- . map ( |( w, c) | ( coefficients_form ( w) , None , c. blinders . clone ( ) ) )
1279
+ . map ( |( w, c) | ( coefficients_form ( w) , c. blinders . clone ( ) ) )
1290
1280
. collect :: < Vec < _ > > ( ) ,
1291
1281
) ;
1292
1282
polynomials. extend (
1293
1283
index
1294
1284
. column_evaluations
1295
1285
. coefficients8
1296
1286
. iter ( )
1297
- . map ( |coefficientm| ( evaluations_form ( coefficientm) , None , non_hiding ( num_chunks) ) )
1287
+ . map ( |coefficientm| ( evaluations_form ( coefficientm) , non_hiding ( num_chunks) ) )
1298
1288
. collect :: < Vec < _ > > ( ) ,
1299
1289
) ;
1300
1290
polynomials. extend (
1301
1291
index. column_evaluations . permutation_coefficients8 [ 0 ..PERMUTS - 1 ]
1302
1292
. iter ( )
1303
- . map ( |w| ( evaluations_form ( w) , None , non_hiding ( num_chunks) ) )
1293
+ . map ( |w| ( evaluations_form ( w) , non_hiding ( num_chunks) ) )
1304
1294
. collect :: < Vec < _ > > ( ) ,
1305
1295
) ;
1306
1296
@@ -1310,7 +1300,6 @@ where
1310
1300
{
1311
1301
polynomials. push ( (
1312
1302
evaluations_form ( range_check0_selector8) ,
1313
- None ,
1314
1303
non_hiding ( num_chunks) ,
1315
1304
) ) ;
1316
1305
}
@@ -1319,7 +1308,6 @@ where
1319
1308
{
1320
1309
polynomials. push ( (
1321
1310
evaluations_form ( range_check1_selector8) ,
1322
- None ,
1323
1311
non_hiding ( num_chunks) ,
1324
1312
) ) ;
1325
1313
}
@@ -1330,7 +1318,6 @@ where
1330
1318
{
1331
1319
polynomials. push ( (
1332
1320
evaluations_form ( foreign_field_add_selector8) ,
1333
- None ,
1334
1321
non_hiding ( num_chunks) ,
1335
1322
) ) ;
1336
1323
}
@@ -1341,23 +1328,14 @@ where
1341
1328
{
1342
1329
polynomials. push ( (
1343
1330
evaluations_form ( foreign_field_mul_selector8) ,
1344
- None ,
1345
1331
non_hiding ( num_chunks) ,
1346
1332
) ) ;
1347
1333
}
1348
1334
if let Some ( xor_selector8) = index. column_evaluations . xor_selector8 . as_ref ( ) {
1349
- polynomials. push ( (
1350
- evaluations_form ( xor_selector8) ,
1351
- None ,
1352
- non_hiding ( num_chunks) ,
1353
- ) ) ;
1335
+ polynomials. push ( ( evaluations_form ( xor_selector8) , non_hiding ( num_chunks) ) ) ;
1354
1336
}
1355
1337
if let Some ( rot_selector8) = index. column_evaluations . rot_selector8 . as_ref ( ) {
1356
- polynomials. push ( (
1357
- evaluations_form ( rot_selector8) ,
1358
- None ,
1359
- non_hiding ( num_chunks) ,
1360
- ) ) ;
1338
+ polynomials. push ( ( evaluations_form ( rot_selector8) , non_hiding ( num_chunks) ) ) ;
1361
1339
}
1362
1340
1363
1341
//~~ * optionally, the runtime table
@@ -1368,17 +1346,13 @@ where
1368
1346
let sorted_comms = lookup_context. sorted_comms . as_ref ( ) . unwrap ( ) ;
1369
1347
1370
1348
for ( poly, comm) in sorted_poly. iter ( ) . zip ( sorted_comms) {
1371
- polynomials. push ( ( coefficients_form ( poly) , None , comm. blinders . clone ( ) ) ) ;
1349
+ polynomials. push ( ( coefficients_form ( poly) , comm. blinders . clone ( ) ) ) ;
1372
1350
}
1373
1351
1374
1352
//~~ * add the lookup aggreg polynomial
1375
1353
let aggreg_poly = lookup_context. aggreg_coeffs . as_ref ( ) . unwrap ( ) ;
1376
1354
let aggreg_comm = lookup_context. aggreg_comm . as_ref ( ) . unwrap ( ) ;
1377
- polynomials. push ( (
1378
- coefficients_form ( aggreg_poly) ,
1379
- None ,
1380
- aggreg_comm. blinders . clone ( ) ,
1381
- ) ) ;
1355
+ polynomials. push ( ( coefficients_form ( aggreg_poly) , aggreg_comm. blinders . clone ( ) ) ) ;
1382
1356
1383
1357
//~~ * add the combined table polynomial
1384
1358
let table_blinding = if lcs. runtime_selector . is_some ( ) {
@@ -1399,7 +1373,7 @@ where
1399
1373
1400
1374
let joint_lookup_table = lookup_context. joint_lookup_table . as_ref ( ) . unwrap ( ) ;
1401
1375
1402
- polynomials. push ( ( coefficients_form ( joint_lookup_table) , None , table_blinding) ) ;
1376
+ polynomials. push ( ( coefficients_form ( joint_lookup_table) , table_blinding) ) ;
1403
1377
1404
1378
//~~ * if present, add the runtime table polynomial
1405
1379
if lcs. runtime_selector . is_some ( ) {
@@ -1408,7 +1382,6 @@ where
1408
1382
1409
1383
polynomials. push ( (
1410
1384
coefficients_form ( runtime_table) ,
1411
- None ,
1412
1385
runtime_table_comm. blinders . clone ( ) ,
1413
1386
) ) ;
1414
1387
}
@@ -1418,27 +1391,21 @@ where
1418
1391
if let Some ( runtime_lookup_table_selector) = lcs. runtime_selector . as_ref ( ) {
1419
1392
polynomials. push ( (
1420
1393
evaluations_form ( runtime_lookup_table_selector) ,
1421
- None ,
1422
1394
non_hiding ( 1 ) ,
1423
1395
) )
1424
1396
}
1425
1397
if let Some ( xor_lookup_selector) = lcs. lookup_selectors . xor . as_ref ( ) {
1426
- polynomials. push ( ( evaluations_form ( xor_lookup_selector) , None , non_hiding ( 1 ) ) )
1398
+ polynomials. push ( ( evaluations_form ( xor_lookup_selector) , non_hiding ( 1 ) ) )
1427
1399
}
1428
1400
if let Some ( lookup_gate_selector) = lcs. lookup_selectors . lookup . as_ref ( ) {
1429
- polynomials. push ( ( evaluations_form ( lookup_gate_selector) , None , non_hiding ( 1 ) ) )
1401
+ polynomials. push ( ( evaluations_form ( lookup_gate_selector) , non_hiding ( 1 ) ) )
1430
1402
}
1431
1403
if let Some ( range_check_lookup_selector) = lcs. lookup_selectors . range_check . as_ref ( ) {
1432
- polynomials. push ( (
1433
- evaluations_form ( range_check_lookup_selector) ,
1434
- None ,
1435
- non_hiding ( 1 ) ,
1436
- ) )
1404
+ polynomials. push ( ( evaluations_form ( range_check_lookup_selector) , non_hiding ( 1 ) ) )
1437
1405
}
1438
1406
if let Some ( foreign_field_mul_lookup_selector) = lcs. lookup_selectors . ffmul . as_ref ( ) {
1439
1407
polynomials. push ( (
1440
1408
evaluations_form ( foreign_field_mul_lookup_selector) ,
1441
- None ,
1442
1409
non_hiding ( 1 ) ,
1443
1410
) )
1444
1411
}
0 commit comments