Skip to content

Commit 8fa9e1c

Browse files
committed
doc: specify that the function takes constant in standard form
1 parent 0834f30 commit 8fa9e1c

File tree

1 file changed

+4
-0
lines changed
  • g16ckt/src/gadgets/bn254

1 file changed

+4
-0
lines changed

g16ckt/src/gadgets/bn254/fq2.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ impl Fq2 {
304304
Fq2::from_components(c0, c1)
305305
}
306306

307+
/// Montgomery multiplication by constant for circuit wires
308+
/// # Arguments
309+
/// * `a` - Fq2 Constant in standard form
310+
/// * `b` - Fq in Montgomery form
307311
#[component(offcircuit_args = "a")]
308312
pub fn mul_constant_by_fq_montgomery<C: CircuitContext>(
309313
circuit: &mut C,

0 commit comments

Comments
 (0)