File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ pub fn groth16_verify<C: CircuitContext>(
7272 let is_valid_fr = {
7373 let mut and_all_wires = TRUE_WIRE ;
7474 public. iter ( ) . for_each ( |pubinp| {
75- let q : BigUint = ark_bn254:: Fr :: MODULUS . into ( ) ;
76- let valid_pubinp = bigint:: less_than_constant ( circuit, pubinp, & q ) ;
75+ let r : BigUint = ark_bn254:: Fr :: MODULUS . into ( ) ;
76+ let valid_pubinp = bigint:: less_than_constant ( circuit, pubinp, & r ) ;
7777 let new_wire = circuit. issue_wire ( ) ;
7878 circuit. add_gate ( crate :: Gate {
7979 wire_a : and_all_wires,
@@ -94,8 +94,8 @@ pub fn groth16_verify<C: CircuitContext>(
9494 ] ;
9595 let mut and_all_wires = TRUE_WIRE ;
9696 elems. iter ( ) . for_each ( |pubinp| {
97- let r : BigUint = ark_bn254:: Fq :: MODULUS . into ( ) ;
98- let valid_fq = bigint:: less_than_constant ( circuit, pubinp, & r ) ;
97+ let q : BigUint = ark_bn254:: Fq :: MODULUS . into ( ) ;
98+ let valid_fq = bigint:: less_than_constant ( circuit, pubinp, & q ) ;
9999 let new_wire = circuit. issue_wire ( ) ;
100100 circuit. add_gate ( crate :: Gate {
101101 wire_a : and_all_wires,
You can’t perform that action at this time.
0 commit comments