We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cf9d0d commit 31a7a9bCopy full SHA for 31a7a9b
1 file changed
prover/src/lib.rs
@@ -438,10 +438,9 @@ pub(crate) fn compute_commit_bus_offset(
438
}
439
440
let alpha_sq = alpha * alpha;
441
- let bus_id = FieldElement::<F>::from(BusId::Commit as u64);
442
- // Negate once: fingerprint = z - lc = -(lc - z) but we compute z - lc directly
443
- // by precomputing z_minus_bus = z - bus_id (F×E mixed subtraction)
444
- let z_minus_bus = z - bus_id * FieldElement::<E>::one();
+ let neg_bus_id = -FieldElement::<F>::from(BusId::Commit as u64);
+ // z - bus_id = z + (-bus_id), using F + E mixed addition
+ let z_minus_bus = neg_bus_id + z;
445
let mut fingerprints: Vec<FieldElement<E>> = public_output
446
.iter()
447
.enumerate()
0 commit comments