Scalar multiplication
scalar_mul::fixed_base
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.
fn fixed_base(_input : Field) -> [Field; 2]
example
fn main(x : Field) {
let scal = std::scalar_mul::fixed_base(x);
std::println(scal);
}
info
This is a black box function. Read this section to learn more about black box functions in Noir.