Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit b1df848

Browse files
committed
Renaming structures.
1 parent 78bc854 commit b1df848

File tree

1 file changed

+16
-16
lines changed
  • libs/zk/include/nil/crypto3/zk/commitments/polynomial

1 file changed

+16
-16
lines changed

libs/zk/include/nil/crypto3/zk/commitments/polynomial/lpc.hpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ namespace nil {
6363
using basic_fri = typename LPCScheme::fri_type;
6464
using proof_type = typename LPCScheme::proof_type;
6565
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;
6868
using transcript_type = typename LPCScheme::transcript_type;
6969
using transcript_hash_type = typename LPCScheme::transcript_hash_type;
7070
using polynomial_type = PolynomialType;
@@ -174,7 +174,7 @@ namespace nil {
174174
* \param[in] transcript - This transcript is initialized from a challenge sent from the "Main" prover,
175175
on which the round proof was created for the polynomial F(x) = Sum(combined_Q).
176176
*/
177-
initial_proof_type proof_eval_initial_proof(
177+
lpc_proof_type proof_eval_lpc_proof(
178178
const polynomial_type& combined_Q, transcript_type &transcript) {
179179

180180
this->eval_polys();
@@ -202,7 +202,7 @@ namespace nil {
202202
* \param[in] transcript - This transcript is initialized on the main prover, which has digested
203203
challenges from all the other provers.
204204
*/
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) {
206206
// TODO(martun): this function belongs to FRI, not here, will move later.
207207
// Precommit to sum_poly.
208208
if (sum_poly.size() != _fri_params.D[0]->size()) {
@@ -231,7 +231,7 @@ namespace nil {
231231
std::vector<typename fri_type::field_type::value_type> challenges =
232232
transcript.template challenges<typename fri_type::field_type>(this->_fri_params.lambda);
233233

234-
round_proof_type result;
234+
fri_proof_type result;
235235

236236
result.fri_round_proof = nil::crypto3::zk::algorithms::query_phase_round_proofs<
237237
fri_type, polynomial_type>(
@@ -534,27 +534,27 @@ namespace nil {
534534
};
535535

536536
// 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;
540540
}
541541

542-
bool operator!=(const initial_proof_type &rhs) const {
542+
bool operator!=(const lpc_proof_type &rhs) const {
543543
return !(rhs == *this);
544544
}
545545

546546
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;
548548
};
549549

550550
// 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 {
553553
return fri_round_proof == rhs.fri_round_proof &&
554554
fri_commitments_proof_part == rhs.fri_commitments_proof_part;
555555
}
556556

557-
bool operator!=(const round_proof_type &rhs) const {
557+
bool operator!=(const fri_proof_type &rhs) const {
558558
return !(rhs == *this);
559559
}
560560

@@ -569,7 +569,7 @@ namespace nil {
569569
// when aggregated FRI is used.
570570
struct aggregated_proof_type {
571571
bool operator==(const aggregated_proof_type &rhs) const {
572-
return round_proofs == rhs.round_proofs &&
572+
return fri_proof == rhs.fri_proof &&
573573
intial_proofs_per_prover == rhs.intial_proofs_per_prover &&
574574
proof_of_work == rhs.proof_of_work;
575575
}
@@ -579,10 +579,10 @@ namespace nil {
579579
}
580580

581581
// 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;
583583

584584
// 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;
586586

587587
typename LPCParams::grinding_type::output_type proof_of_work;
588588
};

0 commit comments

Comments
 (0)