Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tnyuzg committed Jul 26, 2024
1 parent 80c147d commit b810b7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zkp/src/piop/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
pub mod accumulator;
pub mod addition_in_zq;
pub mod bit_decomposition;
pub mod zq_to_rq;
pub mod ntt;
pub mod rlwe_mul_rgsw;
pub mod round;
pub mod zq_to_rq;

pub use accumulator::{AccumulatorIOP, AccumulatorInstance, AccumulatorWitness};
pub use addition_in_zq::{AdditionInZq, AdditionInZqInstance};
Expand Down
4 changes: 2 additions & 2 deletions zkp/src/piop/zq_to_rq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ impl<F: Field> TransformZqtoRQSubclaim<F> {

// check 5: (2n/q) * a(u) = k(u) * n + r(u)
let n = F::new(F::Value::as_from(info.n as u32));
let n_divied_by_q = F::new(F::Value::as_from((info.n/q) as u32));
let n_divied_by_q = F::new(F::Value::as_from((info.n / q) as u32));

(F::ONE + F::ONE) * n_divied_by_q * a.evaluate(u) == n * k.evaluate(u) + r[0].evaluate(u)
}
Expand Down Expand Up @@ -507,7 +507,7 @@ impl<F: Field> TransformZqtoRQSubclaim<F> {

// check 5: (2n/q) * a(u) = k(u) * n + r(u)
let n = F::new(F::Value::as_from(info.n as u32));
let n_divied_by_q = F::new(F::Value::as_from((info.n/q) as u32));
let n_divied_by_q = F::new(F::Value::as_from((info.n / q) as u32));

(F::ONE + F::ONE) * n_divied_by_q * a.evaluate(u) == n * k.evaluate(u) + r[0].evaluate(u)
}
Expand Down

0 comments on commit b810b7e

Please sign in to comment.