pub fn bn128_mul(x1: U256, y1: U256, scalar: U256) -> (U256, U256)Expand description
Calls the bn128_mul G1 scalar-mul precompile.
Multiplies an affine G1 point (x1, y1) by a scalar ∈ Fr. Returns the resulting affine point or (0, 0) if the result is ∞ / invalid.
§Note
The precompile address is 0x07. You can find its implementation here:
https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/bn128.rs