Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions g16ckt/src/gadgets/bn254/fq2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ impl Fq2 {
Fq2::from_components(c0, c1)
}

/// Montgomery multiplication by constant for circuit wires
/// # Arguments
/// * `a` - Fq2 Constant in standard form
/// * `b` - Fq in Montgomery form
#[component(offcircuit_args = "a")]
pub fn mul_constant_by_fq_montgomery<C: CircuitContext>(
circuit: &mut C,
Expand Down
Loading