Skip to main content
Version: v0.29.0

Scalar multiplication

scalar_mul::fixed_base_embedded_curve

Performs scalar multiplication over the embedded curve whose coordinates are defined by the configured noir field. For the BN254 scalar field, this is BabyJubJub or Grumpkin.

fixed_base_embedded_curve
pub fn fixed_base_embedded_curve(
low: Field,
high: Field
) -> [Field; 2]
Source code: noir_stdlib/src/scalar_mul.nr#L27-L32

example

fn main(x : Field) {
let scal = std::scalar_mul::fixed_base_embedded_curve(x);
println(scal);
}
info

This is a black box function. Read this section to learn more about black box functions in Noir.