Skip to content

Commit

Permalink
Circom witness generation is different than arkworks; cannot skip wit…
Browse files Browse the repository at this point in the history
…ness elements (#61)
  • Loading branch information
mmagician committed Jul 17, 2024
1 parent 202feaa commit 5272c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl<E: Pairing, QAP: R1CSToQAP> Groth16<E, QAP> {
let h_assignment = cfg_into_iter!(h)
.map(|s| s.into_bigint())
.collect::<Vec<_>>();
let h_acc = E::G1::msm_bigint(&pk.h_query, &h_assignment[..h_assignment.len() - 1]);
let h_acc = E::G1::msm_bigint(&pk.h_query, &h_assignment);
drop(h_assignment);

// Compute C
Expand Down

0 comments on commit 5272c93

Please sign in to comment.