@@ -966,16 +966,13 @@ impl HashLayerProof {
966
966
let mut r_joint_ops = challenges_ops;
967
967
r_joint_ops. extend ( rand_ops) ;
968
968
joint_claim_eval_ops. append_to_transcript ( b"joint_claim_eval_ops" , transcript) ;
969
- assert ! ( self
970
- . proof_ops
971
- . verify_plain(
972
- & gens. gens_ops,
973
- transcript,
974
- & r_joint_ops,
975
- & joint_claim_eval_ops,
976
- & comm. comm_comb_ops
977
- )
978
- . is_ok( ) ) ;
969
+ self . proof_ops . verify_plain (
970
+ & gens. gens_ops ,
971
+ transcript,
972
+ & r_joint_ops,
973
+ & joint_claim_eval_ops,
974
+ & comm. comm_comb_ops ,
975
+ ) ?;
979
976
980
977
// verify proof-mem using comm_comb_mem at rand_mem
981
978
// form a single decommitment using comb_comb_mem at rand_mem
@@ -1406,33 +1403,30 @@ impl PolyEvalNetworkProof {
1406
1403
let ( claims_ops_col_read, claims_ops_col_write) = claims_ops_col. split_at_mut ( num_instances) ;
1407
1404
1408
1405
// verify the proof of hash layer
1409
- assert ! ( self
1410
- . proof_hash_layer
1411
- . verify(
1412
- ( & rand_mem, & rand_ops) ,
1413
- & (
1414
- claims_mem[ 0 ] ,
1415
- claims_ops_row_read. to_vec( ) ,
1416
- claims_ops_row_write. to_vec( ) ,
1417
- claims_mem[ 1 ] ,
1418
- ) ,
1419
- & (
1420
- claims_mem[ 2 ] ,
1421
- claims_ops_col_read. to_vec( ) ,
1422
- claims_ops_col_write. to_vec( ) ,
1423
- claims_mem[ 3 ] ,
1424
- ) ,
1425
- & claims_dotp,
1426
- comm,
1427
- gens,
1428
- comm_derefs,
1429
- rx,
1430
- ry,
1431
- r_hash,
1432
- r_multiset_check,
1433
- transcript
1434
- )
1435
- . is_ok( ) ) ;
1406
+ self . proof_hash_layer . verify (
1407
+ ( & rand_mem, & rand_ops) ,
1408
+ & (
1409
+ claims_mem[ 0 ] ,
1410
+ claims_ops_row_read. to_vec ( ) ,
1411
+ claims_ops_row_write. to_vec ( ) ,
1412
+ claims_mem[ 1 ] ,
1413
+ ) ,
1414
+ & (
1415
+ claims_mem[ 2 ] ,
1416
+ claims_ops_col_read. to_vec ( ) ,
1417
+ claims_ops_col_write. to_vec ( ) ,
1418
+ claims_mem[ 3 ] ,
1419
+ ) ,
1420
+ & claims_dotp,
1421
+ comm,
1422
+ gens,
1423
+ comm_derefs,
1424
+ rx,
1425
+ ry,
1426
+ r_hash,
1427
+ r_multiset_check,
1428
+ transcript,
1429
+ ) ?;
1436
1430
timer. stop ( ) ;
1437
1431
1438
1432
Ok ( ( ) )
0 commit comments