@@ -63,8 +63,8 @@ namespace nil {
63
63
using basic_fri = typename LPCScheme::fri_type;
64
64
using proof_type = typename LPCScheme::proof_type;
65
65
using aggregated_proof_type = typename LPCScheme::aggregated_proof_type;
66
- using initial_proof_type = typename LPCScheme::initial_proof_type ;
67
- using round_proof_type = typename LPCScheme::round_proof_type ;
66
+ using lpc_proof_type = typename LPCScheme::lpc_proof_type ;
67
+ using fri_proof_type = typename LPCScheme::fri_proof_type ;
68
68
using transcript_type = typename LPCScheme::transcript_type;
69
69
using transcript_hash_type = typename LPCScheme::transcript_hash_type;
70
70
using polynomial_type = PolynomialType;
@@ -174,7 +174,7 @@ namespace nil {
174
174
* \param[in] transcript - This transcript is initialized from a challenge sent from the "Main" prover,
175
175
on which the round proof was created for the polynomial F(x) = Sum(combined_Q).
176
176
*/
177
- initial_proof_type proof_eval_initial_proof (
177
+ lpc_proof_type proof_eval_lpc_proof (
178
178
const polynomial_type& combined_Q, transcript_type &transcript) {
179
179
180
180
this ->eval_polys ();
@@ -202,7 +202,7 @@ namespace nil {
202
202
* \param[in] transcript - This transcript is initialized on the main prover, which has digested
203
203
challenges from all the other provers.
204
204
*/
205
- round_proof_type proof_eval_round_proof (const polynomial_type& sum_poly, transcript_type &transcript) {
205
+ fri_proof_type proof_eval_FRI_proof (const polynomial_type& sum_poly, transcript_type &transcript) {
206
206
// TODO(martun): this function belongs to FRI, not here, will move later.
207
207
// Precommit to sum_poly.
208
208
if (sum_poly.size () != _fri_params.D [0 ]->size ()) {
@@ -231,7 +231,7 @@ namespace nil {
231
231
std::vector<typename fri_type::field_type::value_type> challenges =
232
232
transcript.template challenges <typename fri_type::field_type>(this ->_fri_params .lambda );
233
233
234
- round_proof_type result;
234
+ fri_proof_type result;
235
235
236
236
result.fri_round_proof = nil::crypto3::zk::algorithms::query_phase_round_proofs<
237
237
fri_type, polynomial_type>(
@@ -534,27 +534,27 @@ namespace nil {
534
534
};
535
535
536
536
// Represents an initial proof, which must be created for each of the N provers.
537
- struct initial_proof_type {
538
- bool operator ==(const initial_proof_type &rhs) const {
539
- return initial_fri_proof == rhs.initial_fri_proof && z == rhs.z ;
537
+ struct lpc_proof_type {
538
+ bool operator ==(const lpc_proof_type &rhs) const {
539
+ return initial_fri_proofs == rhs.initial_fri_proofs && z == rhs.z ;
540
540
}
541
541
542
- bool operator !=(const initial_proof_type &rhs) const {
542
+ bool operator !=(const lpc_proof_type &rhs) const {
543
543
return !(rhs == *this );
544
544
}
545
545
546
546
eval_storage_type z;
547
- typename basic_fri::initial_proofs_batch_type initial_fri_proof ;
547
+ typename basic_fri::initial_proofs_batch_type initial_fri_proofs ;
548
548
};
549
549
550
550
// Represents a round proof, which must be created just once on the main prover.
551
- struct round_proof_type {
552
- bool operator ==(const round_proof_type &rhs) const {
551
+ struct fri_proof_type {
552
+ bool operator ==(const fri_proof_type &rhs) const {
553
553
return fri_round_proof == rhs.fri_round_proof &&
554
554
fri_commitments_proof_part == rhs.fri_commitments_proof_part ;
555
555
}
556
556
557
- bool operator !=(const round_proof_type &rhs) const {
557
+ bool operator !=(const fri_proof_type &rhs) const {
558
558
return !(rhs == *this );
559
559
}
560
560
@@ -569,7 +569,7 @@ namespace nil {
569
569
// when aggregated FRI is used.
570
570
struct aggregated_proof_type {
571
571
bool operator ==(const aggregated_proof_type &rhs) const {
572
- return round_proofs == rhs.round_proofs &&
572
+ return fri_proof == rhs.fri_proof &&
573
573
intial_proofs_per_prover == rhs.intial_proofs_per_prover &&
574
574
proof_of_work == rhs.proof_of_work ;
575
575
}
@@ -579,10 +579,10 @@ namespace nil {
579
579
}
580
580
581
581
// We have a single round proof for checking that F(X) is a low degree polynomial.
582
- round_proof_type round_proofs ;
582
+ fri_proof_type fri_proof ;
583
583
584
584
// For each prover we have an initial proof.
585
- std::vector<initial_proof_type > intial_proofs_per_prover;
585
+ std::vector<lpc_proof_type > intial_proofs_per_prover;
586
586
587
587
typename LPCParams::grinding_type::output_type proof_of_work;
588
588
};
0 commit comments