Skip to content

Commit 08bb456

Browse files
committed
fix Fq::sqrt_montgomery()
1 parent 8b85be5 commit 08bb456

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gadgets/bn254/fq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl Fq {
184184

185185
let neg_one_mont = Fq(BigIntWires::new_constant(
186186
Self::N_BITS,
187-
&BigUint::from(-ark_bn254::Fq::ONE),
187+
&BigUint::from(Fq::as_montgomery(-ark_bn254::Fq::ONE)),
188188
)
189189
.unwrap());
190190

0 commit comments

Comments
 (0)