mirror of https://github.com/zcash/halo2.git
mul::complete: Replace k_minus_one with one_minus_k.
This commit is contained in:
parent
303bdc3f65
commit
409bbf36a0
|
@ -70,8 +70,8 @@ impl Config {
|
|||
// k_i = 0 => y_p = -base_y
|
||||
// k_i = 1 => y_p = base_y
|
||||
let y_switch = {
|
||||
let k_minus_one = k.clone() - Expression::Constant(pallas::Base::one());
|
||||
k_minus_one * (base_y.clone() + y_p.clone()) + k * (base_y - y_p)
|
||||
let one_minus_k = Expression::Constant(pallas::Base::one()) - k.clone();
|
||||
one_minus_k * (base_y.clone() + y_p.clone()) + k * (base_y - y_p)
|
||||
};
|
||||
|
||||
std::array::IntoIter::new([("bool_check", bool_check), ("y_switch", y_switch)])
|
||||
|
|
|
@ -7524,6 +7524,10 @@ PinnedVerificationKey {
|
|||
Sum(
|
||||
Product(
|
||||
Sum(
|
||||
Constant(
|
||||
0x0000000000000000000000000000000000000000000000000000000000000001,
|
||||
),
|
||||
Negated(
|
||||
Sum(
|
||||
Advice {
|
||||
query_index: 10,
|
||||
|
@ -7547,10 +7551,6 @@ PinnedVerificationKey {
|
|||
),
|
||||
),
|
||||
),
|
||||
Negated(
|
||||
Constant(
|
||||
0x0000000000000000000000000000000000000000000000000000000000000001,
|
||||
),
|
||||
),
|
||||
),
|
||||
Sum(
|
||||
|
|
Loading…
Reference in New Issue